本帖最后由 howhow1314 于 2015-7-6 21:42 编辑
module BattleManager class <<self; alias can_escape_old can_escape?; end def self.can_escape? !$game_party.battle_members.any? {|actor| actor.state?(2)} && can_escape_old end end class Window_ActorCommand def add_item_command add_command(Vocab::item, :item, !@actor.state?(2)) end end
module BattleManager
class <<self; alias can_escape_old can_escape?; end
def self.can_escape?
!$game_party.battle_members.any? {|actor| actor.state?(2)} &&
can_escape_old
end
end
class Window_ActorCommand
def add_item_command
add_command(Vocab::item, :item, !@actor.state?(2))
end
end
|