def updateInCombat(): global gameOver, inCombat, currentEnemy, won #for i in range(1, 31): # win.addstr(i, 1, ' '*90) combat = Combat(mapWin, statWin, control.player, control.enemies[currentEnemy]) #win.addstr(1, 2, "combat goes here...") #win.addstr(2, 2, "press any key to continue (` still quits)") #mapWin.refresh() #ch = win.getkey() fightOutcome = combat.fight() mapWin.border('|', '|', '-', '-', '+', '+', '+', '+') if fightOutcome == 2 or fightOutcome == 1: gameOver = True inCombat = False won = 0 return elif fightOutcome == 0: control.enemies[currentEnemy].alive = False inCombat = False currentEnemy = None return