谢谢啦。请教一下。
====================================
def auto_hp_recovery2
for armor in armors.compact
return true if armor.auto_hp_recover2
end
return false
end
=====================================
def do_auto_recovery2
if auto_hp_recover2 and not dead?
self.hp += maxhp / 10
end
=====================================
我写了这样一段自动回复10%HP的代码,然后插入game_actor
那么注释怎么写呢?
填写auto_HP_recovery2
还是auto_HP_recovery2=true?
我试了一下,貌似都不行啊……