Skip to content

Commit

Permalink
Add potion to the models
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandoDrRobot committed Aug 21, 2024
1 parent 2177d04 commit ce80f3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind = "DojoContract"
class_hash = "0x4b08686fca2f358e9aefa463d148f116af077fd9ce8cdf4d003ad4231b5493c"
original_class_hash = "0x4b08686fca2f358e9aefa463d148f116af077fd9ce8cdf4d003ad4231b5493c"
class_hash = "0x2ad32bf6985d0844c17f0349e54787ac58a5804897fa82af0c5ee8c6946880d"
original_class_hash = "0x2ad32bf6985d0844c17f0349e54787ac58a5804897fa82af0c5ee8c6946880d"
base_class_hash = "0x0"
abi = "manifests/dev/base/abis/contracts/bytebeasts-battle_system-461868ac.json"
reads = []
Expand Down
4 changes: 1 addition & 3 deletions src/models.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl BeastImpl of BeastTrait {
}
#[cfg(test)]
mod tests {
use super::{Beast, Player, BeastTrait, WorldElements};
use super::{Beast, Player, Potion, BeastTrait, WorldElements};

#[test]
fn test_beast_exist() {
Expand Down Expand Up @@ -140,7 +140,6 @@ mod tests {
}

#[test]
#[available_gas(200000)]
fn test_beast_defeat() {
let mut beast = Beast {
beast_id: 1,
Expand Down Expand Up @@ -169,6 +168,5 @@ mod tests {
}

assert_eq!(beast.current_hp, 0, "Beast should have 0 HP after being defeated");
// assert!(!beast.exist(), "Beast should be defeated");
}
}

0 comments on commit ce80f3b

Please sign in to comment.