#==============================================================================
# ■ 重算暴击率的技能 By Calendar99
#------------------------------------------------------------------------------
# 使用方法:
# 技能伤害公式中写 b.reapply_critical(0.05)
# 则使用该技能时暴击率提升5%
#==============================================================================
class Game_Battler
#--------------------------------------------------------------------------
# ● [别名修改]应用技能/物品的效果
#--------------------------------------------------------------------------
alias item_apply_cld99_20190415 item_apply
def item_apply(user, item)
@user_12805174, @item_12805174 = user, item # 破坏了封装性,不过影响不大
item_apply_cld99_20190415(user, item) # 调用原方法
end
#--------------------------------------------------------------------------
# ● [追加]重算暴击率
#--------------------------------------------------------------------------
def reapply_critical(increment, user = @user_12805174, item = @item_12805174)
rate = item_cri(user, item) + increment
@result.critical = (rand < rate)
end
end