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

Otevřený
otevřeno před 4 roky uživatelem david · 1 komentářů

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 okomentoval před 4 roky
Vlastník

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.
Přihlaste se pro zapojení do konverzace.
Bez milníku
Bez zpracovatele
1 účastníků
Načítání...
Zrušit
Uložit
Není zde žádný obsah.