Changeset 6.1.31


Ignore:
Timestamp:
08/20/2016 09:03:52 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820210352-4q3vc9dv0mb3o6ss
Message:

Moved responsibility for incrementing the mission to advance_mission()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.30 r6.1.31  
    8484    captain = 0
    8585    team_failures = 0
    86     mission = 1
     86    mission = 0
    8787    team = None
    8888
    8989    def advance_mission():
     90        nonlocal mission
     91        mission += 1
    9092        team_size = mission_size(state.shared.player_count, mission)
    9193        print("Mission {} needs {} members".format(mission, team_size))
     
    141143            losses += 1
    142144
    143         mission += 1
    144145        return AdvanceMission(shared)
    145146
Note: See TracChangeset for help on using the changeset viewer.