From ad9a34852a289a19e480fc8c20eb2fe22544fadc Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 18 Mar 2024 07:26:56 +0100 Subject: feat: vary max health --- src/shared/player.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/shared/player.rs') 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::(NetworkTarget::Single(id)); replicate.target::(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, -- cgit v1.2.3