Compare commits
No commits in common. "main" and "1.11.25" have entirely different histories.
4 changed files with 52 additions and 55 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
[manifest]
|
[manifest]
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
dump_lua = true
|
dump_lua = true
|
||||||
priority = 115
|
priority = 114
|
||||||
|
|
||||||
[[patches]]
|
[[patches]]
|
||||||
[patches.pattern]
|
[patches.pattern]
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
"prefix": "jane",
|
"prefix": "jane",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
"badge_colour": "3c3cff",
|
"badge_colour": "3c3cff",
|
||||||
"priority": 115,
|
"priority": 114,
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
"Steamodded (>=1.0.0~BETA-1606b)",
|
"Steamodded (>=1.0.0~BETA-1606b)",
|
||||||
"Lovely (>=0.6)",
|
"Lovely (>=0.6)",
|
||||||
|
|
@ -18,5 +18,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.11.28"
|
"version": "1.11.25"
|
||||||
}
|
}
|
||||||
|
|
@ -36,7 +36,7 @@ SMODS.Edition({
|
||||||
weight = 10,
|
weight = 10,
|
||||||
extra_cost = 2,
|
extra_cost = 2,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = "jane_polygloss",
|
shader = "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,46 +71,13 @@ SMODS.Edition({
|
||||||
get_weight = get_weight,
|
get_weight = get_weight,
|
||||||
})
|
})
|
||||||
|
|
||||||
local moire = SMODS.Edition({
|
local orig_draw_shader = Sprite.draw_shader
|
||||||
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
|
|
||||||
|
|
||||||
return {
|
function Sprite:draw_shader(_shader, ...)
|
||||||
extra = {
|
if _shader ~= "jane_jumbo" then
|
||||||
card = card,
|
return orig_draw_shader(self, _shader, ...)
|
||||||
colour = G.C.jane_RGB,
|
end
|
||||||
e_chips = self.config.e_chips,
|
end
|
||||||
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
|
||||||
|
|
||||||
|
|
@ -229,16 +196,46 @@ function Card:set_ability(...)
|
||||||
return ret
|
return ret
|
||||||
end
|
end
|
||||||
|
|
||||||
local orig_draw_shader = Sprite.draw_shader
|
SMODS.Edition({
|
||||||
|
key = "moire",
|
||||||
function Sprite:draw_shader(_shader, ...)
|
loc_txt = {
|
||||||
if _shader == "jane_jumbo" then
|
name = "Moire",
|
||||||
return
|
label = "Moire",
|
||||||
end
|
text = {
|
||||||
|
"{X:dark_edition,C:white}^#1#{} Chips",
|
||||||
if _shader == "jane_moire" then
|
"{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()
|
G.P_CENTERS.j_jane_saint:draw()
|
||||||
end
|
end,
|
||||||
|
calculate = function(self, card, context)
|
||||||
|
if not context.post_joker and (not context.main_scoring or context.cardarea ~= G.play) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
return orig_draw_shader(self, _shader, ...)
|
return {
|
||||||
end
|
extra = {
|
||||||
|
card = card,
|
||||||
|
colour = G.C.jane_RGB,
|
||||||
|
e_chips = self.config.e_chips,
|
||||||
|
extra = {
|
||||||
|
card = card,
|
||||||
|
colour = G.C.jane_RGB,
|
||||||
|
e_mult = self.config.e_mult,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
Jane = {
|
Jane = {
|
||||||
cry = SMODS.Mods.Cryptid and not SMODS.Mods.Cryptid.disabled,
|
cry = not not G.P_CENTERS.j_cry_m,
|
||||||
config = {
|
config = {
|
||||||
texture_pack = "default",
|
texture_pack = "default",
|
||||||
wee_sizemod = math.sqrt(2),
|
wee_sizemod = math.sqrt(2),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue