中毒
<pre><code class="language-python">extends Buff
class_name b_zhonDu
func _init(lv = 1):
attInit()
effId = "p_zhonDu"
life = lv
isNegetive=true
func init():
pass
func _connect():
pass
func _upS():
#masCha.hurtChara(masCha,masCha.att.maxHp * (0.01 + life * 0.001) * pw,Chara.HurtType.REAL,Chara.AtkType.EFF)
att.reHp = - (0.10 + life * 0.01) * pw
att.defL = - (0.10 + life * 0.01) * pw
att.mgiDefL = - (0.10 + life * 0.01) * pw
eff.amount = clamp(life,1,25)
</code></pre>