Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JON-475: add event in game #8

Merged
merged 2 commits into from
Nov 1, 2024
Merged

JON-475: add event in game #8

merged 2 commits into from
Nov 1, 2024

Conversation

dpinones
Copy link
Contributor

@dpinones dpinones commented Nov 1, 2024

When a play or discard is discounted, the event ChallengePlayer(0x07d4feee622ecab47260614e1655d5ed51275dcb6b1773f1465ada9dcdbcdc3) is emitted.

struct ChallengePlayer {
    game_id: u32,
    discards: u8,
    plays: u8
}

When energy is deducted PlayerBeast(0x22d6f7af6af6e7db9b34e6dd923e081b02fc768a2cbf906034d1189379f7a065c3) event is emitted.

struct PlayerBeast {
    game_id: u32,
    health: u32,
    energy: u8
}

When the player attacks the PlayerAttack(0x3b7323b81d8b424fbce8a32b215c387794da0df18a831a2113dc2153f821399) event is emitted.

struct PlayerAttack {
    player: ContractAddress,
    attack: u32
}

When the beast attacks the BeastAttack(0x46464e29ab42204dac77d8ec2b116f0b8b8b91b846d0e8d3db018faf556c1d964) event is emitted.

struct BeastAttack {
    player: ContractAddress,
    attack: u32
}

@dpinones dpinones self-assigned this Nov 1, 2024
@dpinones dpinones marked this pull request as ready for review November 1, 2024 02:20
@dpinones dpinones merged commit 16ccc87 into main Nov 1, 2024
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants