コード例 #1
0
 def __init__(self, game):
     self.alliance = routines.Alliance(game)
     super().__init__(game, "ALLIANCE: REQUEST SUPPORT",
                      self.alliance.request_support_item)
     self.mode_settings.append(
         Action.ModeSetting(setting_type=Action.ModeSetting.Combobox,
                            setting_key="support_item",
                            text="Select item to request",
                            values_dict=self.support_items))
コード例 #2
0
 def __init__(self, game):
     self.alliance = routines.Alliance(game)
     super().__init__(game, "ALLIANCE: DONATE",
                      self.alliance.donate_resources)
     self.mode_settings.append(
         Action.ModeSetting(setting_type=Action.ModeSetting.Checkbox,
                            setting_key="donate_gold",
                            text="Donate Gold"))
     self.mode_settings.append(
         Action.ModeSetting(setting_type=Action.ModeSetting.Checkbox,
                            setting_key="donate_memento",
                            text="Donate Alliance Memento"))
コード例 #3
0
 def __init__(self, game):
     self.alliance = routines.Alliance(game)
     super().__init__(game, "ALLIANCE: COLLECT ENERGY FROM CHALLENGES",
                      self.alliance.collect_energy_from_challenges)
     self.mode_settings.append(
         Action.ModeSetting(setting_type=Action.ModeSetting.Checkbox,
                            setting_key="collect_daily",
                            text="Collect daily Challenges energy"))
     self.mode_settings.append(
         Action.ModeSetting(setting_type=Action.ModeSetting.Checkbox,
                            setting_key="collect_weekly",
                            text="Collect weekly Challenges energy"))
コード例 #4
0
 def __init__(self, game):
     self.alliance = routines.Alliance(game)
     super().__init__(game, "ALLIANCE: BUY ITEMS FROM STORE",
                      self.alliance.buy_items_from_store)
     self.mode_settings.append(
         Action.ModeSetting(setting_type=Action.ModeSetting.MultiCheckbox,
                            setting_key="items",
                            values_dict=self.items))
     self.mode_settings.append(
         Action.ModeSetting(
             setting_type=Action.ModeSetting.Checkbox,
             setting_key="buy_all_available",
             text="Buy all available copies of item for today"))
コード例 #5
0
 def __init__(self, game):
     self.alliance = routines.Alliance(game)
     super().__init__(game, "ALLIANCE: CHECK-IN", self.alliance.check_in)