Changeset 310:fa408430a174
- Timestamp:
- 09/05/13 22:41:49 (9 years ago)
- Branch:
- default
- Phase:
- public
- Rebase:
- 65356337356335326138336464366432316561336533636666366439383731396132356634363932
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
nagslang/enemies.py
r308 r310 52 52 return [("name", "string"), ("position", "coordinates")] 53 53 54 def hit(self, weapon): 55 self.lose_health(weapon.damage) 56 54 57 def lose_health(self, amount): 55 58 self.health -= amount … … 57 60 self.physicser.remove_from_space() 58 61 self.remove = True 59 EnemyDeathEvent.post(self.physicser.position, 'A')62 EnemyDeathEvent.post(self.physicser.position, self.enemy_type) 60 63 61 64 … … 160 163 def collide_with_protagonist(self, protagonist): 161 164 protagonist.lose_health(15) 162 163 def hit(self, weapon):164 self.lose_health(weapon.damage)165 165 166 166 @classmethod
Note:
See TracChangeset
for help on using the changeset viewer.