From 17204f70c063c940be33d191e788498fcd8db0a7 Mon Sep 17 00:00:00 2001 From: dub_zn Date: Sun, 3 Nov 2024 23:26:45 -0300 Subject: [PATCH] fix merge issues --- src/models/status/round/beast.cairo | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/models/status/round/beast.cairo b/src/models/status/round/beast.cairo index 1b70280..e1c29d0 100644 --- a/src/models/status/round/beast.cairo +++ b/src/models/status/round/beast.cairo @@ -294,17 +294,17 @@ fn _create_beast(world: IWorldDispatcher, game_id: u32, level: u8) { fn _generate_stats(level: u8, beast_id: u32) -> (u8, u32, u32) { let mut stats = (0, 0, 0); if level <= 4 { - (5, _calculate_beast_hp(level), 10) + stats = (5, _calculate_beast_hp(level), 10); } else if level <= 8 { - (4, _calculate_beast_hp(level), 20) + stats = (4, _calculate_beast_hp(level), 20); } else if level <= 12 { - stats = (3, _calculate_beast_hp(level), 30) + stats = (3, _calculate_beast_hp(level), 30); } else if level <= 16 { - (2, _calculate_beast_hp(level), 40) + stats = (2, _calculate_beast_hp(level), 40); } else { - (1, _calculate_beast_hp(level), 50) + stats = (1, _calculate_beast_hp(level), 50); } - + if beast_id >= 101 && beast_id <= 108 { let (tier, health, attack) = stats; (tier, health + (health / 10), attack + 20)