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

Otwarty
otworzone 4 lat temu przez david · 1 komentarzy

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 skomentował 4 lat temu
Właściciel

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.
Zaloguj się, aby dołączyć do tej rozmowy.
Brak kamienia milowego
Brak przypisania
1 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.