From fb09a456abdbd7e15badaca07e21893d785f7361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20Pi=C3=B1ones?= Date: Fri, 1 Nov 2024 09:56:23 -0300 Subject: [PATCH] add beast_id --- src/models/data/beast.cairo | 1 + src/models/status/round/beast.cairo | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models/data/beast.cairo b/src/models/data/beast.cairo index 7cb7656..fd11254 100644 --- a/src/models/data/beast.cairo +++ b/src/models/data/beast.cairo @@ -14,6 +14,7 @@ struct GameModeBeast { struct Beast { #[key] game_id: u32, + beast_id: u32, tier: u8, level: u8, health: u32, diff --git a/src/models/status/round/beast.cairo b/src/models/status/round/beast.cairo index ae6bf3c..f299418 100644 --- a/src/models/status/round/beast.cairo +++ b/src/models/status/round/beast.cairo @@ -49,7 +49,7 @@ impl BeastImpl of BeastTrait { let game_mode_beast = GameModeBeast { game_id, cost_discard: 1, cost_play: 2, energy_max_player: 3 }; GameModeBeastStore::set(@game_mode_beast, world); - let beast = Beast { game_id, tier: 5, level: 5, health: 300, attack: 15 }; + let beast = Beast { game_id, beast_id: 1, tier: 5, level: 5, health: 300, attack: 15 }; BeastStore::set(@beast, world); emit!(world, (beast));