module RPG
class Skill
def name
name = @name.split(/,/)[0]
return name !=nil ? name : ""
end
def name_plus
name_plus = @name.split(/,/)[1]
return name_plus != nil ? name_plus.to_i : 0
end
end
end
然后再在RTAB的脚本第2975行处的特技HP伤害判定改写成
last_hp = self.hp
if skill.name_plus != 0
if self.damage>=0
self.damage = [skill.name_plus,self.damage].min
else
self.damage = [skill.name_plus,self.damage].max
end
end
结果悲剧了,战斗的时候释放特技就会出现脚本第2978行 也就是
if self.damage>=0 的NoMethodError, undifined method `>=' for #<Hash:0x3acbf28>的错误