Skip to content

Commit

Permalink
add beast_id
Browse files Browse the repository at this point in the history
  • Loading branch information
dpinones committed Nov 1, 2024
1 parent b0f74d9 commit fb09a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/models/data/beast.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ struct GameModeBeast {
struct Beast {
#[key]
game_id: u32,
beast_id: u32,
tier: u8,
level: u8,
health: u32,
Expand Down
2 changes: 1 addition & 1 deletion src/models/status/round/beast.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit fb09a45

Please sign in to comment.