class Game_Battler < Game_BattlerBase
#--------------------------------------------------------------------------
# ● 应用“恢复 HP”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_recover_hp item_effect_recover_hp
def item_effect_recover_hp(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_recover_hp(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“恢复 MP”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_recover_mp item_effect_recover_mp
def item_effect_recover_mp(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_recover_mp(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“增加 TP”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_gain_tp item_effect_gain_tp
def item_effect_gain_tp(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_gain_tp(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“附加状态”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_add_state item_effect_add_state
def item_effect_add_state(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_add_state(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“状态附加”效果:普通攻击
#--------------------------------------------------------------------------
alias sn_160127_item_effect_add_state_attack item_effect_add_state_attack
def item_effect_add_state_attack(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_add_state_attack(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“状态附加”效果:普通
#--------------------------------------------------------------------------
alias sn_160127_item_effect_add_state_normal item_effect_add_state_normal
def item_effect_add_state_normal(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_add_state_normal(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“状态解除”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_remove_state item_effect_remove_state
def item_effect_remove_state(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_remove_state(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“强化能力”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_add_buff item_effect_add_buff
def item_effect_add_buff(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_add_buff(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“弱化能力”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_add_debuff item_effect_add_debuff
def item_effect_add_debuff(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_add_debuff(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“解除能力强化”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_remove_buff item_effect_remove_buff
def item_effect_remove_buff(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_remove_buff(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“解除能力弱化”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_remove_debuff item_effect_remove_debuff
def item_effect_remove_debuff(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_remove_debuff(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“特殊效果”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_special item_effect_special
def item_effect_special(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_special(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“能力提升”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_grow item_effect_grow
def item_effect_grow(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_grow(user, item, effect)
end
#--------------------------------------------------------------------------
# ● 应用“学会技能”效果
#--------------------------------------------------------------------------
alias sn_160127_item_effect_learn_skill item_effect_learn_skill
def item_effect_learn_skill(user, item, effect)
return if self.result.hp_damage <= 0 and self.result.mp_damage <= 0
sn_160127_item_effect_learn_skill(user, item, effect)
end
end