Changeset 379:e2cebabf87e8


Ignore:
Timestamp:
Sep 6, 2013, 9:11:37 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Children:
380:a106d7e1415b, 381:c22784701143
Message:

Collected collectables stay collected

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/levels/level1

    r378 r379  
    2020  - [300, 600]
    2121  classname: collectable.Gun
     22  name: gun
    2223- args:
    2324  - [300, 500]
  • nagslang/level.py

    r378 r379  
    9393            module = 'game_object'
    9494        cls = getattr(modules[module], classname)
     95
     96        if module == 'collectable' and name in self.world.inventory:
     97            return
    9598
    9699        if issubclass(cls, puzzle.Puzzler):
Note: See TracChangeset for help on using the changeset viewer.