Changeset 341:63d0c70a4e15


Ignore:
Timestamp:
Sep 6, 2013, 10:55:48 AM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Enemies can hurt things again. (Oops.)

Location:
nagslang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r334 r341  
    107107    enemy_type = 'A'
    108108    health = 42
     109    enemy_damage = 15
    109110    impulse_factor = 50
    110111
     
    177178    enemy_type = 'B'
    178179    health = 42
     180    enemy_damage = 20
    179181    impulse_factor = 300
    180182
  • nagslang/protagonist.py

    r339 r341  
    342342            self._go_to_next_form()
    343343        if int(self.lifetime + dt) > int(self.lifetime):
    344             if self.form == self.WOLF_FORM:
     344            if self.in_wolf_form():
    345345                self.gain_health(1)
    346346        super(Protagonist, self).update(dt)
Note: See TracChangeset for help on using the changeset viewer.