diff options
Diffstat (limited to 'src/shared/champion.rs')
-rw-r--r-- | src/shared/champion.rs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/shared/champion.rs b/src/shared/champion.rs index 28d1ff2..c32d3d5 100644 --- a/src/shared/champion.rs +++ b/src/shared/champion.rs @@ -26,28 +26,17 @@ impl FromStr for Champion { } } -pub struct Stats { - pub attack_range: f32, -} - -impl Stats { - pub fn from_champion(champion: Champion) -> Self { - match champion { - Champion::Meele => Stats { attack_range: 25. }, - Champion::Ranged => Stats { attack_range: 60. }, - } - } -} - impl Champion { pub fn to_ability(self, ability_slot: AbilitySlot) -> Ability { match self { Champion::Meele => match ability_slot { AbilitySlot::Q => Ability::Directional(DirectionalAbility::Spear), + AbilitySlot::G => Ability::Activated(ActivatedAbility::Speed), _ => Ability::Targeted(TargetedAbility::MeeleAttack), }, Champion::Ranged => match ability_slot { AbilitySlot::Q => Ability::Directional(DirectionalAbility::Spear), + AbilitySlot::G => Ability::Activated(ActivatedAbility::Speed), _ => Ability::Targeted(TargetedAbility::RangedAttack), }, } |