Ignore:
Timestamp:
Sep 6, 2013, 11:04:01 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
rebase_source:
cfdbf911c96183a66f8127a1ff9fcbbe16ebc497
Message:

Use Result to handle firing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/game_object.py

    r390 r393  
    2424        self.add = add
    2525        self.remove = remove
     26
     27    def merge(self, result):
     28        if result is not None:
     29            self.add += result.add
     30            self.remove += result.remove
     31        return self
    2632
    2733
Note: See TracChangeset for help on using the changeset viewer.