class Game_Battler
def armors; []; end
end
class Scene_Battle
def apply_item_effects(target, item)
target.item_apply(@subject, item)
if target.armors.include?($data_armors[1]) # 1号护甲
damage = target.result.hp_damage / 10
@subject.hp -= damage if damage > 0
end
refresh_status
@log_window.display_action_results(target, item)
if @damage > 0
text = "#{target.name}反击#{@subject.name},造成#{damage}点伤害!"
@log_window.add_text(text)
3.times { @log_window.wait }
end
end
end
class Game_Battler
def armors; []; end
end
class Scene_Battle
def apply_item_effects(target, item)
target.item_apply(@subject, item)
if target.armors.include?($data_armors[1]) # 1号护甲
damage = target.result.hp_damage / 10
@subject.hp -= damage if damage > 0
end
refresh_status
@log_window.display_action_results(target, item)
if @damage > 0
text = "#{target.name}反击#{@subject.name},造成#{damage}点伤害!"
@log_window.add_text(text)
3.times { @log_window.wait }
end
end
end