class Game_BattlerBase
def param_plus(param_id)
add = 0
case param_id
when 2
add = (self.hp*0.15).to_i if self.actor? && self.weapons.include?($data_weapons[1])
#这里写计算方法和限制条件
when 4
add = (self.mmp*0.5).to_i if self.actor? && self.weapons.include?($data_weapons[2])
end
@param_plus[param_id] + add
end
end
class Game_BattlerBase
def param_plus(param_id)
add = 0
case param_id
when 2
add = (self.hp*0.15).to_i if self.actor? && self.weapons.include?($data_weapons[1])
#这里写计算方法和限制条件
when 4
add = (self.mmp*0.5).to_i if self.actor? && self.weapons.include?($data_weapons[2])
end
@param_plus[param_id] + add
end
end