Skip to content

Commit

Permalink
✨ Some refacto and add kick feature
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Feb 21, 2024
1 parent 4aa2aab commit 453f91f
Show file tree
Hide file tree
Showing 17 changed files with 564 additions and 290 deletions.
4 changes: 2 additions & 2 deletions Scarb.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ account_address = "0x6162896d1d7ab204c7ccac6dd5f8e9e7c25ecd5ae4fcb4ad32e57786bb4
private_key = "0x1800000000300000180000000000030000000000003006001800006600"
# Slot
# rpc_url = "https://api.cartridge.gg/x/zconqueror/katana"
# account_address = "0x7790adbbfb0fd9c4ec4c0e31c71615d6c3aaac9369dbb0adc5b11ed85631478"
# private_key = "0x35dd7dfd8a2602b23cda569f0b0793f7268ca99513c76bc88ba11a35eb2a66e"
# account_address = "0x603e42dd660816a9e5c2fc935633018db30df30764d452e6b4064700bc8e6e0"
# private_key = "0x4fd0675d3ec5e0d035c213de935696cdd1284d79525cd3275d24626c32825e7"
3 changes: 0 additions & 3 deletions src/data/v00.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,6 @@ fn card_number() -> u32 {
/// * The corresponding tile id and unit type.
#[inline(always)]
fn card(id: u8) -> Option<(u8, u16)> {
// Tile number + 5% if > 20, otherwise add 1
let count = card_number();

// ID cannot be 0
if id == 0 {
return Option::None;
Expand Down
3 changes: 0 additions & 3 deletions src/data/v01.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ fn card_number() -> u32 {
/// * The corresponding tile id and unit type.
#[inline(always)]
fn card(id: u8) -> Option<(u8, u16)> {
// Tile number + 5% if > 20, otherwise add 1
let count = card_number();

// ID cannot be 0
if id == 0 {
return Option::None;
Expand Down
Loading

0 comments on commit 453f91f

Please sign in to comment.