// DarkPlasma_UnusableItemWithMapEvent 1.0.1 // Copyright (c) 2022 DarkPlasma // This software is released under the MIT license. // http://opensource.org/licenses/mit-license.php /** * 2024/03/17 1.0.1 TypeScript移行 * 2022/06/02 1.0.0 公開 */ /*: @target MZ @url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release @plugindesc Items that cannot be used during map events @author DarkPlasma @license MIT @help English Help Translator: munokura This is an unofficial English translation of the plugin help, created to support global RPG Maker users. Feedback is welcome to improve translation quality (see: https://github.com/munokura/DarkPlasma-MZ-Plugins ). Original plugin by DarkPlasma. Please check the latest official version at: https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release ----- version: 1.0.1 Items and skills with the following description in the memo field will be unusable during a map event. */ /*:ja @plugindesc マップイベント実行中は使用できないアイテム @author DarkPlasma @license MIT @target MZ @url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release @help version: 1.0.1 メモ欄に以下のように記述したアイテム・スキルは マップイベントの実行中には使用できなくなります。 */ (() => { 'use strict'; /** * @param {Game_BattlerBase.prototype} gameBattlerBase */ function Game_BattlerBase_UnusableItemWithMapEvntMixIn(gameBattlerBase) { const _isOccasionOk = gameBattlerBase.isOccasionOk; gameBattlerBase.isOccasionOk = function (item) { return _isOccasionOk.call(this, item) && (!item.meta.unusableWithMapEvent || !$gameMap.isEventRunning()); }; } Game_BattlerBase_UnusableItemWithMapEvntMixIn(Game_BattlerBase.prototype); })();