Changeset 6.1.19 for main.py


Ignore:
Timestamp:
08/20/2016 06:35:44 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820183544-mc5ff3dp2r383yul
Message:

Moved team-failure tracking into state handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.18 r6.1.19  
    8888        captain = (captain + 1) % player_count
    8989
     90        if approved:
     91            team_failures = 0
     92        else:
     93            team_failures += 1
     94
    9095    def perform_mission():
    9196        nonlocal wins, losses, mission
     
    121126            assemble_team()
    122127            if approved:
    123                 team_failures = 0
    124128                state = "PERFORM_MISSION"
    125             else:
    126                 team_failures += 1
    127129
    128130        elif state == "PERFORM_MISSION":
Note: See TracChangeset for help on using the changeset viewer.