Skip to content

Commit

Permalink
change Necklace from T2 to T1 (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
loothero authored Sep 13, 2023
1 parent 45e4f39 commit f277843
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions contracts/loot/src/loot.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -2768,7 +2769,6 @@ mod tests {
};

let t2_items = array![
ItemId::Necklace,
ItemId::SilverRing,
ItemId::Falchion,
ItemId::Quarterstaff,
Expand Down
2 changes: 1 addition & 1 deletion contracts/loot/src/utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

1 comment on commit f277843

@vercel
Copy link

@vercel vercel bot commented on f277843 Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.