Changeset 6.1.57


Ignore:
Timestamp:
08/21/2016 04:34:49 AM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160821043449-c7j3x8oqj6i2asd9
Message:

Delegated mission_succeeded()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.56 r6.1.57  
    8282        return required_failures(self.player_count, self.mission)
    8383
     84    def mission_succeeded(self):
     85        print("Mission succeeded")
     86        self.wins += 1
     87
    8488
    8589class AdvanceMission(object):
     
    139143
    140144        if success:
    141             print("Mission succeeded")
    142             self.shared.wins += 1
     145            self.shared.mission_succeeded()
    143146        else:
    144147            print("Mission had {} failures".format(failures))
Note: See TracChangeset for help on using the changeset viewer.