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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.