diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:26:56 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-18 07:30:53 +0100 |
commit | ad9a34852a289a19e480fc8c20eb2fe22544fadc (patch) | |
tree | 706844838a7e5a75c557d4c8110bdd9f5f5d2a76 /src/shared/player.rs | |
parent | cc19e7c6a5d91abeb55e00e8ece986101c2293bd (diff) |
feat: vary max health
Diffstat (limited to 'src/shared/player.rs')
-rw-r--r-- | src/shared/player.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shared/player.rs b/src/shared/player.rs index 4f571d8..c42f5cb 100644 --- a/src/shared/player.rs +++ b/src/shared/player.rs @@ -30,15 +30,16 @@ impl PlayerBundle { replicate.target::<Cooldown>(NetworkTarget::Single(id)); replicate.target::<EffectiveStats>(NetworkTarget::Single(id)); let champion = Champion::default(); + let effective_stats = EffectiveStats(BaseStats::from_champion(champion).0); PlayerBundle { id: PlayerId(id), position: PlayerPosition(position), color: PlayerColor(color), imperative: Imperative::Idle, cooldown: Cooldown::default(), - health: Health::default(), + health: Health(effective_stats.0.max_health), champion, - effective_stats: EffectiveStats(BaseStats::from_champion(champion).0), + effective_stats, buffs: Buffs::default(), activation: Activation::default(), replicate, |