Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified assets/1x/atlasSleeves.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/2x/atlasSleeves.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
290 changes: 197 additions & 93 deletions items/sleeve.lua
Original file line number Diff line number Diff line change
@@ -1,51 +1,47 @@
if CardSleeves then
local encodedsleeve = CardSleeves.Sleeve({
key = "encoded_sleeve",
name = "Encoded Sleeve",
local veryfairsleeve = CardSleeves.Sleeve({
key = "very_fair_sleeve",
name = "Very Fair Sleeve",
atlas = "atlasSleeves",
pos = { x = 1, y = 0 },
config = {},
pos = { x = 0, y = 2 },
config = { hands = -2, discards = -2 },
unlocked = true,
unlock_condition = { deck = "Encoded Deck", stake = 1 },
unlock_condition = { deck = "Very Fair Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,

trigger_effect = function(self, args) end,
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
if G.jokers then
-- Adding a before spawning becuase jen banned copy_paste
if
G.P_CENTERS["j_cry_CodeJoker"]
and (G.GAME.banned_keys and not G.GAME.banned_keys["j_cry_CodeJoker"])
then
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_cry_CodeJoker")
card:add_to_deck()
card:start_materialize()
G.jokers:emplace(card)
end
if
G.P_CENTERS["j_cry_copypaste"]
and (G.GAME.banned_keys and not G.GAME.banned_keys["j_cry_copypaste"])
then
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_cry_copypaste")
card:add_to_deck()
card:start_materialize()
G.jokers:emplace(card)
end
return true
end
end,
}))

--DOWNSIDE:
G.GAME.starting_params.hands = G.GAME.starting_params.hands + self.config.hands
G.GAME.starting_params.discards = G.GAME.starting_params.discards + self.config.discards
G.GAME.modifiers.cry_no_vouchers = true
end,
init = function(self)
very_fair_quip = {}
local avts = SMODS.add_voucher_to_shop
function SMODS.add_voucher_to_shop(...)
if G.GAME.modifiers.cry_no_vouchers then
return
end
return avts(...)
end
end,
})

G.GAME.joker_rate = 0
G.GAME.planet_rate = 0
G.GAME.tarot_rate = 0
G.GAME.code_rate = 1e100
local infinitesleeve = CardSleeves.Sleeve({
key = "infinite_sleeve",
name = "Unlimited Sleeve",
atlas = "atlasSleeves",
pos = { x = 4, y = 0 },
config = { cry_highlight_limit = 1e20, hand_size = 1 },
unlocked = true,
unlock_condition = { deck = "Infinite Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,
trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_highlight_limit = self.config.cry_highlight_limit
end,
})

Expand Down Expand Up @@ -85,40 +81,6 @@ if CardSleeves then
end,
})

local infinitesleeve = CardSleeves.Sleeve({
key = "infinite_sleeve",
name = "Unlimited Sleeve",
atlas = "atlasSleeves",
pos = { x = 4, y = 0 },
config = { cry_highlight_limit = 1e20, hand_size = 1 },
unlocked = true,
unlock_condition = { deck = "Infinite Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,
trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_highlight_limit = self.config.cry_highlight_limit
end,
})

local conveyorsleeve = CardSleeves.Sleeve({
key = "conveyor_sleeve",
name = "Conveyor Sleeve",
atlas = "atlasSleeves",
pos = { x = 5, y = 0 },
config = { cry_conveyor = true },
unlocked = true,
unlock_condition = { deck = "Conveyor Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,
trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_conveyor = true
end,
})

local CCDsleeve = CardSleeves.Sleeve({
key = "ccd_sleeve",
name = "CCD Sleeve",
Expand Down Expand Up @@ -166,6 +128,23 @@ if CardSleeves then
end,
})

local conveyorsleeve = CardSleeves.Sleeve({
key = "conveyor_sleeve",
name = "Conveyor Sleeve",
atlas = "atlasSleeves",
pos = { x = 5, y = 0 },
config = { cry_conveyor = true },
unlocked = true,
unlock_condition = { deck = "Conveyor Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,
trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_conveyor = true
end,
})

local redeemedsleeve = CardSleeves.Sleeve({
key = "redeemed_sleeve",
name = "Redeemed Sleeve",
Expand All @@ -182,6 +161,30 @@ if CardSleeves then
end,
})

local glowingsleeve = CardSleeves.Sleeve({
key = "glowing_sleeve",
name = "Glowing Sleeve",
atlas = "atlasSleeves",
pos = { x = 0, y = 2 },
config = { cry_glowing = true },
unlocked = true,
unlock_condition = { deck = "Glowing Deck", stake = 1 },
loc_vars = function(self)
return { vars = { " " } }
end,
calculate = function(self, back, context)
if context.context == "eval" and safe_get(G.GAME, "last_blind", "boss") then
for i = 1, #G.jokers.cards do
if not Card.no(G.jokers.cards[i], "immutable", true) then
cry_with_deck_effects(G.jokers.cards[i], function(card)
cry_misprintize(card, { min = 1.25, max = 1.25 }, nil, true)
end)
end
end
end
end,
})

local criticalsleeve = CardSleeves.Sleeve({
key = "critical_sleeve",
name = "Critical Sleeve",
Expand Down Expand Up @@ -238,6 +241,119 @@ if CardSleeves then
end
end,
})

local encodedsleeve = CardSleeves.Sleeve({
key = "encoded_sleeve",
name = "Encoded Sleeve",
atlas = "atlasSleeves",
pos = { x = 1, y = 0 },
config = {},
unlocked = true,
unlock_condition = { deck = "Encoded Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,

trigger_effect = function(self, args) end,
apply = function(self)
G.E_MANAGER:add_event(Event({
func = function()
if G.jokers then
-- Adding a before spawning becuase jen banned copy_paste
if
G.P_CENTERS["j_cry_CodeJoker"]
and (G.GAME.banned_keys and not G.GAME.banned_keys["j_cry_CodeJoker"])
then
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_cry_CodeJoker")
card:add_to_deck()
card:start_materialize()
G.jokers:emplace(card)
end
if
G.P_CENTERS["j_cry_copypaste"]
and (G.GAME.banned_keys and not G.GAME.banned_keys["j_cry_copypaste"])
then
local card = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_cry_copypaste")
card:add_to_deck()
card:start_materialize()
G.jokers:emplace(card)
end
return true
end
end,
}))

--DOWNSIDE:

G.GAME.joker_rate = 0
G.GAME.planet_rate = 0
G.GAME.tarot_rate = 0
G.GAME.code_rate = 1e100
end,
})

local nostalgicsleeve = CardSleeves.Sleeve({
key = "beta_sleeve",
name = "Nostalgic Sleeve",
atlas = "atlasSleeves",
pos = { x = 0, y = 2 },
config = { cry_beta = true },
unlocked = true,
unlock_condition = { deck = "Nostalgic Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,

trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_beta = true
end,
})

local bountifulsleeve = CardSleeves.Sleeve({
key = "bountiful_sleeve",
name = "Bountiful Sleeve",
atlas = "atlasSleeves",
pos = { x = 0, y = 2 },
config = { cry_forced_draw_amount = 5 },
unlocked = true,
unlock_condition = { deck = "Bountiful Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,

trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_forced_draw_amount = self.config.cry_forced_draw_amount
end,
})

local beigesleeve = CardSleeves.Sleeve({
key = "beige_sleeve",
name = "Beige Sleeve",
atlas = "atlasSleeves",
pos = { x = 3, y = 1 },
unlocked = true,
unlock_condition = { deck = "Beige Deck", stake = 1 },
loc_vars = function(self)
local key
if self.get_current_deck_key() == "b_cry_beige" then
key = self.key .. "_alt"
return { key = key, vars = {} }
end
return { vars = {} }
end,

trigger_effect = function(self, args) end,
apply = function(self)
if self.get_current_deck_key() ~= "b_cry_beige" then
G.GAME.modifiers.cry_common_value_quad = true
else
G.GAME.modifiers.cry_uncommon_value_quad = true
end
end,
})

local legendarysleeve = CardSleeves.Sleeve({
key = "legendary_sleeve",
name = "Legendary Sleeve",
Expand Down Expand Up @@ -328,38 +444,26 @@ if CardSleeves then
}))
end,
})
local bountifulsleeve = CardSleeves.Sleeve({
key = "bountiful_sleeve",
name = "Bountiful Sleeve",
atlas = "atlasSleeves",
pos = { x = 0, y = 2 },
config = { cry_forced_draw_amount = 5 },
unlocked = true,
unlock_condition = { deck = "Bountiful Deck", stake = 1 },
loc_vars = function(self)
return { vars = {} }
end,

trigger_effect = function(self, args) end,
apply = function(self)
G.GAME.modifiers.cry_forced_draw_amount = self.config.cry_forced_draw_amount
end,
})
local sleeveitems = {}
if CardSleeves then
sleeveitems = {
encodedsleeve,
veryfairsleeve,
infinitesleeve,
equilibriumsleeve,
misprintsleeve,
infinitesleeve,
conveyorsleeve,
CCDsleeve,
wormholesleeve,
conveyorsleeve,
redeemedsleeve,
glowingsleeve,
criticalsleeve,
encodedsleeve,
nostalgicsleeve,
bountifulsleeve,
beigesleeve,
legendarysleeve,
spookysleeve,
bountifulsleeve,
}
end
end
Expand Down
5 changes: 5 additions & 0 deletions lib/overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -994,6 +994,11 @@ function create_card(_type, area, legendary, _rarity, skip_materialize, soulable
cry_misprintize(card, { min = 4, max = 4 }, nil, true)
end
end
if _type == "Joker" and G.GAME.modifiers.cry_uncommon_value_quad then
if card.config.center.rarity == 2 then
cry_misprintize(card, { min = 4, max = 4 }, nil, true)
end
end
if card.ability.consumeable and card.pinned then -- counterpart is in Sticker.toml
G.GAME.cry_pinned_consumeables = G.GAME.cry_pinned_consumeables + 0
end
Expand Down
Loading