Changeset 403:aa1a8d740d4b


Ignore:
Timestamp:
Sep 7, 2013, 8:15:19 AM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Add attacks to stats screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/world.py

    r386 r403  
    7575
    7676    def get_formatted_stats(self):
    77         return "\n".join([
    78             "Times transformed: %d" % self.transformations,
    79             "Enemies killed: %d" % self.kills,
    80             "Rooms entered: %d" % self.rooms
    81         ])
     77        return (('Times transformed: %(transformations)d\n'
     78                 'Shots fired/claws drawn: %(attacks)d\n'
     79                 'Enemies killed: %(kills)d\n'
     80                 'Rooms entered: %(rooms)d\n'
     81                 ) % self._data)
Note: See TracChangeset for help on using the changeset viewer.