Changeset 375:83c29d0a0b9c for nagslang


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

Count deaths

Location:
nagslang
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r374 r375  
    343343        # Handle player death - may be called due to other reasons
    344344        # than zero health
     345        self.world.deaths += 1
    345346        ScreenChange.post('dead')
    346347
  • nagslang/world.py

    r374 r375  
    2323        self.__dict__['_data'] = {
    2424            'attacks': 0,
     25            'deaths': 0,
    2526            'transformations': 0,
    2627            'kills': 0,
Note: See TracChangeset for help on using the changeset viewer.