Ejemplo n.º 1
0
 def apply_start_effect(self, game_state: GameState,
                        buffed_entity: WorldEntity,
                        buffed_npc: NonPlayerCharacter):
     game_state.player_state.stun_status.add_one()
     game_state.modify_hero_stat(HeroStat.MOVEMENT_SPEED,
                                 BONUS_SPEED_MULTIPLIER)
     game_state.game_world.player_entity.set_moving_in_dir(
         game_state.game_world.player_entity.direction)
Ejemplo n.º 2
0
 def apply_end_effect(self, game_state: GameState, buffed_entity: WorldEntity, buffed_npc: NonPlayerCharacter):
     game_state.player_state.stun_status.remove_one()
     game_state.modify_hero_stat(HeroStat.MOVEMENT_SPEED, -BONUS_SPEED_MULTIPLIER)
Ejemplo n.º 3
0
 def apply_end_effect(self, game_state: GameState):
     for stat, delta in self.stat_modifiers.items():
         game_state.modify_hero_stat(stat, -delta)
Ejemplo n.º 4
0
 def apply_end_effect(self, game_state: GameState,
                      buffed_entity: WorldEntity,
                      buffed_npc: NonPlayerCharacter):
     for stat, delta in self.stat_modifiers.items():
         game_state.modify_hero_stat(stat, -delta)
Ejemplo n.º 5
0
 def apply(self, game_state: GameState):
     game_state.modify_hero_stat(self.hero_stat, self.amount)
Ejemplo n.º 6
0
 def revert(self, game_state: GameState):
     game_state.modify_hero_stat(self.hero_stat, -self.amount)
Ejemplo n.º 7
0
def _upgrade_mana_regen(game_state: GameState):
    game_state.modify_hero_stat(HeroStat.MANA_REGEN, 0.5)
Ejemplo n.º 8
0
 def apply_end_effect(self, game_state: GameState):
     for modifier in self.stat_modifiers:
         game_state.modify_hero_stat(modifier.hero_stat, -modifier.delta)
Ejemplo n.º 9
0
def _upgrade_health_regen(game_state: GameState):
    game_state.modify_hero_stat(HeroStat.HEALTH_REGEN, 0.5)
Ejemplo n.º 10
0
def _upgrade_max_mana(game_state: GameState):
    game_state.modify_hero_stat(HeroStat.MAX_MANA, 10)
Ejemplo n.º 11
0
def _upgrade_max_health(game_state: GameState):
    game_state.modify_hero_stat(HeroStat.MAX_HEALTH, 10)
Ejemplo n.º 12
0
def _upgrade_armor(game_state: GameState):
    game_state.modify_hero_stat(HeroStat.ARMOR, 1)
Ejemplo n.º 13
0
def _upgrade_damage(game_state: GameState):
    game_state.modify_hero_stat(HeroStat.DAMAGE, 0.1)