Changeset 623:9f0e738ab4a5


Ignore:
Timestamp:
Sep 7, 2013, 11:04:04 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
84051aba8766798b1f930dcd1377c81cf49f200c
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.