Compare commits

..

2 commits

Author SHA1 Message Date
1b153166ad
Reorder Editions and fix Moire shader 2026-08-12 01:14:19 +02:00
7084ec1f40
Use correct Cryptid check 2026-08-12 00:37:07 +02:00
3 changed files with 54 additions and 51 deletions

View file

@ -18,5 +18,5 @@
"conflicts": [ "conflicts": [
"Jen" "Jen"
], ],
"version": "1.11.26" "version": "1.11.28"
} }

View file

@ -36,7 +36,7 @@ SMODS.Edition({
weight = 10, weight = 10,
extra_cost = 2, extra_cost = 2,
in_shop = true, in_shop = true,
shader = "polygloss", shader = "jane_polygloss",
apply_to_float = false, apply_to_float = false,
loc_vars = function(self, _, _) loc_vars = function(self, _, _)
local vars = {self.config.chips} local vars = {self.config.chips}
@ -71,13 +71,46 @@ SMODS.Edition({
get_weight = get_weight, get_weight = get_weight,
}) })
local orig_draw_shader = Sprite.draw_shader local moire = SMODS.Edition({
key = "moire",
loc_txt = {
name = "Moire",
label = "Moire",
text = {
"{X:dark_edition,C:white}^#1#{} Chips",
"{X:dark_edition,C:white}^#2#{} Mult",
},
},
config = {e_chips = 0.8, e_mult = 1.2},
sound = {sound = "jane_e_moire", per = 1, vol = 0.7},
weight = 1,
extra_cost = 10,
in_shop = true,
shader = "jane_moire",
apply_to_float = false,
get_weight = get_weight,
loc_vars = function(self, _, _)
return {vars = {self.config.e_chips, self.config.e_mult}}
end,
calculate = function(self, card, context)
if not context.post_joker and (not context.main_scoring or context.cardarea ~= G.play) then
return
end
function Sprite:draw_shader(_shader, ...) return {
if _shader ~= "jane_jumbo" then extra = {
return orig_draw_shader(self, _shader, ...) card = card,
end colour = G.C.jane_RGB,
end e_chips = self.config.e_chips,
extra = {
card = card,
colour = G.C.jane_RGB,
e_mult = self.config.e_mult,
},
},
}
end,
})
local jumbo_modifier = Jane.cry and 100 or 2 local jumbo_modifier = Jane.cry and 100 or 2
@ -196,46 +229,16 @@ function Card:set_ability(...)
return ret return ret
end end
SMODS.Edition({ local orig_draw_shader = Sprite.draw_shader
key = "moire",
loc_txt = { function Sprite:draw_shader(_shader, ...)
name = "Moire", if _shader == "jane_jumbo" then
label = "Moire",
text = {
"{X:dark_edition,C:white}^#1#{} Chips",
"{X:dark_edition,C:white}^#2#{} Mult",
},
},
config = {e_chips = 0.8, e_mult = 1.2},
sound = {sound = "jane_e_moire", per = 1, vol = 0.7},
weight = 1,
extra_cost = 10,
in_shop = true,
shader = "moire",
apply_to_float = false,
get_weight = get_weight,
loc_vars = function(self, _, _)
return {vars = {self.config.e_chips, self.config.e_mult}}
end,
draw = function()
G.P_CENTERS.j_jane_saint:draw()
end,
calculate = function(self, card, context)
if not context.post_joker and (not context.main_scoring or context.cardarea ~= G.play) then
return return
end end
return { if _shader == "jane_moire" then
extra = { G.P_CENTERS.j_jane_saint:draw()
card = card, end
colour = G.C.jane_RGB,
e_chips = self.config.e_chips, return orig_draw_shader(self, _shader, ...)
extra = { end
card = card,
colour = G.C.jane_RGB,
e_mult = self.config.e_mult,
},
},
}
end,
})

View file

@ -1,5 +1,5 @@
Jane = { Jane = {
cry = not not SMODS.Mods.Cryptid, cry = SMODS.Mods.Cryptid and not SMODS.Mods.Cryptid.disabled,
config = { config = {
texture_pack = "default", texture_pack = "default",
wee_sizemod = math.sqrt(2), wee_sizemod = math.sqrt(2),