Changeset 6.1.23 for main.py


Ignore:
Timestamp:
08/20/2016 06:42:02 PM (8 years ago)
Author:
David Owen <dsowen@fugue88.ws>
branch-nick:
state
revision id:
dsowen@fugue88.ws-20160820184202-j5wuk2yrrv4w1lv8
Message:

Return next state from handler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main.py

    r6.1.22 r6.1.23  
    9191        if approved:
    9292            team_failures = 0
     93            return "PERFORM_MISSION"
    9394        else:
    9495            team_failures += 1
     96            return "ASSEMBLE_TEAM"
    9597
    9698    def perform_mission():
     
    123125        if state == "ADVANCE_MISSIONS":
    124126            state = advance_mission()
    125 
    126127        elif state == "ASSEMBLE_TEAM":
    127             assemble_team()
    128             if approved:
    129                 state = "PERFORM_MISSION"
    130 
     128            state = assemble_team()
    131129        elif state == "PERFORM_MISSION":
    132130            state = perform_mission()
Note: See TracChangeset for help on using the changeset viewer.