添加注释

This commit is contained in:
星外之神 2022-04-05 23:17:34 +08:00
parent 0840bb5fda
commit 641dba13a8

View File

@ -215,7 +215,7 @@ class Plant(pg.sprite.Sprite):
if not zombie.lostHead: if not zombie.lostHead:
self.health -= damage self.health -= damage
self.hit_timer = self.current_time self.hit_timer = self.current_time
if (self.health == 0) or (self.name == c.HYPNOSHROOM and self.state != c.SLEEP): if (self.health == 0) or (self.name == c.HYPNOSHROOM and self.state != c.SLEEP): # 魅惑菇触发同样会消失
self.kill_zombie = zombie self.kill_zombie = zombie
def getPosition(self): def getPosition(self):