Ignore:
Timestamp:
Sep 6, 2013, 8:44:14 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Move the inventory to world, to slightly reduce overall hackyness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r371 r374  
    502502
    503503    def _collect(self, protagonist):
    504         protagonist.inventory.add(self._name)
     504        protagonist.add_item(self._name)
    505505        # TODO: Make this less hacky.
    506506        self.physicser.remove_from_space()
Note: See TracChangeset for help on using the changeset viewer.