#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 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.