Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 027cef74ac | |||
| b18f37d5a1 |
7 changed files with 216 additions and 180 deletions
|
|
@ -1,98 +1,117 @@
|
||||||
#if defined(VERTEX) || __VERSION__ > 100 || defined(GL_FRAGMENT_PRECISION_HIGH)
|
#if defined(VERTEX) || __VERSION__ > 100 || defined(GL_FRAGMENT_PRECISION_HIGH)
|
||||||
#define MY_HIGHP_OR_MEDIUMP highp
|
#define MY_HIGHP_OR_MEDIUMP highp
|
||||||
#else
|
#else
|
||||||
#define MY_HIGHP_OR_MEDIUMP mediump
|
#define MY_HIGHP_OR_MEDIUMP mediump
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern MY_HIGHP_OR_MEDIUMP vec2 crystal;
|
extern MY_HIGHP_OR_MEDIUMP vec2 gaming;
|
||||||
extern MY_HIGHP_OR_MEDIUMP number dissolve;
|
extern MY_HIGHP_OR_MEDIUMP number dissolve;
|
||||||
extern MY_HIGHP_OR_MEDIUMP number time;
|
extern MY_HIGHP_OR_MEDIUMP number time;
|
||||||
extern MY_HIGHP_OR_MEDIUMP vec4 texture_details;
|
extern MY_HIGHP_OR_MEDIUMP vec4 texture_details;
|
||||||
extern MY_HIGHP_OR_MEDIUMP vec2 image_details;
|
extern MY_HIGHP_OR_MEDIUMP vec2 image_details;
|
||||||
extern bool shadow;
|
extern bool shadow;
|
||||||
extern MY_HIGHP_OR_MEDIUMP vec4 burn_colour_1;
|
extern MY_HIGHP_OR_MEDIUMP vec4 burn_colour_1;
|
||||||
extern MY_HIGHP_OR_MEDIUMP vec4 burn_colour_2;
|
extern MY_HIGHP_OR_MEDIUMP vec4 burn_colour_2;
|
||||||
|
|
||||||
vec4 dissolve_mask(vec4 tex, vec2 texture_coords, vec2 uv)
|
vec4 dissolve_mask(vec4 tex, vec2 texture_coords, vec2 uv)
|
||||||
{
|
{
|
||||||
if (dissolve < 0.001) {
|
if (dissolve < 0.001) {
|
||||||
return vec4(shadow ? vec3(0.,0.,0.) : tex.xyz, shadow ? tex.a*0.3: tex.a);
|
return vec4(shadow ? vec3(0.,0.,0.) : tex.xyz, shadow ? tex.a*0.3: tex.a);
|
||||||
}
|
}
|
||||||
|
|
||||||
float adjusted_dissolve = (dissolve*dissolve*(3.-2.*dissolve))*1.02 - 0.01; //Adjusting 0.0-1.0 to fall to -0.1 - 1.1 scale so the mask does not pause at extreme values
|
float adjusted_dissolve = (dissolve*dissolve*(3.-2.*dissolve))*1.02 - 0.01; //Adjusting 0.0-1.0 to fall to -0.1 - 1.1 scale so the mask does not pause at extreme values
|
||||||
|
|
||||||
float t = time * 10.0 + 2003.;
|
float t = time * 10.0 + 2003.;
|
||||||
vec2 floored_uv = (floor((uv*texture_details.ba)))/max(texture_details.b, texture_details.a);
|
vec2 floored_uv = (floor((uv*texture_details.ba)))/max(texture_details.b, texture_details.a);
|
||||||
vec2 uv_scaled_centered = (floored_uv - 0.5) * 2.3 * max(texture_details.b, texture_details.a);
|
vec2 uv_scaled_centered = (floored_uv - 0.5) * 2.3 * max(texture_details.b, texture_details.a);
|
||||||
|
|
||||||
vec2 field_part1 = uv_scaled_centered + 50.*vec2(sin(-t / 143.6340), cos(-t / 99.4324));
|
vec2 field_part1 = uv_scaled_centered + 50.*vec2(sin(-t / 143.6340), cos(-t / 99.4324));
|
||||||
vec2 field_part2 = uv_scaled_centered + 50.*vec2(cos( t / 53.1532), cos( t / 61.4532));
|
vec2 field_part2 = uv_scaled_centered + 50.*vec2(cos( t / 53.1532), cos( t / 61.4532));
|
||||||
vec2 field_part3 = uv_scaled_centered + 50.*vec2(sin(-t / 87.53218), sin(-t / 49.0000));
|
vec2 field_part3 = uv_scaled_centered + 50.*vec2(sin(-t / 87.53218), sin(-t / 49.0000));
|
||||||
|
|
||||||
float field = (1.+ (
|
float field = (1.+ (
|
||||||
cos(length(field_part1) / 19.483) + sin(length(field_part2) / 33.155) * cos(field_part2.y / 15.73) +
|
cos(length(field_part1) / 19.483) + sin(length(field_part2) / 33.155) * cos(field_part2.y / 15.73) +
|
||||||
cos(length(field_part3) / 27.193) * sin(field_part3.x / 21.92) ))/2.;
|
cos(length(field_part3) / 27.193) * sin(field_part3.x / 21.92) ))/2.;
|
||||||
vec2 borders = vec2(0.2, 0.8);
|
vec2 borders = vec2(0.2, 0.8);
|
||||||
|
|
||||||
float res = (.5 + .5* cos( (adjusted_dissolve) / 82.612 + ( field + -.5 ) *3.14))
|
float res = (.5 + .5* cos( (adjusted_dissolve) / 82.612 + ( field + -.5 ) *3.14))
|
||||||
- (floored_uv.x > borders.y ? (floored_uv.x - borders.y)*(5. + 5.*dissolve) : 0.)*(dissolve)
|
- (floored_uv.x > borders.y ? (floored_uv.x - borders.y)*(5. + 5.*dissolve) : 0.)*(dissolve)
|
||||||
- (floored_uv.y > borders.y ? (floored_uv.y - borders.y)*(5. + 5.*dissolve) : 0.)*(dissolve)
|
- (floored_uv.y > borders.y ? (floored_uv.y - borders.y)*(5. + 5.*dissolve) : 0.)*(dissolve)
|
||||||
- (floored_uv.x < borders.x ? (borders.x - floored_uv.x)*(5. + 5.*dissolve) : 0.)*(dissolve)
|
- (floored_uv.x < borders.x ? (borders.x - floored_uv.x)*(5. + 5.*dissolve) : 0.)*(dissolve)
|
||||||
- (floored_uv.y < borders.x ? (borders.x - floored_uv.y)*(5. + 5.*dissolve) : 0.)*(dissolve);
|
- (floored_uv.y < borders.x ? (borders.x - floored_uv.y)*(5. + 5.*dissolve) : 0.)*(dissolve);
|
||||||
|
|
||||||
if (tex.a > 0.01 && burn_colour_1.a > 0.01 && !shadow && res < adjusted_dissolve + 0.8*(0.5-abs(adjusted_dissolve-0.5)) && res > adjusted_dissolve) {
|
if (tex.a > 0.01 && burn_colour_1.a > 0.01 && !shadow && res < adjusted_dissolve + 0.8*(0.5-abs(adjusted_dissolve-0.5)) && res > adjusted_dissolve) {
|
||||||
if (!shadow && res < adjusted_dissolve + 0.5*(0.5-abs(adjusted_dissolve-0.5)) && res > adjusted_dissolve) {
|
if (!shadow && res < adjusted_dissolve + 0.5*(0.5-abs(adjusted_dissolve-0.5)) && res > adjusted_dissolve) {
|
||||||
tex.rgba = burn_colour_1.rgba;
|
tex.rgba = burn_colour_1.rgba;
|
||||||
} else if (burn_colour_2.a > 0.01) {
|
} else if (burn_colour_2.a > 0.01) {
|
||||||
tex.rgba = burn_colour_2.rgba;
|
tex.rgba = burn_colour_2.rgba;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return vec4(shadow ? vec3(0.,0.,0.) : tex.xyz, res > adjusted_dissolve ? (shadow ? tex.a*0.3: tex.a) : .0);
|
return vec4(shadow ? vec3(0.,0.,0.) : tex.xyz, res > adjusted_dissolve ? (shadow ? tex.a*0.3: tex.a) : .0);
|
||||||
}
|
}
|
||||||
|
|
||||||
vec4 effect( vec4 colour, Image texture, vec2 texture_coords, vec2 screen_coords )
|
vec3 oklab2srgb(vec3 c)
|
||||||
{
|
{
|
||||||
vec4 tex = Texel( texture, texture_coords);
|
float l_ = c.r + 0.3963377774 * c.g + 0.2158037573 * c.b;
|
||||||
vec2 uv = (((texture_coords)*(image_details)) - texture_details.xy*texture_details.ba)/texture_details.ba;
|
float m_ = c.r - 0.1055613458 * c.g - 0.0638541728 * c.b;
|
||||||
|
float s_ = c.r - 0.0894841775 * c.g - 1.2914855480 * c.b;
|
||||||
number low = min(tex.r, min(tex.g, tex.b));
|
|
||||||
number high = max(tex.r, max(tex.g, tex.b));
|
float l = l_ * l_ * l_;
|
||||||
number delta = high-low -0.1;
|
float m = m_ * m_ * m_;
|
||||||
|
float s = s_ * s_ * s_;
|
||||||
number fac = 0.8 + 0.9*sin(11.*uv.x+4.32*uv.y + crystal.r*12. + cos(crystal.r*5.3 + uv.y*4.2 - uv.x*4.));
|
|
||||||
number fac2 = 0.5 + 0.5*sin(8.*uv.x+2.32*uv.y + crystal.r*5. - cos(crystal.r*2.3 + uv.x*8.2));
|
return vec3(
|
||||||
number fac3 = 0.5 + 0.5*sin(10.*uv.x+5.32*uv.y + crystal.r*6.111 + sin(crystal.r*5.3 + uv.y*3.2));
|
4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
|
||||||
number fac4 = 0.5 + 0.5*sin(3.*uv.x+2.32*uv.y + crystal.r*8.111 + sin(crystal.r*1.3 + uv.y*11.2));
|
-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * s,
|
||||||
number fac5 = sin(0.9*16.*uv.x+5.32*uv.y + crystal.r*12. + cos(crystal.r*5.3 + uv.y*4.2 - uv.x*4.));
|
-0.0041960863 * l - 0.7034186147 * m + 1.7076147010 * s
|
||||||
|
);
|
||||||
number maxfac = 0.7*max(max(fac, max(fac2, max(fac3,0.0))) + (fac+fac2+fac3*fac4), 0.);
|
}
|
||||||
|
|
||||||
tex.rgb = tex.rgb*0.5 + vec3(0.4, 0.4, 0.8);
|
vec3 oklch2srgb(vec3 c)
|
||||||
|
{
|
||||||
tex.r = tex.r-delta + delta*maxfac*(0.7 + fac5*0.27) - 0.1;
|
return oklab2srgb(vec3(c.x, c.y * cos(c.z), c.y * sin(c.z)));
|
||||||
tex.g = tex.g-delta + delta*maxfac*(0.7 - fac5*0.27) - 0.1;
|
}
|
||||||
tex.b = tex.b-delta + delta*maxfac*0.7 - 0.1;
|
|
||||||
tex.a = 0.25+tex.a*(0.5*max(min(1., max(0.,0.3*max(low*0.2, delta)+ min(max(maxfac*0.1,0.), 0.4)) ), 0.) + 0.15*maxfac*(0.1+delta));
|
vec4 effect( vec4 colour, Image texture, vec2 texture_coords, vec2 screen_coords )
|
||||||
|
{
|
||||||
return dissolve_mask(tex*colour, texture_coords, uv);
|
MY_HIGHP_OR_MEDIUMP vec4 tex = Texel( texture, texture_coords);
|
||||||
}
|
|
||||||
|
if (tex.r + tex.g + tex.b > 2.5) {
|
||||||
extern MY_HIGHP_OR_MEDIUMP vec2 mouse_screen_pos;
|
tex = vec4(oklch2srgb(vec3(.95, 0.0325, gaming.y + texture_coords.y * 10)), tex.a);
|
||||||
extern MY_HIGHP_OR_MEDIUMP float hovering;
|
}
|
||||||
extern MY_HIGHP_OR_MEDIUMP float screen_scale;
|
else if (tex.r + tex.g + tex.b < 1.5) {
|
||||||
|
tex = vec4(oklch2srgb(vec3(.7, 0.0325, gaming.y + texture_coords.y * 10 + 3.14159)), tex.a);
|
||||||
#ifdef VERTEX
|
}
|
||||||
vec4 position( mat4 transform_projection, vec4 vertex_position )
|
|
||||||
{
|
MY_HIGHP_OR_MEDIUMP vec2 uv = (((texture_coords)*(image_details)) - texture_details.xy*texture_details.ba)/texture_details.ba;
|
||||||
if (hovering <= 0.){
|
|
||||||
return transform_projection * vertex_position;
|
if (!shadow && dissolve > 0.01){
|
||||||
}
|
if (burn_colour_2.a > 0.01){
|
||||||
float mid_dist = length(vertex_position.xy - 0.5*love_ScreenSize.xy)/length(love_ScreenSize.xy);
|
tex.rgb = tex.rgb*(1.-0.6*dissolve) + 0.6*burn_colour_2.rgb*dissolve;
|
||||||
vec2 mouse_offset = (vertex_position.xy - mouse_screen_pos.xy)/screen_scale;
|
} else if (burn_colour_1.a > 0.01){
|
||||||
float scale = 0.2*(-0.03 - 0.3*max(0., 0.3-mid_dist))
|
tex.rgb = tex.rgb*(1.-0.6*dissolve) + 0.6*burn_colour_1.rgb*dissolve;
|
||||||
*hovering*(length(mouse_offset)*length(mouse_offset))/(2. -mid_dist);
|
}
|
||||||
|
}
|
||||||
return transform_projection * vertex_position + vec4(0,0,0,scale);
|
|
||||||
}
|
return dissolve_mask(tex, texture_coords, uv);
|
||||||
#endif
|
}
|
||||||
|
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP vec2 mouse_screen_pos;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP float hovering;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP float screen_scale;
|
||||||
|
|
||||||
|
#ifdef VERTEX
|
||||||
|
vec4 position( mat4 transform_projection, vec4 vertex_position )
|
||||||
|
{
|
||||||
|
if (hovering <= 0.){
|
||||||
|
return transform_projection * vertex_position;
|
||||||
|
}
|
||||||
|
float mid_dist = length(vertex_position.xy - 0.5*love_ScreenSize.xy)/length(love_ScreenSize.xy);
|
||||||
|
vec2 mouse_offset = (vertex_position.xy - mouse_screen_pos.xy)/screen_scale;
|
||||||
|
float scale = 0.2*(-0.03 - 0.3*max(0., 0.3-mid_dist))
|
||||||
|
*hovering*(length(mouse_offset)*length(mouse_offset))/(2. -mid_dist);
|
||||||
|
|
||||||
|
return transform_projection * vertex_position + vec4(0,0,0,scale);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
@ -16,5 +16,5 @@
|
||||||
"Bakery (>=3.0.0~*)"
|
"Bakery (>=3.0.0~*)"
|
||||||
],
|
],
|
||||||
"conflicts": [],
|
"conflicts": [],
|
||||||
"version": "1.12.12"
|
"version": "1.12.14"
|
||||||
}
|
}
|
||||||
124
src/edition.lua
124
src/edition.lua
|
|
@ -1,18 +1,61 @@
|
||||||
SMODS.Shader({key = "moire", path = "moire.fs"})
|
SMODS.Shader({key = "moire", path = "moire.fs"})
|
||||||
SMODS.Shader({key = "crystal", path = "crystal.fs"})
|
SMODS.Shader({key = "gaming", path = "gaming.fs"})
|
||||||
SMODS.Shader({key = "polygloss", path = "polygloss.fs"})
|
SMODS.Shader({key = "polygloss", path = "polygloss.fs"})
|
||||||
|
|
||||||
SMODS.Sound({key = "e_jumbo", path = "e_jumbo.ogg"})
|
SMODS.Sound({key = "e_jumbo", path = "e_jumbo.ogg"})
|
||||||
SMODS.Sound({key = "e_moire", path = "e_moire.ogg"})
|
SMODS.Sound({key = "e_moire", path = "e_moire.ogg"})
|
||||||
SMODS.Sound({key = "e_crystal", path = "e_crystal.ogg"})
|
SMODS.Sound({key = "e_gaming", path = "e_gaming.ogg"})
|
||||||
SMODS.Sound({key = "e_polygloss", path = "e_polygloss.ogg"})
|
SMODS.Sound({key = "e_polygloss", path = "e_polygloss.ogg"})
|
||||||
|
|
||||||
local function get_weight(self)
|
local function get_weight(self)
|
||||||
return self.weight *
|
return self.weight *
|
||||||
G.GAME.edition_rate *
|
G.GAME.edition_rate *
|
||||||
|
(G.GAME.modifiers.omega_replacement and 0 or 1) *
|
||||||
(next(SMODS.find_card "j_jane_saint") and 10 or 1)
|
(next(SMODS.find_card "j_jane_saint") and 10 or 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
SMODS.Edition({
|
||||||
|
key = "gaming",
|
||||||
|
loc_txt = {
|
||||||
|
name = "Gaming",
|
||||||
|
label = "Gaming",
|
||||||
|
text = {
|
||||||
|
"{C:blue}+Mult{} Chips",
|
||||||
|
"{C:red}+Chips{} Mult",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = {e_chips = 1.2, e_mult = 0.8},
|
||||||
|
sound = {sound = "jane_e_gaming", per = 1, vol = 0.7},
|
||||||
|
weight = 1,
|
||||||
|
extra_cost = 20,
|
||||||
|
in_shop = true,
|
||||||
|
no_shadow = true,
|
||||||
|
apply_to_float = false,
|
||||||
|
shader = "jane_gaming",
|
||||||
|
disable_base_shader = true,
|
||||||
|
loc_vars = function(self, _, _)
|
||||||
|
return {vars = {self.config.e_chips, self.config.e_mult}}
|
||||||
|
end,
|
||||||
|
calculate = function(_, card, context)
|
||||||
|
if not context.post_joker and (not context.main_scoring or context.cardarea ~= G.play) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
extra = {
|
||||||
|
card = card,
|
||||||
|
chips = mult,
|
||||||
|
colour = G.C.jane_RGB,
|
||||||
|
extra = {
|
||||||
|
card = card,
|
||||||
|
mult = hand_chips + mult,
|
||||||
|
colour = G.C.jane_RGB,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
SMODS.Edition({
|
SMODS.Edition({
|
||||||
key = "polygloss",
|
key = "polygloss",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
|
|
@ -30,21 +73,19 @@ SMODS.Edition({
|
||||||
},
|
},
|
||||||
config = {
|
config = {
|
||||||
mult = 2,
|
mult = 2,
|
||||||
chips = 22,
|
chips = 21,
|
||||||
x_mult = 1.2,
|
x_mult = 1.2,
|
||||||
p_dollars = 1,
|
p_dollars = 1,
|
||||||
e_mult = Jane.cry and 1.02 or nil,
|
e_mult = Jane.cry and 1.02 or nil,
|
||||||
},
|
},
|
||||||
sound = {sound = "jane_e_polygloss", per = 1.2, vol = 0.4},
|
sound = {sound = "jane_e_polygloss", per = 1.2, vol = 0.4},
|
||||||
weight = 10,
|
weight = 7,
|
||||||
extra_cost = 2,
|
extra_cost = 5,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = "jane_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, self.config.mult, self.config.x_mult}
|
||||||
vars[#vars + 1] = self.config.mult
|
|
||||||
vars[#vars + 1] = self.config.x_mult
|
|
||||||
vars[#vars + 1] = self.config.e_mult
|
vars[#vars + 1] = self.config.e_mult
|
||||||
vars[#vars + 1] = self.config.p_dollars
|
vars[#vars + 1] = self.config.p_dollars
|
||||||
return {vars = vars}
|
return {vars = vars}
|
||||||
|
|
@ -74,48 +115,6 @@ SMODS.Edition({
|
||||||
get_weight = get_weight,
|
get_weight = get_weight,
|
||||||
})
|
})
|
||||||
|
|
||||||
SMODS.Edition({
|
|
||||||
key = "crystal",
|
|
||||||
loc_txt = {
|
|
||||||
name = "Crystal",
|
|
||||||
label = "Crystal",
|
|
||||||
text = {
|
|
||||||
"{C:blue}+Mult{} Chips",
|
|
||||||
"{C:red}+Chips{} Mult",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = {e_chips = 1.2, e_mult = 0.8},
|
|
||||||
sound = {sound = "jane_e_crystal", per = 1, vol = 0.7},
|
|
||||||
weight = 0,
|
|
||||||
extra_cost = 10,
|
|
||||||
in_shop = true,
|
|
||||||
no_shadow = true,
|
|
||||||
apply_to_float = false,
|
|
||||||
shader = "jane_crystal",
|
|
||||||
disable_base_shader = true,
|
|
||||||
loc_vars = function(self, _, _)
|
|
||||||
return {vars = {self.config.e_chips, self.config.e_mult}}
|
|
||||||
end,
|
|
||||||
calculate = function(_, card, context)
|
|
||||||
if not context.post_joker and (not context.main_scoring or context.cardarea ~= G.play) then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
|
||||||
extra = {
|
|
||||||
card = card,
|
|
||||||
chips = mult,
|
|
||||||
colour = G.C.jane_RGB,
|
|
||||||
extra = {
|
|
||||||
card = card,
|
|
||||||
mult = hand_chips + mult,
|
|
||||||
colour = G.C.jane_RGB,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
SMODS.Edition({
|
SMODS.Edition({
|
||||||
key = "moire",
|
key = "moire",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
|
|
@ -128,8 +127,8 @@ SMODS.Edition({
|
||||||
},
|
},
|
||||||
config = {e_chips = 0.8, e_mult = 1.2},
|
config = {e_chips = 0.8, e_mult = 1.2},
|
||||||
sound = {sound = "jane_e_moire", per = 1, vol = 0.7},
|
sound = {sound = "jane_e_moire", per = 1, vol = 0.7},
|
||||||
weight = 0,
|
weight = 1,
|
||||||
extra_cost = 10,
|
extra_cost = 20,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = "jane_moire",
|
shader = "jane_moire",
|
||||||
apply_to_float = false,
|
apply_to_float = false,
|
||||||
|
|
@ -161,13 +160,20 @@ local jumbo_modifier = Jane.cry and 100 or 2
|
||||||
local jumbo = SMODS.Edition({
|
local jumbo = SMODS.Edition({
|
||||||
key = "jumbo",
|
key = "jumbo",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Jumbo",
|
name = "{s:" .. math.pow(Jane.config.wee_sizemod, 2) .. "}" .. "Jumbo",
|
||||||
label = "Jumbo",
|
label = "Jumbo",
|
||||||
text = {
|
text = {
|
||||||
"All card values are",
|
"{s:" .. Jane.config.wee_sizemod .. "}" ..
|
||||||
"{C:attention}multiplied{} by {C:attention}up to " .. jumbo_modifier,
|
"All values are",
|
||||||
"{C:inactive}(If possible)",
|
"{C:attention,s:" .. Jane.config.wee_sizemod .. "}" ..
|
||||||
"{C:inactive,E:1,s:0.75}Whoa, it's huge!!{}",
|
"multiplied" ..
|
||||||
|
"{s:" .. Jane.config.wee_sizemod .. "}" ..
|
||||||
|
" by " ..
|
||||||
|
"{C:attention,s:" .. Jane.config.wee_sizemod .. "}" ..
|
||||||
|
jumbo_modifier,
|
||||||
|
"{C:inactive,s:" .. Jane.config.wee_sizemod .. "}" ..
|
||||||
|
"(If possible)",
|
||||||
|
"{C:inactive,E:1}Whoa, it's huge!!",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
on_apply = function(card)
|
on_apply = function(card)
|
||||||
|
|
@ -239,8 +245,8 @@ local jumbo = SMODS.Edition({
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
sound = {sound = "jane_e_jumbo", per = 1, vol = 0.5},
|
sound = {sound = "jane_e_jumbo", per = 1, vol = 0.5},
|
||||||
weight = 6,
|
weight = 7,
|
||||||
extra_cost = 5,
|
extra_cost = 10,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = false,
|
shader = false,
|
||||||
apply_to_float = false,
|
apply_to_float = false,
|
||||||
|
|
|
||||||
11
src/main.lua
11
src/main.lua
|
|
@ -364,6 +364,17 @@ function Game:start_run(...)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local orig_card_collection_UIBox = SMODS.card_collection_UIBox
|
||||||
|
|
||||||
|
function SMODS.card_collection_UIBox(_pool, rows, ...)
|
||||||
|
if _pool == G.P_CENTER_POOLS.Edition then
|
||||||
|
rows[1] = rows[1] + 1
|
||||||
|
rows[2] = rows[2] + 1
|
||||||
|
end
|
||||||
|
|
||||||
|
return orig_card_collection_UIBox(_pool, rows, ...)
|
||||||
|
end
|
||||||
|
|
||||||
local orig_draw_card = draw_card
|
local orig_draw_card = draw_card
|
||||||
|
|
||||||
---@diagnostic disable-next-line: lowercase-global
|
---@diagnostic disable-next-line: lowercase-global
|
||||||
|
|
|
||||||
|
|
@ -423,7 +423,7 @@ SMODS.Consumable {
|
||||||
name = "Familiar {C:dark_edition}Omega",
|
name = "Familiar {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Add a {C:attention}full set{} of",
|
"Add a {C:attention}full set{} of",
|
||||||
"{C:dark_edition,E:1}Moire {C:attention}Kings{}, {C:dark_edition,E:1}Crystal",
|
"{C:dark_edition,E:1}Gaming {C:attention}Kings{}, {C:dark_edition,E:1}Moire",
|
||||||
"{C:attention}Queens{}, and {C:dark_edition,E:1}Polygloss",
|
"{C:attention}Queens{}, and {C:dark_edition,E:1}Polygloss",
|
||||||
"{C:attention}Jacks {}to your deck",
|
"{C:attention}Jacks {}to your deck",
|
||||||
},
|
},
|
||||||
|
|
@ -435,8 +435,8 @@ SMODS.Consumable {
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
loc_vars = function(_, info_queue)
|
loc_vars = function(_, info_queue)
|
||||||
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_gaming
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_moire
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_moire
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_crystal
|
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_polygloss
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_polygloss
|
||||||
end,
|
end,
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
|
|
@ -444,8 +444,8 @@ SMODS.Consumable {
|
||||||
self:bulk_use(card, area, copier, 1)
|
self:bulk_use(card, area, copier, 1)
|
||||||
end,
|
end,
|
||||||
bulk_use = function(_, _, _, _, number)
|
bulk_use = function(_, _, _, _, number)
|
||||||
create_card_set("_K", "e_jane_moire", number)
|
create_card_set("_K", "e_jane_gaming", number)
|
||||||
create_card_set("_Q", "e_jane_crystal", number)
|
create_card_set("_Q", "e_jane_moire", number)
|
||||||
create_card_set("_J", "e_jane_polygloss", number)
|
create_card_set("_J", "e_jane_polygloss", number)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
@ -564,8 +564,8 @@ SMODS.Consumable {
|
||||||
text = {
|
text = {
|
||||||
"Add a {C:attention}full set{} of cards",
|
"Add a {C:attention}full set{} of cards",
|
||||||
"{C:attention}2{} through {C:attention}10 {}to your deck",
|
"{C:attention}2{} through {C:attention}10 {}to your deck",
|
||||||
"{C:dark_edition,E:1}Polygloss{} on {C:attention}odd ranks",
|
"{C:dark_edition,E:1}Gaming{} on {C:attention}odd ranks",
|
||||||
"{C:dark_edition,E:1}Crystal{} on {C:attention}even ranks",
|
"{C:dark_edition,E:1}Polygloss{} on {C:attention}even ranks",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 9},
|
pos = {x = 0, y = 9},
|
||||||
|
|
@ -575,23 +575,23 @@ SMODS.Consumable {
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
loc_vars = function(_, info_queue)
|
loc_vars = function(_, info_queue)
|
||||||
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_gaming
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_polygloss
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_polygloss
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_crystal
|
|
||||||
end,
|
end,
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
use = function(self, card, area, copier)
|
use = function(self, card, area, copier)
|
||||||
self:bulk_use(card, area, copier, 1)
|
self:bulk_use(card, area, copier, 1)
|
||||||
end,
|
end,
|
||||||
bulk_use = function(_, _, _, _, number)
|
bulk_use = function(_, _, _, _, number)
|
||||||
create_card_set("_2", "e_jane_crystal", number)
|
create_card_set("_2", "e_jane_polygloss", number)
|
||||||
create_card_set("_3", "e_jane_polygloss", number)
|
create_card_set("_3", "e_jane_gaming", number)
|
||||||
create_card_set("_4", "e_jane_crystal", number)
|
create_card_set("_4", "e_jane_polygloss", number)
|
||||||
create_card_set("_5", "e_jane_polygloss", number)
|
create_card_set("_5", "e_jane_gaming", number)
|
||||||
create_card_set("_6", "e_jane_crystal", number)
|
create_card_set("_6", "e_jane_polygloss", number)
|
||||||
create_card_set("_7", "e_jane_polygloss", number)
|
create_card_set("_7", "e_jane_gaming", number)
|
||||||
create_card_set("_8", "e_jane_crystal", number)
|
create_card_set("_8", "e_jane_polygloss", number)
|
||||||
create_card_set("_9", "e_jane_polygloss", number)
|
create_card_set("_9", "e_jane_gaming", number)
|
||||||
create_card_set("_T", "e_jane_crystal", number)
|
create_card_set("_T", "e_jane_polygloss", number)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1065,10 +1065,10 @@ SMODS.Consumable {
|
||||||
atlas = "janeomegatarots",
|
atlas = "janeomegatarots",
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
loc_vars = function()
|
loc_vars = function()
|
||||||
return {vars = {G.GAME.dollars ^ 1.5}}
|
return {vars = {math.ceil(G.GAME.dollars ^ 1.5)}}
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function()
|
||||||
ease_dollars(G.GAME.dollars ^ 1.5)
|
ease_dollars(math.ceil(G.GAME.dollars ^ 1.5))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1111,7 +1111,7 @@ for _, vv in pairs({
|
||||||
name = "The " .. string.upper(string.sub(vv.b, 1, 1)) .. string.sub(vv.b, 2, string.len(vv.b)) .. " {C:dark_edition}Omega",
|
name = "The " .. string.upper(string.sub(vv.b, 1, 1)) .. string.sub(vv.b, 2, string.len(vv.b)) .. " {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Convert {C:attention}all {C:" .. string.lower(vv.s) .. "}" .. vv.s,
|
"Convert {C:attention}all {C:" .. string.lower(vv.s) .. "}" .. vv.s,
|
||||||
"to {C:dark_edition,E:1}Crystal{}, {C:dark_edition,E:1}Moire{},",
|
"to {C:dark_edition,E:1}Gaming{}, {C:dark_edition,E:1}Moire{},",
|
||||||
"or {C:dark_edition,E:1}Polygloss",
|
"or {C:dark_edition,E:1}Polygloss",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -1122,7 +1122,7 @@ for _, vv in pairs({
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegatarots",
|
atlas = "janeomegatarots",
|
||||||
loc_vars = function(_, info_queue)
|
loc_vars = function(_, info_queue)
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_crystal
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_gaming
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_moire
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_moire
|
||||||
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_polygloss
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_polygloss
|
||||||
end,
|
end,
|
||||||
|
|
@ -1140,7 +1140,7 @@ for _, vv in pairs({
|
||||||
return false
|
return false
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function()
|
||||||
local editions = {"jane_crystal", "jane_moire", "jane_polygloss"}
|
local editions = {"jane_gaming", "jane_moire", "jane_polygloss"}
|
||||||
|
|
||||||
play_sound("jane_pop")
|
play_sound("jane_pop")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -315,7 +315,7 @@ SMODS.Joker {
|
||||||
atlas = "janegourmand",
|
atlas = "janegourmand",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Gourmand",
|
name = "The Gourmand",
|
||||||
text = {"All cards are {C:dark_edition}Jumbo"},
|
text = {"All cards are {C:dark_edition,s:" .. Jane.config.wee_sizemod .. "}Jumbo"},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 0},
|
pos = {x = 0, y = 0},
|
||||||
soul_pos = {x = 1, y = 0},
|
soul_pos = {x = 1, y = 0},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue