Changeset 339:9137e792307b


Ignore:
Timestamp:
Sep 6, 2013, 10:44:01 AM (7 years ago)
Author:
Jeremy Thurgood <firxen@…>
Branch:
default
Message:

Use constants for health.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/protagonist.py

    r338 r339  
    7070        self.world = world
    7171        self.inventory = {}
    72         self.health_level = 100
     72        self.health_level = PROTAGONIST_HEALTH_MAX_LEVEL
    7373
    7474        self.angle = 0
     
    112112
    113113    def reset(self):
    114         self.health_level = 100
     114        self.health_level = PROTAGONIST_HEALTH_MAX_LEVEL
    115115        self.is_moving = False
    116116
Note: See TracChangeset for help on using the changeset viewer.