From f27784330c54755d78cfcda6d8bd0ef1d837c041 Mon Sep 17 00:00:00 2001 From: loothero <100039621+loothero@users.noreply.github.com> Date: Wed, 13 Sep 2023 16:12:52 -0400 Subject: [PATCH] change Necklace from T2 to T1 (#344) --- contracts/loot/src/loot.cairo | 6 +++--- contracts/loot/src/utils.cairo | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/loot/src/loot.cairo b/contracts/loot/src/loot.cairo index 0473f525d..ec62d9ba6 100644 --- a/contracts/loot/src/loot.cairo +++ b/contracts/loot/src/loot.cairo @@ -1301,7 +1301,7 @@ mod tests { let necklace_id = ItemId::Necklace; let necklace_item = ImplLoot::get_item(necklace_id); - assert(necklace_item.tier == Tier::T2(()), 'necklace is T2'); + assert(necklace_item.tier == Tier::T1(()), 'necklace is T1'); assert(necklace_item.item_type == Type::Necklace(()), 'necklace is necklace'); assert(necklace_item.slot == Slot::Neck(()), 'necklace is neck slot'); @@ -2244,7 +2244,7 @@ mod tests { let necklace = ItemId::Necklace; let necklace_tier = ImplLoot::get_tier(necklace); - assert(necklace_tier == Tier::T2(()), 'necklace is T2'); + assert(necklace_tier == Tier::T1(()), 'necklace is T1'); let amulet = ItemId::Amulet; let amulet_tier = ImplLoot::get_tier(amulet); @@ -2731,6 +2731,7 @@ mod tests { #[available_gas(2772740)] fn test_get_item_verify_tier() { let t1_items = array![ + ItemId::Necklace, ItemId::Pendant, ItemId::Amulet, ItemId::PlatinumRing, @@ -2768,7 +2769,6 @@ mod tests { }; let t2_items = array![ - ItemId::Necklace, ItemId::SilverRing, ItemId::Falchion, ItemId::Quarterstaff, diff --git a/contracts/loot/src/utils.cairo b/contracts/loot/src/utils.cairo index d6cd48410..f7bd108c5 100644 --- a/contracts/loot/src/utils.cairo +++ b/contracts/loot/src/utils.cairo @@ -161,7 +161,7 @@ mod ItemUtils { fn get_necklace() -> Loot { Loot { id: ItemId::Necklace, - tier: Tier::T2(()), + tier: Tier::T1(()), item_type: Type::Necklace(()), slot: Slot::Neck(()) }