#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 участников
Загрузка...
Отмена
Сохранить
Пока нет содержимого.