Changeset 6.1.47 for main.py


Ignore:
Timestamp:
08/21/2016 04:14:47 AM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160821041447-unbw3m7uxx9p7q01
Message:

Delegated current_mission_size()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.46 r6.1.47  
    4848        self.losses = 0
    4949
     50    def current_mission_size(self):
     51        return mission_size(self.player_count, self.mission)
     52
    5053
    5154class AdvanceMission(object):
     
    5659    def do(self):
    5760        self.shared.mission += 1
    58         team_size = mission_size(self.shared.player_count, self.shared.mission)
     61        team_size = self.shared.current_mission_size()
    5962        print("Mission {} needs {} members".format(self.shared.mission, team_size))
    6063        return AssembleTeam(self.shared, team_size)
Note: See TracChangeset for help on using the changeset viewer.