diff --git a/src/models/status/game/game.cairo b/src/models/status/game/game.cairo index 128c749..06169cd 100644 --- a/src/models/status/game/game.cairo +++ b/src/models/status/game/game.cairo @@ -65,12 +65,12 @@ impl DefaultGame of Default { id: 1, owner: Zeroable::zero(), player_name: Zeroable::zero(), - player_hp: 500, + player_hp: 100, player_score: 0, obstacles_cleared: 0, beasts_defeated: 0, player_level: 1, - current_player_hp: 500, + current_player_hp: 100, max_hands: 5, max_discard: 5, max_jokers: 5, diff --git a/src/models/status/round/adventurer.cairo b/src/models/status/round/adventurer.cairo index feae29c..ddc1b38 100644 --- a/src/models/status/round/adventurer.cairo +++ b/src/models/status/round/adventurer.cairo @@ -32,7 +32,8 @@ impl AdventurerImpl of AdventurerTrait { let adventurer = loot_survivor_dispatcher.get_adventurer(adventurer_id.into()); let level = get_level_from_xp(adventurer.xp); - game.player_hp += (level + level / 2).into(); + game.player_hp += (level * 2).into(); + game.current_player_hp += (level * 2).into(); adventurer_consumed.consumed = true; AdventurerConsumedStore::set(@adventurer_consumed, world); @@ -40,9 +41,10 @@ impl AdventurerImpl of AdventurerTrait { let mut adventurer_consumed = AdventurerConsumedStore::get(world, adventurer_id); assert(!adventurer_consumed.consumed, errors::ADVENTURER_CONSUMED); - let level = 13; + let level: u32 = 13; - game.player_hp += level + level / 2; + game.player_hp += (level * 2).into(); + game.current_player_hp += (level * 2).into(); adventurer_consumed.consumed = true; AdventurerConsumedStore::set(@adventurer_consumed, world); diff --git a/src/systems/game_system.cairo b/src/systems/game_system.cairo index cdc2758..e47fa9e 100644 --- a/src/systems/game_system.cairo +++ b/src/systems/game_system.cairo @@ -109,9 +109,9 @@ mod game_system { id: game_id, owner: player_id, player_name, - player_hp: 500, // TODO: Obtain HP from adventurer + player_hp: 100, player_level: 1, - current_player_hp: 500, + current_player_hp: 100, obstacles_cleared: 0, beasts_defeated: 0, max_hands: 5,