Skip to content

Commit 79c42f6

Browse files
committed
Added Beige Sleeve
1 parent 05b1340 commit 79c42f6

File tree

5 files changed

+45
-1
lines changed

5 files changed

+45
-1
lines changed

assets/1x/atlasSleeves.png

13.6 KB
Loading

assets/2x/atlasSleeves.png

22.8 KB
Loading

items/sleeve.lua

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,31 @@ if CardSleeves then
329329
end,
330330
})
331331

332-
--local beigesleeve
332+
local beigesleeve = CardSleeves.Sleeve({
333+
key = "beige_sleeve",
334+
name = "Beige Sleeve",
335+
atlas = "atlasSleeves",
336+
pos = { x = 3, y = 1 },
337+
unlocked = true,
338+
unlock_condition = { deck = "Beige Deck", stake = 1 },
339+
loc_vars = function(self)
340+
local key
341+
if self.get_current_deck_key() == "b_cry_beige" then
342+
key = self.key .. "_alt"
343+
return {key = key, vars = {}}
344+
end
345+
return {vars = {}}
346+
end,
347+
348+
trigger_effect = function(self, args) end,
349+
apply = function(self)
350+
if self.get_current_deck_key() ~= "b_cry_beige" then
351+
G.GAME.modifiers.cry_common_value_quad = true
352+
else
353+
G.GAME.modifiers.cry_uncommon_value_quad = true
354+
end
355+
end,
356+
})
333357

334358
local legendarysleeve = CardSleeves.Sleeve({
335359
key = "legendary_sleeve",
@@ -438,6 +462,7 @@ if CardSleeves then
438462
encodedsleeve,
439463
nostalgicsleeve,
440464
bountifulsleeve,
465+
beigesleeve,
441466
legendarysleeve,
442467
spookysleeve,
443468
}

lib/overrides.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,11 @@ function create_card(_type, area, legendary, _rarity, skip_materialize, soulable
994994
cry_misprintize(card, { min = 4, max = 4 }, nil, true)
995995
end
996996
end
997+
if _type == "Joker" and G.GAME.modifiers.cry_uncommon_value_quad then
998+
if card.config.center.rarity == 2 then
999+
cry_misprintize(card, { min = 4, max = 4 }, nil, true)
1000+
end
1001+
end
9971002
if card.ability.consumeable and card.pinned then -- counterpart is in Sticker.toml
9981003
G.GAME.cry_pinned_consumeables = G.GAME.cry_pinned_consumeables + 0
9991004
end

localization/en-us.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2726,6 +2726,20 @@ return {
27262726
},
27272727
},
27282728
Sleeve = {
2729+
sleeve_cry_beige_sleeve = {
2730+
name = "Beige Sleeve",
2731+
text = {
2732+
"{C:attention}Common{} Jokers have",
2733+
"{C:attention}quadrupled{} values",
2734+
},
2735+
},
2736+
sleeve_cry_beige_sleeve_alt = {
2737+
name = "Beige Sleeve",
2738+
text = {
2739+
"{C:attention}Uncommon{} Jokers have",
2740+
"{C:attention}quadrupled{} values",
2741+
},
2742+
},
27292743
sleeve_cry_beta_sleeve = {
27302744
name = "Nostalgic Sleeve",
27312745
text = {

0 commit comments

Comments
 (0)