Skip to content

Commit 4f4ab10

Browse files
committed
fix wording mistake and equilibrium checks
1 parent fe12c2f commit 4f4ab10

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

lib/misc.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1466,6 +1466,15 @@ function Cryptid.is_in_shop(key, consumable)
14661466
if type(center.rarity) == "number" and center.rarity <= 3 then
14671467
return center.unlocked or nil
14681468
end
1469+
local rare = ({
1470+
"Common",
1471+
"Uncommon",
1472+
"Rare",
1473+
})[center.rarity] or center.rarity
1474+
if SMODS.Rarities[rare] and (SMODS.Rarities[rare].get_weight or (SMODS.Rarities[rare].default_weight and SMODS.Rarities[rare].default_weight > 0)) then
1475+
return center.unlocked or nil
1476+
end
1477+
return nil
14691478
else
14701479
if consumable then
14711480
if center.set == "Tarot" then
@@ -1485,6 +1494,7 @@ function Cryptid.is_in_shop(key, consumable)
14851494
if center.in_pool then
14861495
return center:in_pool()
14871496
end
1497+
return center.unlocked or nil
14881498
end
14891499

14901500
function Cryptid.get_equilibrium_pool()

localization/en-us.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ return {
119119
"{C:attention}same chance{} of",
120120
"appearing in shops,",
121121
"start run with",
122-
"{C:attention,T:v_overstock_plus}Overstock Plus",
122+
"{C:attention,T:v_overstock_norm}Overstock",
123123
},
124124
unlock = {
125125
"Have {C:attention}100 Jokers",

0 commit comments

Comments
 (0)