#30 MaxFighterMake: Seems to only move Ore and Org without doing anything with Equ

Отворено
отворено пре 4 година од david · 1 коментара
David Thielemann коментирира пре 4 година

In the first release of it in [ba2b7abed5] it seems to work...

I think when I am moving folks around I don't move anyone from Equ to Org or try Ore to Equ or Org to Equ either.

Tries in order:

  • Ore to Org (Reverse this if it fails, undo)
  • Ore to Equ
  • Org to Equ
In the first release of it in [ba2b7abed5] it seems to work... I think when I am moving folks around I don't move anyone from Equ to Org or try Ore to Equ or Org to Equ either. Tries in order: * Ore to Org (Reverse this if it fails, undo) * Ore to Equ * Org to Equ
David Thielemann коментирира пре 4 година
Власник

The problem is I think I need to check my data I am gathering to make sure I am not selecting something that is empty to move from.

if self.ore['pop'] > 0:
    # Then we pick Ore2Org or Ore2Equ
elif self.org['pop'] > 0:
    # Then we pick Org2Ore* or Org2Equ
elif self.equ['pop'] > 0:
    # Pick Equ2Ore* Equ2Org*

Where * is the inverse (undo) action.

The problem is I think I need to check my data I am gathering to make sure I am not selecting something that is empty to move from. ``` if self.ore['pop'] > 0: # Then we pick Ore2Org or Ore2Equ elif self.org['pop'] > 0: # Then we pick Org2Ore* or Org2Equ elif self.equ['pop'] > 0: # Pick Equ2Ore* Equ2Org* ``` Where * is the inverse (undo) action.
Пријавите се да се прикључе у овом разговору.
Нема фазе
Нема одговорних
1 учесника
Учитавање...
Откажи
Сачувај
Још нема садржаја.