def on_startup(self, new_hero_was_created: bool):
     self.game_state.player_state.gain_buff_effect(get_buff_effect(BuffType.BEING_SPAWNED), Millis(1000))
     self.info_message.set_message("Hint: " + get_random_hint())
     if new_hero_was_created:
         self.game_state.player_state.consumable_inventory.add_consumable(ConsumableType.HEALTH_LESSER)
         self.game_state.player_state.consumable_inventory.add_consumable(ConsumableType.HEALTH_LESSER)
         self.game_state.player_state.consumable_inventory.add_consumable(ConsumableType.MANA_LESSER)
         self.game_state.player_state.consumable_inventory.add_consumable(ConsumableType.MANA_LESSER)
         for item_type in HEROES[self.game_state.player_state.hero_id].initial_player_state.starting_items:
             self.add_starting_item(item_type)
 def on_select(self, game_engine: GameEngine) -> Optional[str]:
     return get_random_hint()
Example #3
0
 def on_select(self, game_state: GameState) -> Optional[str]:
     return get_random_hint()