Changeset 623:9f0e738ab4a5


Ignore:
Timestamp:
09/07/13 23:04:04 (8 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Phase:
public
Rebase:
38343035316162613837363637393862316639333064636431333737633831636634396632303063
Message:

Only issue the cyan keycard once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/enemies.py

    r620 r623  
    342342        result = super(Queen, self).update(dt)
    343343        self.spawn(result)
    344         if self.health <= 0:
     344        if (self.health <= 0
     345                and not self.world.protagonist.has_item('keycard_cyan')):
    345346            result.add += (KeyCard(self.get_space(),
    346             self.physicser.position, "keycard_cyan"),)
     347                                   self.physicser.position, 'keycard_cyan'),)
    347348        return result
    348349
Note: See TracChangeset for help on using the changeset viewer.