Compare commits
No commits in common. "main" and "1.12.3" have entirely different histories.
9 changed files with 479 additions and 703 deletions
|
|
@ -1,117 +1,98 @@
|
||||||
#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 gaming;
|
extern MY_HIGHP_OR_MEDIUMP vec2 crystal;
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
vec3 oklab2srgb(vec3 c)
|
vec4 effect( vec4 colour, Image texture, vec2 texture_coords, vec2 screen_coords )
|
||||||
{
|
{
|
||||||
float l_ = c.r + 0.3963377774 * c.g + 0.2158037573 * c.b;
|
vec4 tex = Texel( texture, texture_coords);
|
||||||
float m_ = c.r - 0.1055613458 * c.g - 0.0638541728 * c.b;
|
vec2 uv = (((texture_coords)*(image_details)) - texture_details.xy*texture_details.ba)/texture_details.ba;
|
||||||
float s_ = c.r - 0.0894841775 * c.g - 1.2914855480 * c.b;
|
|
||||||
|
number low = min(tex.r, min(tex.g, tex.b));
|
||||||
float l = l_ * l_ * l_;
|
number high = max(tex.r, max(tex.g, tex.b));
|
||||||
float m = m_ * m_ * m_;
|
number delta = high-low -0.1;
|
||||||
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.));
|
||||||
return vec3(
|
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));
|
||||||
4.0767416621 * l - 3.3077115913 * m + 0.2309699292 * s,
|
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));
|
||||||
-1.2684380046 * l + 2.6097574011 * m - 0.3413193965 * 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));
|
||||||
-0.0041960863 * l - 0.7034186147 * m + 1.7076147010 * 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.));
|
||||||
);
|
|
||||||
}
|
number maxfac = 0.7*max(max(fac, max(fac2, max(fac3,0.0))) + (fac+fac2+fac3*fac4), 0.);
|
||||||
|
|
||||||
vec3 oklch2srgb(vec3 c)
|
tex.rgb = tex.rgb*0.5 + vec3(0.4, 0.4, 0.8);
|
||||||
{
|
|
||||||
return oklab2srgb(vec3(c.x, c.y * cos(c.z), c.y * sin(c.z)));
|
tex.r = tex.r-delta + delta*maxfac*(0.7 + fac5*0.27) - 0.1;
|
||||||
}
|
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;
|
||||||
vec4 effect( vec4 colour, Image texture, vec2 texture_coords, vec2 screen_coords )
|
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));
|
||||||
{
|
|
||||||
MY_HIGHP_OR_MEDIUMP vec4 tex = Texel( texture, texture_coords);
|
return dissolve_mask(tex*colour, texture_coords, uv);
|
||||||
|
}
|
||||||
if (tex.r + tex.g + tex.b > 2.5) {
|
|
||||||
tex = vec4(oklch2srgb(vec3(.95, 0.0325, gaming.y + texture_coords.y * 10)), tex.a);
|
extern MY_HIGHP_OR_MEDIUMP vec2 mouse_screen_pos;
|
||||||
}
|
extern MY_HIGHP_OR_MEDIUMP float hovering;
|
||||||
else if (tex.r + tex.g + tex.b < 1.5) {
|
extern MY_HIGHP_OR_MEDIUMP float screen_scale;
|
||||||
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.){
|
||||||
if (!shadow && dissolve > 0.01){
|
return transform_projection * vertex_position;
|
||||||
if (burn_colour_2.a > 0.01){
|
}
|
||||||
tex.rgb = tex.rgb*(1.-0.6*dissolve) + 0.6*burn_colour_2.rgb*dissolve;
|
float mid_dist = length(vertex_position.xy - 0.5*love_ScreenSize.xy)/length(love_ScreenSize.xy);
|
||||||
} else if (burn_colour_1.a > 0.01){
|
vec2 mouse_offset = (vertex_position.xy - mouse_screen_pos.xy)/screen_scale;
|
||||||
tex.rgb = tex.rgb*(1.-0.6*dissolve) + 0.6*burn_colour_1.rgb*dissolve;
|
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);
|
||||||
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.14"
|
"version": "1.12.3"
|
||||||
}
|
}
|
||||||
134
src/back.lua
134
src/back.lua
|
|
@ -157,7 +157,7 @@ local rain_world_jokers = {
|
||||||
"j_jane_saint",
|
"j_jane_saint",
|
||||||
}
|
}
|
||||||
|
|
||||||
function Jane.add_rain_world_joker()
|
local function add_rain_world_joker()
|
||||||
if not G.jokers then
|
if not G.jokers then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
@ -200,14 +200,14 @@ back {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
alt_apply = function(_)
|
alt_apply = function(_)
|
||||||
Jane.q(Jane.add_rain_world_joker)
|
Jane.q(add_rain_world_joker)
|
||||||
end,
|
end,
|
||||||
apply = function(_)
|
apply = function(_)
|
||||||
Jane.q(Jane.add_rain_world_joker)
|
Jane.q(add_rain_world_joker)
|
||||||
end,
|
end,
|
||||||
alt_calculate = function(_, _, context)
|
alt_calculate = function(_, _, context)
|
||||||
if Jane.is_end_of_ante(context) then
|
if Jane.is_end_of_ante(context) then
|
||||||
Jane.add_rain_world_joker()
|
add_rain_world_joker()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
@ -265,12 +265,12 @@ local function redeem_omen_globe()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Jane.increase_rates()
|
local function increase_rates()
|
||||||
for _, v in ipairs(SMODS.ConsumableType.obj_buffer) do
|
for _, v in ipairs(SMODS.ConsumableType.obj_buffer) do
|
||||||
local key = v:lower() .. "_rate"
|
local key = v:lower() .. "_rate"
|
||||||
local n = G.GAME[key]
|
local n = G.GAME[key]
|
||||||
|
|
||||||
if v ~= "jane_omegaconsumable" and type(n) == "number" then
|
if type(n) == "number" then
|
||||||
G.GAME[key] = math.max(n, 1)
|
G.GAME[key] = math.max(n, 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -305,13 +305,13 @@ back {
|
||||||
alt_apply = function(_)
|
alt_apply = function(_)
|
||||||
G.GAME.alt_obsidian = true
|
G.GAME.alt_obsidian = true
|
||||||
G.GAME.obsidian = true
|
G.GAME.obsidian = true
|
||||||
Jane.increase_rates()
|
|
||||||
redeem_omen_globe()
|
redeem_omen_globe()
|
||||||
|
increase_rates()
|
||||||
end,
|
end,
|
||||||
apply = function(_)
|
apply = function(_)
|
||||||
G.GAME.obsidian = true
|
G.GAME.obsidian = true
|
||||||
Jane.increase_rates()
|
|
||||||
redeem_omen_globe()
|
redeem_omen_globe()
|
||||||
|
increase_rates()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -346,7 +346,7 @@ function get_current_pool(_type, ...)
|
||||||
return pool, pool_key
|
return pool, pool_key
|
||||||
end
|
end
|
||||||
|
|
||||||
function Jane.apply_orrery()
|
local function apply_orrery()
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
local orrery = {}
|
local orrery = {}
|
||||||
G.GAME.orrery = orrery
|
G.GAME.orrery = orrery
|
||||||
|
|
@ -361,7 +361,7 @@ function Jane.apply_orrery()
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Jane.rebalance_orrery()
|
local function rebalance_orrery()
|
||||||
local function small(x)
|
local function small(x)
|
||||||
return type(x) == "table" and x:to_number() or x
|
return type(x) == "table" and x:to_number() or x
|
||||||
end
|
end
|
||||||
|
|
@ -454,12 +454,12 @@ back {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
alt_apply = function(_)
|
alt_apply = function(_)
|
||||||
Jane.apply_orrery()
|
apply_orrery()
|
||||||
end,
|
end,
|
||||||
apply = function(_)
|
apply = function(_)
|
||||||
Jane.apply_orrery()
|
apply_orrery()
|
||||||
end,
|
end,
|
||||||
calculate = Jane.rebalance_orrery,
|
calculate = rebalance_orrery,
|
||||||
alt_calculate = function(_, _, context)
|
alt_calculate = function(_, _, context)
|
||||||
local function small(x)
|
local function small(x)
|
||||||
return type(x) == "table" and x:to_number() or x
|
return type(x) == "table" and x:to_number() or x
|
||||||
|
|
@ -493,7 +493,7 @@ back {
|
||||||
ease_discard(new_discards, true)
|
ease_discard(new_discards, true)
|
||||||
end
|
end
|
||||||
|
|
||||||
Jane.rebalance_orrery()
|
rebalance_orrery()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -663,39 +663,6 @@ back {
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
function Jane.display_omega_odds()
|
|
||||||
local omega_replacement = ((G.GAME or {}).modifiers or {}).omega_replacement
|
|
||||||
|
|
||||||
if not omega_replacement or omega_replacement == 0 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local handy_speed = ((Handy or {}).speed_multiplier or {}).value or 1
|
|
||||||
local pitch = 0.9 + (0.2 * math.random())
|
|
||||||
|
|
||||||
play_sound("jane_pop", pitch * 0.75, 0.75)
|
|
||||||
play_sound("jane_pop", pitch * 1.5, 0.75)
|
|
||||||
|
|
||||||
Jane.card_status_text(
|
|
||||||
nil,
|
|
||||||
"Omega Cards are now a 1 in " .. number_format(1 / G.GAME.modifiers.omega_replacement),
|
|
||||||
0,
|
|
||||||
0.0005,
|
|
||||||
G.C.jane_RGB,
|
|
||||||
1.5,
|
|
||||||
nil,
|
|
||||||
nil,
|
|
||||||
nil,
|
|
||||||
"cm",
|
|
||||||
"jane_pop",
|
|
||||||
0.75,
|
|
||||||
pitch,
|
|
||||||
nil,
|
|
||||||
nil,
|
|
||||||
G.SETTINGS.GAMESPEED * handy_speed * 3
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
local banned_keys = {
|
local banned_keys = {
|
||||||
sleeve_Seen_Seen = true,
|
sleeve_Seen_Seen = true,
|
||||||
sleeve_jane_omega = true,
|
sleeve_jane_omega = true,
|
||||||
|
|
@ -708,8 +675,8 @@ back {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Omega Deck",
|
name = "Omega Deck",
|
||||||
text = {
|
text = {
|
||||||
"{C:jane_RGB}Omega {}cards may appear",
|
"Applies the {C:legendary,E:1}upsides",
|
||||||
"Odds increase per {C:attention}ante",
|
"of {C:attention}every Jane deck",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
alt_loc_txt = {
|
alt_loc_txt = {
|
||||||
|
|
@ -736,19 +703,22 @@ back {
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
apply = function(_)
|
apply = function(_)
|
||||||
for _, v in ipairs({
|
apply_orrery()
|
||||||
"j_Bakery_Lua",
|
increase_rates()
|
||||||
not Jane.cry and "tag_charm" or nil,
|
G.GAME.modifiers.jane_spacious = true
|
||||||
"tag_meteor",
|
G.GAME.used_vouchers.v_omen_globe = true
|
||||||
"tag_ethereal",
|
G.GAME.modifiers.jane_spacious_omega = true
|
||||||
"c_jane_token_tag_charm",
|
G.GAME.starting_voucher_count = (G.GAME.starting_voucher_count or 0) + 1
|
||||||
"c_jane_token_tag_meteor",
|
|
||||||
"c_jane_token_tag_ethereal",
|
|
||||||
}) do
|
|
||||||
G.GAME.banned_keys[v] = true
|
|
||||||
end
|
|
||||||
|
|
||||||
G.GAME.modifiers.omega_replacement = (not _G["MP"] or not _G["MP"]["LOBBY"]) and 1 / 301 or 0
|
Jane.q(function()
|
||||||
|
add_rain_world_joker()
|
||||||
|
local wee = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_wee", "weeck")
|
||||||
|
G.jokers:emplace(wee)
|
||||||
|
G.GAME.tortoise = true
|
||||||
|
G.GAME.obsidian = true
|
||||||
|
G.GAME.mysterious = true
|
||||||
|
save_run()
|
||||||
|
end)
|
||||||
end,
|
end,
|
||||||
alt_calculate = function(_, ...)
|
alt_calculate = function(_, ...)
|
||||||
for _, v in pairs(G.P_CENTERS) do
|
for _, v in pairs(G.P_CENTERS) do
|
||||||
|
|
@ -764,44 +734,14 @@ back {
|
||||||
G.hand.config.card_limit = math.max(G.hand.config.card_limit or 12, 12)
|
G.hand.config.card_limit = math.max(G.hand.config.card_limit or 12, 12)
|
||||||
end,
|
end,
|
||||||
calculate = function(_, _, context)
|
calculate = function(_, _, context)
|
||||||
if not _G["MP"] or not _G["MP"]["LOBBY"] then
|
rebalance_orrery()
|
||||||
if Jane.is_end_of_ante(context) then
|
G.GAME.mysterious = nil
|
||||||
G.GAME.modifiers.omega_replacement = G.GAME.modifiers.omega_replacement ^ 0.95
|
|
||||||
Jane.q(Jane.display_omega_odds)
|
|
||||||
end
|
|
||||||
|
|
||||||
return
|
if Jane.is_end_of_ante(context) then
|
||||||
|
Jane.q(function()
|
||||||
|
Jane.empowered()
|
||||||
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not context.end_of_round or
|
|
||||||
context.individual or
|
|
||||||
context.repetition or
|
|
||||||
context.blueprint then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
local blind = ({
|
|
||||||
["Small Blind"] = 8,
|
|
||||||
["Big Blind"] = 5,
|
|
||||||
})[G.GAME.blind.name] or 2
|
|
||||||
|
|
||||||
local ante = G.GAME.round_resets.ante
|
|
||||||
local chance = 1 - math.pow(300 / 301, ante * 9 - blind)
|
|
||||||
local key = "omega_mp_" .. number_format(ante) .. "_" .. number_format(blind)
|
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
G.GAME.modifiers.omega_replacement = chance
|
|
||||||
Jane.display_omega_odds()
|
|
||||||
G.GAME.modifiers.omega_replacement = 0
|
|
||||||
end)
|
|
||||||
|
|
||||||
if pseudorandom(key) >= chance then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
Jane.omega(key)
|
|
||||||
end)
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -93,45 +93,3 @@ G.localization.misc.v_text.ch_c_jane_downpour2 =
|
||||||
|
|
||||||
G.localization.misc.v_text.ch_c_jane_downpour3 =
|
G.localization.misc.v_text.ch_c_jane_downpour3 =
|
||||||
{"{C:attention}Boss Blind {}is defeated, or {C:red}lose"}
|
{"{C:attention}Boss Blind {}is defeated, or {C:red}lose"}
|
||||||
|
|
||||||
SMODS.Challenge {
|
|
||||||
key = "jerma",
|
|
||||||
loc_txt = {name = "Jerma"},
|
|
||||||
rules = {custom = {{id = "jane_jerma1"}, {id = "jane_jerma2"}}},
|
|
||||||
apply = function(_)
|
|
||||||
Jane.apply_orrery()
|
|
||||||
Jane.increase_rates()
|
|
||||||
G.GAME.modifiers.jane_spacious = true
|
|
||||||
G.GAME.used_vouchers.v_omen_globe = true
|
|
||||||
G.GAME.modifiers.jane_spacious_omega = true
|
|
||||||
G.GAME.starting_voucher_count = (G.GAME.starting_voucher_count or 0) + 1
|
|
||||||
G.GAME.modifiers.omega_replacement = (not _G["MP"] or not _G["MP"]["LOBBY"]) and 1 / 301 or 0
|
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
Jane.add_rain_world_joker()
|
|
||||||
local wee = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_wee", "weeck")
|
|
||||||
G.jokers:emplace(wee)
|
|
||||||
G.GAME.tortoise = true
|
|
||||||
G.GAME.obsidian = true
|
|
||||||
G.GAME.mysterious = true
|
|
||||||
save_run()
|
|
||||||
end)
|
|
||||||
end,
|
|
||||||
calculate = function(card, context)
|
|
||||||
G.P_CENTERS.b_jane_omega:calculate(card, context)
|
|
||||||
Jane.rebalance_orrery()
|
|
||||||
G.GAME.mysterious = nil
|
|
||||||
|
|
||||||
if Jane.is_end_of_ante(context) then
|
|
||||||
Jane.q(function()
|
|
||||||
Jane.empowered()
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
G.localization.misc.v_text.ch_c_jane_jerma1 =
|
|
||||||
{"Applies the {C:legendary,E:1}upsides"}
|
|
||||||
|
|
||||||
G.localization.misc.v_text.ch_c_jane_jerma2 =
|
|
||||||
{"of {C:attention}every Jane deck"}
|
|
||||||
|
|
|
||||||
126
src/edition.lua
126
src/edition.lua
|
|
@ -1,61 +1,18 @@
|
||||||
SMODS.Shader({key = "moire", path = "moire.fs"})
|
SMODS.Shader({key = "moire", path = "moire.fs"})
|
||||||
SMODS.Shader({key = "gaming", path = "gaming.fs"})
|
SMODS.Shader({key = "crystal", path = "crystal.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_gaming", path = "e_gaming.ogg"})
|
SMODS.Sound({key = "e_crystal", path = "e_crystal.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 = {
|
||||||
|
|
@ -73,19 +30,21 @@ SMODS.Edition({
|
||||||
},
|
},
|
||||||
config = {
|
config = {
|
||||||
mult = 2,
|
mult = 2,
|
||||||
chips = 21,
|
chips = 22,
|
||||||
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 = 7,
|
weight = 10,
|
||||||
extra_cost = 5,
|
extra_cost = 2,
|
||||||
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, self.config.mult, self.config.x_mult}
|
local vars = {self.config.chips}
|
||||||
|
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}
|
||||||
|
|
@ -115,6 +74,48 @@ 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(self, 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 = {
|
||||||
|
|
@ -125,10 +126,10 @@ SMODS.Edition({
|
||||||
"{X:dark_edition,C:white}^#2#{} Mult",
|
"{X:dark_edition,C:white}^#2#{} Mult",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
config = {e_chips = 0.8, e_mult = 1.2},
|
config = {e_chips = 0.75, e_mult = 1.25},
|
||||||
sound = {sound = "jane_e_moire", per = 1, vol = 0.7},
|
sound = {sound = "jane_e_moire", per = 1, vol = 0.7},
|
||||||
weight = 1,
|
weight = 0,
|
||||||
extra_cost = 20,
|
extra_cost = 10,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = "jane_moire",
|
shader = "jane_moire",
|
||||||
apply_to_float = false,
|
apply_to_float = false,
|
||||||
|
|
@ -160,20 +161,13 @@ 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 = "{s:" .. math.pow(Jane.config.wee_sizemod, 2) .. "}" .. "Jumbo",
|
name = "Jumbo",
|
||||||
label = "Jumbo",
|
label = "Jumbo",
|
||||||
text = {
|
text = {
|
||||||
"{s:" .. Jane.config.wee_sizemod .. "}" ..
|
"All card values are",
|
||||||
"All values are",
|
"{C:attention}multiplied{} by {C:attention}up to " .. jumbo_modifier,
|
||||||
"{C:attention,s:" .. Jane.config.wee_sizemod .. "}" ..
|
"{C:inactive}(If possible)",
|
||||||
"multiplied" ..
|
"{C:inactive,E:1,s:0.75}Whoa, it's huge!!{}",
|
||||||
"{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)
|
||||||
|
|
@ -245,8 +239,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 = 7,
|
weight = 6,
|
||||||
extra_cost = 10,
|
extra_cost = 5,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = false,
|
shader = false,
|
||||||
apply_to_float = false,
|
apply_to_float = false,
|
||||||
|
|
|
||||||
67
src/main.lua
67
src/main.lua
|
|
@ -12,9 +12,10 @@ end
|
||||||
Jane = {
|
Jane = {
|
||||||
cry = SMODS.Mods.Cryptid and not SMODS.Mods.Cryptid.disabled,
|
cry = SMODS.Mods.Cryptid and not SMODS.Mods.Cryptid.disabled,
|
||||||
config = {
|
config = {
|
||||||
|
omega_chance = 1 / 301,
|
||||||
texture_pack = "default",
|
texture_pack = "default",
|
||||||
wee_sizemod = math.sqrt(2),
|
wee_sizemod = math.sqrt(2),
|
||||||
bans = {"j_cry_crustulum", "c_cry_hammerspace"},
|
bans = {"j_Bakery_Lua", "j_cry_crustulum", "c_cry_hammerspace"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -27,25 +28,6 @@ if not Jane.misprintize then
|
||||||
assert(SMODS.load_file("src/misprintize.lua"))()
|
assert(SMODS.load_file("src/misprintize.lua"))()
|
||||||
end
|
end
|
||||||
|
|
||||||
local function update_omega_from_collection()
|
|
||||||
local buffer = SMODS.ConsumableType.visible_buffer
|
|
||||||
|
|
||||||
if not buffer then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
for i = 1, #buffer do
|
|
||||||
if buffer[i] == "jane_omegaconsumable" then
|
|
||||||
table.remove(buffer, i)
|
|
||||||
i = i - 1
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if G.GAME.modifiers.omega_replacement then
|
|
||||||
buffer[#buffer + 1] = "jane_omegaconsumable"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function Jane.can_use()
|
function Jane.can_use()
|
||||||
return not (((G.play and #G.play.cards > 0) or
|
return not (((G.play and #G.play.cards > 0) or
|
||||||
(G.CONTROLLER.locked) or
|
(G.CONTROLLER.locked) or
|
||||||
|
|
@ -70,8 +52,7 @@ function Jane.card_status_text(
|
||||||
volume,
|
volume,
|
||||||
pitch,
|
pitch,
|
||||||
trigger,
|
trigger,
|
||||||
f,
|
f
|
||||||
hold
|
|
||||||
)
|
)
|
||||||
if (delay or 0) <= 0 then
|
if (delay or 0) <= 0 then
|
||||||
if type(f) == "function" then
|
if type(f) == "function" then
|
||||||
|
|
@ -81,7 +62,7 @@ function Jane.card_status_text(
|
||||||
attention_text({
|
attention_text({
|
||||||
text = text,
|
text = text,
|
||||||
scale = size or 1,
|
scale = size or 1,
|
||||||
hold = hold or 0.7,
|
hold = 0.7,
|
||||||
backdrop_colour = colour or (G.C.FILTER),
|
backdrop_colour = colour or (G.C.FILTER),
|
||||||
align = align or "bm",
|
align = align or "bm",
|
||||||
major = card,
|
major = card,
|
||||||
|
|
@ -113,7 +94,7 @@ function Jane.card_status_text(
|
||||||
attention_text({
|
attention_text({
|
||||||
text = text,
|
text = text,
|
||||||
scale = size or 1,
|
scale = size or 1,
|
||||||
hold = (hold or 0.7) + (delay or 0),
|
hold = 0.7 + (delay or 0),
|
||||||
backdrop_colour = colour or (G.C.FILTER),
|
backdrop_colour = colour or (G.C.FILTER),
|
||||||
align = align or "bm",
|
align = align or "bm",
|
||||||
major = card,
|
major = card,
|
||||||
|
|
@ -289,13 +270,6 @@ end
|
||||||
local orig_can_highlight = CardArea.can_highlight
|
local orig_can_highlight = CardArea.can_highlight
|
||||||
|
|
||||||
function CardArea:can_highlight(...)
|
function CardArea:can_highlight(...)
|
||||||
for _, v in pairs(type(self.cards) == "table" and self.cards or {}) do
|
|
||||||
if (((v or {}).config or {}).center or {}).key == "c_jane_fool_omega" then
|
|
||||||
self.config.highlighted_limit = math.max(self.config.highlighted_limit, 2)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
if self ~= G.consumeables then
|
if self ~= G.consumeables then
|
||||||
return orig_can_highlight(self, ...)
|
return orig_can_highlight(self, ...)
|
||||||
end
|
end
|
||||||
|
|
@ -332,17 +306,8 @@ end
|
||||||
local orig_menu = Game.main_menu
|
local orig_menu = Game.main_menu
|
||||||
|
|
||||||
function Game:main_menu(change_context)
|
function Game:main_menu(change_context)
|
||||||
orig_menu(self, change_context)
|
|
||||||
|
|
||||||
G.ARGS.score_intensity.ambientSurreal1,
|
|
||||||
G.ARGS.score_intensity.ambientSurreal2,
|
|
||||||
G.ARGS.score_intensity.ambientSurreal3,
|
|
||||||
G.ARGS.score_intensity.ambientSurreal4 = 0, 0, 0, 0
|
|
||||||
|
|
||||||
update_omega_from_collection()
|
|
||||||
G.C.BACKGROUND.C[4] = 1
|
|
||||||
G.C.BACKGROUND.L[4] = 1
|
|
||||||
Jane.sinister = nil
|
Jane.sinister = nil
|
||||||
|
orig_menu(self, change_context)
|
||||||
end
|
end
|
||||||
|
|
||||||
local orig_start_run = Game.start_run
|
local orig_start_run = Game.start_run
|
||||||
|
|
@ -350,29 +315,15 @@ local orig_start_run = Game.start_run
|
||||||
function Game:start_run(...)
|
function Game:start_run(...)
|
||||||
orig_start_run(self, ...)
|
orig_start_run(self, ...)
|
||||||
self.GAME.modifiers.omegas_found = nil
|
self.GAME.modifiers.omegas_found = nil
|
||||||
Jane.q(Jane.display_omega_odds)
|
|
||||||
update_omega_from_collection()
|
self.GAME.modifiers.omega_replacement =
|
||||||
|
self.GAME.modifiers.omega_replacement or Jane.config.omega_chance
|
||||||
|
|
||||||
if self.GAME.banned_keys then
|
if self.GAME.banned_keys then
|
||||||
for _, v in pairs(Jane.config.bans) do
|
for _, v in pairs(Jane.config.bans) do
|
||||||
self.GAME.banned_keys[v] = true
|
self.GAME.banned_keys[v] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.GAME.banned_keys.j_Bakery_Lua and next(SMODS.find_card("j_Bakery_Lua")) then
|
|
||||||
G.C.BACKGROUND.L[4] = 0
|
|
||||||
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
|
end
|
||||||
|
|
||||||
local orig_draw_card = draw_card
|
local orig_draw_card = draw_card
|
||||||
|
|
|
||||||
585
src/omega.lua
585
src/omega.lua
|
|
@ -36,10 +36,10 @@ SMODS.ConsumableType {
|
||||||
undiscovered = {
|
undiscovered = {
|
||||||
name = "Not Discovered",
|
name = "Not Discovered",
|
||||||
text = {
|
text = {
|
||||||
"Use this {C:dark_edition,E:1}very rare",
|
"Purchase or use",
|
||||||
"card in an unseeded",
|
"this {C:dark_edition,E:1}rare {}card in",
|
||||||
"run to learn what",
|
"an unseeded run to",
|
||||||
"it is {C:dark_edition,E:1}capable of",
|
"learn what it does",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -65,8 +65,11 @@ local function create_card_set(needle, edition, amount)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@param hand string?
|
||||||
|
---@param number number
|
||||||
|
---@param card Card
|
||||||
local function omega_level_up(hand, number, card)
|
local function omega_level_up(hand, number, card)
|
||||||
local factor = 2 ^ number
|
local factor = 3 ^ number
|
||||||
|
|
||||||
update_hand_text(
|
update_hand_text(
|
||||||
{sound = "button", volume = 0.7, pitch = 0.8, delay = 0.3},
|
{sound = "button", volume = 0.7, pitch = 0.8, delay = 0.3},
|
||||||
|
|
@ -83,68 +86,64 @@ local function omega_level_up(hand, number, card)
|
||||||
v.l_mult = v.l_mult * factor
|
v.l_mult = v.l_mult * factor
|
||||||
end
|
end
|
||||||
|
|
||||||
if not Talisman or not Talisman.config_file or not Talisman.config_file.disable_anims then
|
Jane.q(function()
|
||||||
Jane.q(function()
|
play_sound("jane_boost1", 1, 0.4)
|
||||||
play_sound("jane_boost1", 1, 0.4)
|
card:juice_up(0.8, 0.5)
|
||||||
card:juice_up(0.8, 0.5)
|
end, 1, nil, "after")
|
||||||
end, 1, nil, "after")
|
|
||||||
|
|
||||||
update_hand_text({delay = 1}, {chips = "X" .. factor, StatusText = true})
|
update_hand_text({delay = 1}, {chips = "X" .. factor, StatusText = true})
|
||||||
|
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
play_sound("jane_boost2", 1, 0.4)
|
play_sound("jane_boost2", 1, 0.4)
|
||||||
card:juice_up(0.8, 0.5)
|
card:juice_up(0.8, 0.5)
|
||||||
end, 1, nil, "after")
|
end, 1, nil, "after")
|
||||||
|
|
||||||
update_hand_text({delay = 1}, {mult = "X" .. factor, StatusText = true})
|
update_hand_text({delay = 1}, {mult = "X" .. factor, StatusText = true})
|
||||||
|
|
||||||
update_hand_text(
|
update_hand_text(
|
||||||
{sound = "button", volume = 0.7, pitch = 1, delay = 1},
|
{sound = "button", volume = 0.7, pitch = 1, delay = 1},
|
||||||
{
|
{
|
||||||
chips = hand and G.GAME.hands[hand].l_chips,
|
chips = hand and G.GAME.hands[hand].l_chips,
|
||||||
mult = hand and G.GAME.hands[hand].l_mult,
|
mult = hand and G.GAME.hands[hand].l_mult,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
delay(1)
|
delay(1)
|
||||||
|
|
||||||
update_hand_text(
|
update_hand_text(
|
||||||
{sound = "button", volume = 0.7, pitch = 0.8, delay = 1},
|
{sound = "button", volume = 0.7, pitch = 0.8, delay = 1},
|
||||||
{
|
{
|
||||||
chips = hand and G.GAME.hands[hand].chips,
|
chips = hand and G.GAME.hands[hand].chips,
|
||||||
mult = hand and G.GAME.hands[hand].mult,
|
mult = hand and G.GAME.hands[hand].mult,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
|
||||||
|
|
||||||
for _, v in pairs(hand and {G.GAME.hands[hand]} or G.GAME.hands) do
|
for _, v in pairs(hand and {G.GAME.hands[hand]} or G.GAME.hands) do
|
||||||
v.chips = v.chips * factor
|
v.chips = v.chips * factor
|
||||||
v.mult = v.mult * factor
|
v.mult = v.mult * factor
|
||||||
end
|
end
|
||||||
|
|
||||||
if not Talisman or not Talisman.config_file or not Talisman.config_file.disable_anims then
|
Jane.q(function()
|
||||||
Jane.q(function()
|
play_sound("jane_boost3", 1, 0.4)
|
||||||
play_sound("jane_boost3", 1, 0.4)
|
card:juice_up(0.8, 0.5)
|
||||||
card:juice_up(0.8, 0.5)
|
end, 1, nil, "after")
|
||||||
end, 1, nil, "after")
|
|
||||||
|
|
||||||
update_hand_text({delay = 1}, {chips = "X" .. factor, StatusText = true})
|
update_hand_text({delay = 1}, {chips = "X" .. factor, StatusText = true})
|
||||||
|
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
play_sound("jane_boost4", 1, 0.4)
|
play_sound("jane_boost4", 1, 0.4)
|
||||||
card:juice_up(0.8, 0.5)
|
card:juice_up(0.8, 0.5)
|
||||||
end, 1, nil, "after")
|
end, 1, nil, "after")
|
||||||
|
|
||||||
update_hand_text({delay = 1}, {mult = "X" .. factor, StatusText = true})
|
update_hand_text({delay = 1}, {mult = "X" .. factor, StatusText = true})
|
||||||
|
|
||||||
update_hand_text(
|
update_hand_text(
|
||||||
{sound = "button", volume = 0.7, pitch = 1, delay = 1},
|
{sound = "button", volume = 0.7, pitch = 1, delay = 1},
|
||||||
{
|
{
|
||||||
chips = hand and G.GAME.hands[hand].chips,
|
chips = hand and G.GAME.hands[hand].chips,
|
||||||
mult = hand and G.GAME.hands[hand].mult,
|
mult = hand and G.GAME.hands[hand].mult,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
end
|
|
||||||
|
|
||||||
for k, v in pairs(hand and {[hand] = G.GAME.hands[hand]} or G.GAME.hands) do
|
for k, v in pairs(hand and {[hand] = G.GAME.hands[hand]} or G.GAME.hands) do
|
||||||
SMODS.upgrade_poker_hands({
|
SMODS.upgrade_poker_hands({
|
||||||
|
|
@ -173,9 +172,9 @@ for _, v in ipairs({
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = v.n .. " {C:dark_edition}Omega",
|
name = v.n .. " {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"{C:attention}Doubles {C:chips}Chips{}, {C:chips}Level Chips{},",
|
"{C:attention}Triples {C:chips}Chips{}, {C:chips}Level Chips{},",
|
||||||
"{C:mult}Mult{}, {C:mult}Level Mult{}, and",
|
"{C:mult}Mult{}, {C:mult}Level Mult{}, and",
|
||||||
"{C:planet}Level {}of {C:attention}" .. v.h,
|
"{C:planet}planet level {}of {C:attention}" .. v.h,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
set = "jane_omegaconsumable",
|
set = "jane_omegaconsumable",
|
||||||
|
|
@ -204,8 +203,9 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "{C:dark_edition}Sagittarius A*",
|
name = "{C:dark_edition}Sagittarius A*",
|
||||||
text = {
|
text = {
|
||||||
"{C:attention}Double {}the {C:planet}Level",
|
"{C:attention}Nonuples {C:chips}Chips{}, {C:chips}Level Chips{},",
|
||||||
"of played hand",
|
"{C:mult}Mult{}, {C:mult}Level Mult{}, and",
|
||||||
|
"{C:planet}planet level {}of {C:attention}all hands",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
set = "jane_omegaconsumable",
|
set = "jane_omegaconsumable",
|
||||||
|
|
@ -214,20 +214,17 @@ SMODS.Consumable {
|
||||||
cost = 15,
|
cost = 15,
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
atlas = "janeomegaplanets",
|
atlas = "janeomegaplanets",
|
||||||
pronouns = "any_all",
|
|
||||||
hidden = true,
|
hidden = true,
|
||||||
can_use = function(_, card)
|
can_stack = true,
|
||||||
return Jane.can_use() and card.area ~= G.consumeables
|
can_divide = true,
|
||||||
|
can_bulk_use = true,
|
||||||
|
can_mass_use = true,
|
||||||
|
can_use = Jane.can_use,
|
||||||
|
use = function(self, card, area, copier)
|
||||||
|
self:bulk_use(card, area, copier, 1)
|
||||||
end,
|
end,
|
||||||
use = function(self)
|
bulk_use = function(_, card, _, _, number)
|
||||||
SMODS.add_card({key = self.key, area = G.consumeables, set = self.set})
|
omega_level_up(nil, number * 2, card)
|
||||||
end,
|
|
||||||
calculate = function(_, card, context)
|
|
||||||
return context.before and G.GAME.hands[context.scoring_name] and {
|
|
||||||
card = card,
|
|
||||||
message = localize("k_level_up_ex"),
|
|
||||||
level_up = G.GAME.hands[context.scoring_name].level,
|
|
||||||
} or nil
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -247,7 +244,7 @@ SMODS.Consumable {
|
||||||
can_use = function()
|
can_use = function()
|
||||||
return Jane.can_use() and
|
return Jane.can_use() and
|
||||||
G.jokers.highlighted[1] and
|
G.jokers.highlighted[1] and
|
||||||
#G.jokers.cards < G.jokers.config.card_limit
|
#G.jokers.cards + 3 <= G.jokers.config.card_limit
|
||||||
end,
|
end,
|
||||||
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)
|
||||||
|
|
@ -259,9 +256,7 @@ SMODS.Consumable {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = math.min(number * 3, G.jokers.config.card_limit - #G.jokers.cards)
|
for _ = 1, 3 * number do
|
||||||
|
|
||||||
for _ = 1, count do
|
|
||||||
SMODS.copy_card(joker):start_materialize()
|
SMODS.copy_card(joker):start_materialize()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
@ -273,8 +268,9 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Aura {C:dark_edition}Omega",
|
name = "Aura {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Apply {C:dark_edition}Negative {}to",
|
"Apply {C:dark_edition}Crystal {}to all",
|
||||||
"{C:attention}all playing cards",
|
"{C:attention}selected Jokers {}and",
|
||||||
|
"{C:attention}playing cards",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 1},
|
pos = {x = 0, y = 1},
|
||||||
|
|
@ -284,14 +280,20 @@ 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] = {key = "e_negative_playing_card", set = "Edition", config = {extra = 1}}
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_crystal
|
||||||
end,
|
end,
|
||||||
can_use = function()
|
can_use = function()
|
||||||
if not Jane.can_use() then
|
if not Jane.can_use() then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in ipairs(G.playing_cards) do
|
for _, v in ipairs(G.jokers.highlighted) do
|
||||||
|
if not v.edition then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, v in ipairs(G.hand.highlighted) do
|
||||||
if not v.edition then
|
if not v.edition then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
@ -300,9 +302,15 @@ SMODS.Consumable {
|
||||||
return false
|
return false
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function()
|
||||||
for _, v in ipairs(G.playing_cards) do
|
for _, v in ipairs(G.jokers.highlighted) do
|
||||||
if not v.edition then
|
if not v.edition then
|
||||||
v:set_edition({negative = true})
|
v:set_edition({jane_crystal = true})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for _, v in ipairs(G.hand.highlighted) do
|
||||||
|
if not v.edition then
|
||||||
|
v:set_edition({jane_crystal = true})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
@ -314,8 +322,8 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Cryptid {C:dark_edition}Omega",
|
name = "Cryptid {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Create {C:attention}52{} copies of a",
|
"Create {C:attention}20{} copies of",
|
||||||
"{C:attention}selected playing card",
|
"{C:attention}selected playing cards",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 2},
|
pos = {x = 0, y = 2},
|
||||||
|
|
@ -325,14 +333,16 @@ SMODS.Consumable {
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
can_use = function()
|
can_use = function()
|
||||||
return Jane.can_use() and #G.hand.highlighted == 1
|
return Jane.can_use() and next(G.hand.highlighted)
|
||||||
end,
|
end,
|
||||||
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)
|
||||||
for _ = 1, number * 52 do
|
for _, v in ipairs(G.hand.highlighted) do
|
||||||
SMODS.copy_card(G.hand.highlighted[1]):start_materialize()
|
for _ = 1, 20 * number do
|
||||||
|
SMODS.copy_card(v):start_materialize()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
@ -370,9 +380,7 @@ for _, v in ipairs({
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, card in pairs(G.playing_cards) do
|
for _, card in pairs(G.playing_cards) do
|
||||||
if card.area ~= G.hand then
|
card:set_seal(v.s, true, true)
|
||||||
card:set_seal(v.s, true, true)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
@ -423,7 +431,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}Gaming {C:attention}Kings{}, {C:dark_edition,E:1}Moire",
|
"{C:dark_edition,E:1}Moire {C:attention}Kings{}, {C:dark_edition,E:1}Crystal",
|
||||||
"{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 +443,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 +452,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_gaming", number)
|
create_card_set("_K", "e_jane_moire", number)
|
||||||
create_card_set("_Q", "e_jane_moire", number)
|
create_card_set("_Q", "e_jane_crystal", number)
|
||||||
create_card_set("_J", "e_jane_polygloss", number)
|
create_card_set("_J", "e_jane_polygloss", number)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
@ -526,8 +534,7 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Immolate {C:dark_edition}Omega",
|
name = "Immolate {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"{C:money}Sells{} all remaining",
|
"{C:money}Sells{} all cards {C:attention}in hand",
|
||||||
"cards in the deck",
|
|
||||||
"Each card {C:money}sold {}multiplies",
|
"Each card {C:money}sold {}multiplies",
|
||||||
"{C:money}money{} by its {C:attention}rank",
|
"{C:money}money{} by its {C:attention}rank",
|
||||||
not Jane.cry and "{C:inactive}(Max of {C:money}$#1#{C:inactive} each)" or nil,
|
not Jane.cry and "{C:inactive}(Max of {C:money}$#1#{C:inactive} each)" or nil,
|
||||||
|
|
@ -539,18 +546,21 @@ SMODS.Consumable {
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
loc_vars = function()
|
loc_vars = function(_, info_queue)
|
||||||
return {vars = {200}}
|
return {vars = {2000}}
|
||||||
end,
|
end,
|
||||||
can_use = function()
|
can_use = function()
|
||||||
return Jane.can_use() and next(G.deck.cards)
|
return Jane.can_use() and next(G.hand.cards)
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function()
|
||||||
for _, v in pairs(G.deck.cards) do
|
---@diagnostic disable-next-line: deprecated
|
||||||
|
local copy = {unpack(G.hand.cards)}
|
||||||
|
|
||||||
|
for _, v in pairs(copy) do
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
v:sell_card()
|
v:sell_card()
|
||||||
local amount = (v:norank() and 1 or v:get_id()) * G.GAME.dollars - G.GAME.dollars
|
local amount = (v:norank() and 1 or v:get_id()) * G.GAME.dollars - G.GAME.dollars
|
||||||
ease_dollars(Jane.cry and amount or math.min(amount, 200))
|
ease_dollars(Jane.cry and amount or math.min(amount, 2000))
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
@ -564,8 +574,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}Gaming{} on {C:attention}odd ranks",
|
"{C:dark_edition,E:1}Polygloss{} on {C:attention}odd ranks",
|
||||||
"{C:dark_edition,E:1}Polygloss{} on {C:attention}even ranks",
|
"{C:dark_edition,E:1}Crystal{} on {C:attention}even ranks",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 9},
|
pos = {x = 0, y = 9},
|
||||||
|
|
@ -575,23 +585,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_polygloss", number)
|
create_card_set("_2", "e_jane_crystal", number)
|
||||||
create_card_set("_3", "e_jane_gaming", number)
|
create_card_set("_3", "e_jane_polygloss", number)
|
||||||
create_card_set("_4", "e_jane_polygloss", number)
|
create_card_set("_4", "e_jane_crystal", number)
|
||||||
create_card_set("_5", "e_jane_gaming", number)
|
create_card_set("_5", "e_jane_polygloss", number)
|
||||||
create_card_set("_6", "e_jane_polygloss", number)
|
create_card_set("_6", "e_jane_crystal", number)
|
||||||
create_card_set("_7", "e_jane_gaming", number)
|
create_card_set("_7", "e_jane_polygloss", number)
|
||||||
create_card_set("_8", "e_jane_polygloss", number)
|
create_card_set("_8", "e_jane_crystal", number)
|
||||||
create_card_set("_9", "e_jane_gaming", number)
|
create_card_set("_9", "e_jane_polygloss", number)
|
||||||
create_card_set("_T", "e_jane_polygloss", number)
|
create_card_set("_T", "e_jane_crystal", number)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -601,9 +611,10 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Ouija {C:dark_edition}Omega",
|
name = "Ouija {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Converts all playing",
|
"{C:attention}Playing cards {}whose",
|
||||||
"cards' {C:attention}rank {}to the",
|
"rank doesn't match any",
|
||||||
"{C:attention}selected card",
|
"of the {C:attention}selected cards",
|
||||||
|
"will be {C:red}destroyed",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 11},
|
pos = {x = 0, y = 11},
|
||||||
|
|
@ -613,44 +624,34 @@ SMODS.Consumable {
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
can_use = function()
|
can_use = function()
|
||||||
return Jane.can_use() and
|
return Jane.can_use() and next(G.hand.highlighted)
|
||||||
#G.hand.highlighted == 1 and
|
|
||||||
not SMODS.has_no_suit(G.hand.highlighted[1]) and
|
|
||||||
not SMODS.has_no_rank(G.hand.highlighted[1])
|
|
||||||
end,
|
end,
|
||||||
use = function(_, card)
|
use = function()
|
||||||
Jane.q(function()
|
if not next(G.hand.highlighted) then
|
||||||
play_sound("tarot1")
|
return
|
||||||
card:juice_up(0.3, 0.5)
|
|
||||||
end, 0.4, nil, "after")
|
|
||||||
|
|
||||||
for i = 1, #G.hand.cards do
|
|
||||||
local percent = 1.15 - (i - 0.999) / (#G.hand.cards - 0.998) * 0.3
|
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
G.hand.cards[i]:flip()
|
|
||||||
play_sound("card1", percent)
|
|
||||||
G.hand.cards[i]:juice_up(0.3, 0.3)
|
|
||||||
end, 0.15, nil, "after")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local rank = G.hand.highlighted[1].base.value
|
local destroy = {}
|
||||||
|
|
||||||
Jane.q(function()
|
for _, c in pairs(G.playing_cards) do
|
||||||
for _, c in pairs(G.playing_cards) do
|
local safe = c.highlighted
|
||||||
assert(SMODS.change_base(c, nil, rank))
|
|
||||||
|
if not safe then
|
||||||
|
for _, h in pairs(G.hand.highlighted) do
|
||||||
|
if h:get_id() == c:get_id() or
|
||||||
|
(h:norank() and c:norank()) then
|
||||||
|
safe = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
|
||||||
|
|
||||||
for i = 1, #G.hand.cards do
|
if not safe then
|
||||||
local percent = 0.85 + (i - 0.999) / (#G.hand.cards - 0.998) * 0.3
|
destroy[#destroy + 1] = c
|
||||||
|
end
|
||||||
Jane.q(function()
|
|
||||||
G.hand.cards[i]:flip()
|
|
||||||
play_sound("tarot2", percent, 0.6)
|
|
||||||
G.hand.cards[i]:juice_up(0.3, 0.3)
|
|
||||||
end, 0.15, nil, "after")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
SMODS.destroy_cards(destroy)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -660,94 +661,58 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Sigil {C:dark_edition}Omega",
|
name = "Sigil {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Converts all playing",
|
"{C:attention}Playing cards {}whose",
|
||||||
"cards' {C:attention}suit {}to the",
|
"suit doesn't match any",
|
||||||
"{C:attention}selected card",
|
"of the {C:attention}selected cards",
|
||||||
|
"will be {C:red}destroyed",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 12},
|
pos = {x = 0, y = 12},
|
||||||
soul_pos = {x = 1, y = 12},
|
soul_pos = {x = 1, y = 12},
|
||||||
cost = 175,
|
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
hidden = true,
|
cost = 175,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
can_use = function()
|
can_use = function()
|
||||||
return Jane.can_use() and
|
return Jane.can_use() and next(G.hand.highlighted)
|
||||||
#G.hand.highlighted == 1 and
|
|
||||||
not SMODS.has_no_suit(G.hand.highlighted[1]) and
|
|
||||||
not SMODS.has_no_rank(G.hand.highlighted[1])
|
|
||||||
end,
|
end,
|
||||||
use = function(_, card)
|
use = function()
|
||||||
Jane.q(function()
|
local destroy = {}
|
||||||
play_sound("tarot1")
|
|
||||||
card:juice_up(0.3, 0.5)
|
|
||||||
end, 0.4, nil, "after")
|
|
||||||
|
|
||||||
for i = 1, #G.hand.cards do
|
if not next(G.hand.highlighted) then
|
||||||
local percent = 1.15 - (i - 0.999) / (#G.hand.cards - 0.998) * 0.3
|
return
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
G.hand.cards[i]:flip()
|
|
||||||
play_sound("card1", percent)
|
|
||||||
G.hand.cards[i]:juice_up(0.3, 0.3)
|
|
||||||
end, 0.15, nil, "after")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local suit = G.hand.highlighted[1].base.suit
|
for _, c in pairs(G.playing_cards) do
|
||||||
|
local safe = c.highlighted
|
||||||
|
|
||||||
Jane.q(function()
|
if not safe then
|
||||||
for _, c in pairs(G.playing_cards) do
|
for _, h in pairs(G.hand.highlighted) do
|
||||||
assert(SMODS.change_base(c, suit))
|
if SMODS.has_any_suit(h) or
|
||||||
|
h.base.suit == c.base.suit or
|
||||||
|
(h:norank() and c:norank()) then
|
||||||
|
safe = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
|
||||||
|
|
||||||
for i = 1, #G.hand.cards do
|
if not safe then
|
||||||
local percent = 0.85 + (i - 0.999) / (#G.hand.cards - 0.998) * 0.3
|
destroy[#destroy + 1] = c
|
||||||
|
end
|
||||||
Jane.q(function()
|
|
||||||
G.hand.cards[i]:flip()
|
|
||||||
play_sound("tarot2", percent, 0.6)
|
|
||||||
G.hand.cards[i]:juice_up(0.3, 0.3)
|
|
||||||
end, 0.15, nil, "after")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
SMODS.destroy_cards(destroy)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
local function create_many(set, count, rarity)
|
|
||||||
local showman = SMODS.add_card({key = "j_ring_master", set = "Joker"})
|
|
||||||
showman:set_perishable(true)
|
|
||||||
local ban = {}
|
|
||||||
|
|
||||||
for _, v in pairs(G.P_CENTER_POOLS.jane_omegaconsumable) do
|
|
||||||
ban[v.key] = G.GAME.banned_keys[v.key]
|
|
||||||
G.GAME.banned_keys[v.key] = true
|
|
||||||
end
|
|
||||||
|
|
||||||
for _ = 1, count do
|
|
||||||
Jane.q(function()
|
|
||||||
SMODS.add_card({set = set, rarity = rarity, key_append = "jane_" .. set}):juice_up(0.3, 0.5)
|
|
||||||
play_sound("timpani")
|
|
||||||
end, 0.4, nil, "after")
|
|
||||||
end
|
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
SMODS.destroy_cards({showman})
|
|
||||||
|
|
||||||
for _, v in pairs(G.P_CENTER_POOLS.jane_omegaconsumable) do
|
|
||||||
G.GAME.banned_keys[v.key] = ban[v.key]
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end
|
|
||||||
|
|
||||||
SMODS.Consumable {
|
SMODS.Consumable {
|
||||||
key = "wraith_omega",
|
key = "wraith_omega",
|
||||||
set = "jane_omegaconsumable",
|
set = "jane_omegaconsumable",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Wraith {C:dark_edition}Omega",
|
name = "Wraith {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Fill empty {C:attention}Joker Slots",
|
"Create all {C:legendary,E:1}Legendary",
|
||||||
"with random {C:red}Rare {C:attention}Jokers",
|
"{C:dark_edition,E:1}Jane {C:attention}Jokers",
|
||||||
"{C:inactive}(Adds a temporary Showman)",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 15},
|
pos = {x = 0, y = 15},
|
||||||
|
|
@ -756,11 +721,33 @@ SMODS.Consumable {
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegaspectrals",
|
atlas = "janeomegaspectrals",
|
||||||
can_use = function()
|
loc_vars = function(self, info_queue)
|
||||||
return Jane.can_use() and #G.jokers.cards < G.jokers.config.card_limit
|
for _, v in ipairs(self.jokers()) do
|
||||||
|
info_queue[#info_queue + 1] = v
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
use = function()
|
can_use = function(self)
|
||||||
create_many("Joker", G.jokers.config.card_limit - #G.jokers.cards, "Rare")
|
return Jane.can_use() and #G.jokers.cards + #self.jokers() <= G.jokers.config.card_limit
|
||||||
|
end,
|
||||||
|
use = function(self)
|
||||||
|
for _, v in ipairs(self.jokers()) do
|
||||||
|
SMODS.add_card({key = v.key, set = "Joker"})
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
jokers = function()
|
||||||
|
local out = {}
|
||||||
|
|
||||||
|
for _, v in pairs(G.P_CENTERS) do
|
||||||
|
if v.set == "Joker" and
|
||||||
|
v.mod and
|
||||||
|
v.mod.id == "jane" and
|
||||||
|
type(v.rarity) == "number" and
|
||||||
|
v.rarity == 4 then
|
||||||
|
out[#out + 1] = v
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
return out
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -769,7 +756,10 @@ SMODS.Consumable {
|
||||||
set = "jane_omegaconsumable",
|
set = "jane_omegaconsumable",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Fool {C:dark_edition}Omega",
|
name = "The Fool {C:dark_edition}Omega",
|
||||||
text = {"Clone {C:attention}any {}selected card"},
|
text = {
|
||||||
|
"Create {C:attention}2{} random",
|
||||||
|
"{C:jane_RGB,E:1}Omega{} cards",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 0},
|
pos = {x = 0, y = 0},
|
||||||
soul_pos = {x = 1, y = 0},
|
soul_pos = {x = 1, y = 0},
|
||||||
|
|
@ -777,46 +767,16 @@ SMODS.Consumable {
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegatarots",
|
atlas = "janeomegatarots",
|
||||||
can_use = function(self, card)
|
can_use = Jane.can_use,
|
||||||
if not Jane.can_use() then
|
use = function()
|
||||||
return false
|
for _ = 1, 2 do
|
||||||
end
|
if G.consumeables.config.card_limit > #G.consumeables.cards then
|
||||||
|
local orig = G.GAME.banned_keys.c_jane_soul_omega
|
||||||
local cards = self:highlighted(card)
|
G.GAME.banned_keys.c_jane_soul_omega = true
|
||||||
|
SMODS.add_card({set = "jane_omegaconsumable"})
|
||||||
if #cards ~= 1 then
|
G.GAME.banned_keys.c_jane_soul_omega = orig
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local area = cards[1].area
|
|
||||||
|
|
||||||
if not area or not area.config then
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
if area == G.hand then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
local limits = area.config.card_limits
|
|
||||||
local free = card.area == area and 1 or 0
|
|
||||||
return not limits or not limits.extra_slots_used or #area.cards < area.config.card_limit + free
|
|
||||||
end,
|
|
||||||
use = function(self, card)
|
|
||||||
SMODS.copy_card(self:highlighted(card)[1])
|
|
||||||
end,
|
|
||||||
highlighted = function(_, card)
|
|
||||||
local cards = {}
|
|
||||||
|
|
||||||
for _, v in pairs(G.I.CARDAREA) do
|
|
||||||
for _, vv in pairs(v.highlighted) do
|
|
||||||
if vv ~= card then
|
|
||||||
table.insert(cards, vv)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return cards
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -901,8 +861,8 @@ for _, v in ipairs({
|
||||||
name = v.o .. " {C:dark_edition}Omega",
|
name = v.o .. " {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Enhance {C:attention}selected playing",
|
"Enhance {C:attention}selected playing",
|
||||||
"{C:attention}cards {}to {C:attention}" .. v.c .. "{} cards",
|
"{C:attention}cards {}to {C:attention}" .. v.c .. "{} cards,",
|
||||||
"{C:attention}Duplicate {}each card {C:attention}3 times",
|
"{C:attention}Duplicate {}each card {C:attention}10 times",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = v.omega},
|
pos = {x = 0, y = v.omega},
|
||||||
|
|
@ -966,7 +926,7 @@ for _, v in ipairs({
|
||||||
|
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
for _, h in ipairs(to_copy) do
|
for _, h in ipairs(to_copy) do
|
||||||
for _ = 1, 3 do
|
for _ = 1, 10 do
|
||||||
SMODS.copy_card(h):start_materialize()
|
SMODS.copy_card(h):start_materialize()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
@ -981,7 +941,8 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The High Priestess {C:dark_edition}Omega",
|
name = "The High Priestess {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"All {C:attention}playing cards",
|
"Every {C:attention}Joker{}, {C:attention}consumable{},",
|
||||||
|
"and {C:attention}playing card{} will",
|
||||||
"trigger {C:spectral}Black Hole",
|
"trigger {C:spectral}Black Hole",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -996,24 +957,27 @@ SMODS.Consumable {
|
||||||
end,
|
end,
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
use = function()
|
use = function()
|
||||||
SMODS.upgrade_poker_hands({hands = G.handlist, level_up = #G.playing_cards})
|
SMODS.upgrade_poker_hands({
|
||||||
|
hands = G.handlist,
|
||||||
|
level_up = #G.jokers.cards + #G.consumeables.cards + #G.playing_cards,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
function Jane.omega(key)
|
local function create_many(set, count, rarity)
|
||||||
local banned, soul, black_hole =
|
local showman = SMODS.add_card({key = "j_ring_master", set = "Joker"})
|
||||||
G.GAME.banned_keys, "c_jane_soul_omega", "c_jane_black_hole_omega"
|
showman:set_perishable(true)
|
||||||
|
|
||||||
local orig_soul, orig_black_hole = banned[soul], banned[black_hole]
|
for _ = 1, count do
|
||||||
banned[soul], banned[black_hole] = true, true
|
Jane.q(function()
|
||||||
|
SMODS.add_card({set = set, rarity = rarity, key_append = "jane_" .. set}):juice_up(0.3, 0.5)
|
||||||
|
play_sound("timpani")
|
||||||
|
end, 0.4, nil, "after")
|
||||||
|
end
|
||||||
|
|
||||||
local omega_card = SMODS.add_card({
|
Jane.q(function()
|
||||||
set = "jane_omegaconsumable",
|
SMODS.destroy_cards({showman})
|
||||||
key = pseudorandom_element(G.P_CENTER_POOLS.jane_omegaconsumable, pseudoseed(key or "omega")).key,
|
end)
|
||||||
})
|
|
||||||
|
|
||||||
banned[soul], banned[black_hole] = orig_soul, orig_black_hole
|
|
||||||
return omega_card
|
|
||||||
end
|
end
|
||||||
|
|
||||||
SMODS.Consumable {
|
SMODS.Consumable {
|
||||||
|
|
@ -1022,8 +986,10 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Emperor {C:dark_edition}Omega",
|
name = "The Emperor {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Create {C:attention}2{} random",
|
"Create a random {C:red}Rare",
|
||||||
"{C:jane_RGB,E:1}Omega{} cards",
|
"{C:attention}Joker {}for every {C:attention}King",
|
||||||
|
"in your deck",
|
||||||
|
"{C:inactive}(Adds a temporary Showman)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 4},
|
pos = {x = 0, y = 4},
|
||||||
|
|
@ -1032,18 +998,17 @@ SMODS.Consumable {
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegatarots",
|
atlas = "janeomegatarots",
|
||||||
can_use = function()
|
can_use = Jane.can_use,
|
||||||
return Jane.can_use() and #G.consumeables.cards <= G.consumeables.config.card_limit
|
|
||||||
end,
|
|
||||||
use = function()
|
use = function()
|
||||||
local count = math.min(G.consumeables.config.card_limit - #G.consumeables.cards - 1, 2)
|
local count = 0
|
||||||
|
|
||||||
for _ = 1, count do
|
for _, v in pairs(G.playing_cards) do
|
||||||
Jane.q(function()
|
if not v:norank() and v:get_id() == 13 then
|
||||||
play_sound("jane_draw")
|
count = count + 1
|
||||||
Jane.omega()
|
end
|
||||||
end, 0.4)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
create_many("Joker", count, "Rare")
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1053,8 +1018,9 @@ SMODS.Consumable {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Hermit {C:dark_edition}Omega",
|
name = "The Hermit {C:dark_edition}Omega",
|
||||||
text = {
|
text = {
|
||||||
"Gain {X:money,C:dark_edition}+$^1.5",
|
"Gain {X:money,C:dark_edition}+$^2",
|
||||||
"{C:inactive}(Currently {C:money}+$#1#{C:inactive})",
|
"{C:inactive}(Currently {C:money}+$#1#{C:inactive})",
|
||||||
|
not Jane.cry and "{C:inactive}(Max of {C:money}$#2#{C:inactive})" or nil,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 9},
|
pos = {x = 0, y = 9},
|
||||||
|
|
@ -1064,11 +1030,15 @@ SMODS.Consumable {
|
||||||
hidden = true,
|
hidden = true,
|
||||||
atlas = "janeomegatarots",
|
atlas = "janeomegatarots",
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
loc_vars = function()
|
loc_vars = function(self)
|
||||||
return {vars = {math.ceil(G.GAME.dollars ^ 1.5)}}
|
return {vars = {self.money(), 20000}}
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function(self)
|
||||||
ease_dollars(math.ceil(G.GAME.dollars ^ 1.5))
|
ease_dollars(self.money())
|
||||||
|
end,
|
||||||
|
money = function()
|
||||||
|
return not (G.GAME or {}).dollars and 0 or
|
||||||
|
(Jane.cry and G.GAME.dollars ^ 2 or math.min(G.GAME.dollars ^ 2, 20000))
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1094,7 +1064,7 @@ SMODS.Consumable {
|
||||||
return {vars = {((G.GAME or {}).dollars or 0) ^ 2}}
|
return {vars = {((G.GAME or {}).dollars or 0) ^ 2}}
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function()
|
||||||
create_many("Consumeables", 50)
|
create_many("Consumeables", 50, "Rare")
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1111,7 +1081,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}Gaming{}, {C:dark_edition,E:1}Moire{},",
|
"to {C:dark_edition,E:1}Crystal{}, {C:dark_edition,E:1}Moire{},",
|
||||||
"or {C:dark_edition,E:1}Polygloss",
|
"or {C:dark_edition,E:1}Polygloss",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -1122,7 +1092,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_gaming
|
info_queue[#info_queue + 1] = G.P_CENTERS.e_jane_crystal
|
||||||
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 +1110,7 @@ for _, vv in pairs({
|
||||||
return false
|
return false
|
||||||
end,
|
end,
|
||||||
use = function()
|
use = function()
|
||||||
local editions = {"jane_gaming", "jane_moire", "jane_polygloss"}
|
local editions = {"jane_crystal", "jane_moire", "jane_polygloss"}
|
||||||
|
|
||||||
play_sound("jane_pop")
|
play_sound("jane_pop")
|
||||||
|
|
||||||
|
|
@ -1185,7 +1155,6 @@ SMODS.Consumable {
|
||||||
cost = 0,
|
cost = 0,
|
||||||
soul_rate = 0,
|
soul_rate = 0,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
pronouns = "any_all",
|
|
||||||
atlas = "janeomegatarots",
|
atlas = "janeomegatarots",
|
||||||
can_use = Jane.can_use,
|
can_use = Jane.can_use,
|
||||||
use = function(_, card)
|
use = function(_, card)
|
||||||
|
|
@ -1205,10 +1174,6 @@ SMODS.Consumable {
|
||||||
"bm",
|
"bm",
|
||||||
"generic1"
|
"generic1"
|
||||||
)
|
)
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
G.C.BACKGROUND.L[4] = 1 - i / 60
|
|
||||||
end)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if not G.P_CENTERS.j_Bakery_Lua then
|
if not G.P_CENTERS.j_Bakery_Lua then
|
||||||
|
|
@ -1216,16 +1181,9 @@ SMODS.Consumable {
|
||||||
end
|
end
|
||||||
|
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
local lua = G.GAME.banned_keys.j_Bakery_Lua
|
|
||||||
|
|
||||||
if G.GAME.banned_keys.j_Bakery_Lua then
|
|
||||||
SMODS.destroy_cards(G.jokers.cards, {bypass_eternal = true})
|
|
||||||
G.jokers:change_size(1 - G.jokers.config.card_limits.base)
|
|
||||||
else
|
|
||||||
G.jokers:change_size(1)
|
|
||||||
end
|
|
||||||
|
|
||||||
G.GAME.banned_keys.j_Bakery_Lua = nil
|
G.GAME.banned_keys.j_Bakery_Lua = nil
|
||||||
|
SMODS.destroy_cards(G.jokers.cards, {bypass_eternal = true})
|
||||||
|
G.jokers:change_size(1 - G.jokers.config.card_limits.base)
|
||||||
|
|
||||||
SMODS.add_card {
|
SMODS.add_card {
|
||||||
set = "Joker",
|
set = "Joker",
|
||||||
|
|
@ -1235,21 +1193,8 @@ SMODS.Consumable {
|
||||||
}
|
}
|
||||||
|
|
||||||
play_sound("jane_enchant", 0.75, 1)
|
play_sound("jane_enchant", 0.75, 1)
|
||||||
G.GAME.banned_keys.j_Bakery_Lua = lua
|
G.GAME.banned_keys.j_Bakery_Lua = true
|
||||||
G.GAME.banned_keys.c_jane_soul_omega = lua
|
G.GAME.banned_keys.c_jane_soul_omega = true
|
||||||
|
|
||||||
local function darken(i)
|
|
||||||
if i > 450 then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
Jane.q(function()
|
|
||||||
G.C.BACKGROUND.C[4] = i / 450
|
|
||||||
darken(i + 1)
|
|
||||||
end, 1 / 60, "REAL", "after", false, false)
|
|
||||||
end
|
|
||||||
|
|
||||||
darken(0)
|
|
||||||
end, 0.75, "REAL", "after")
|
end, 0.75, "REAL", "after")
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
@ -1272,7 +1217,7 @@ end
|
||||||
function create_card(...)
|
function create_card(...)
|
||||||
local card = orig_create_card(...)
|
local card = orig_create_card(...)
|
||||||
|
|
||||||
if G.STATE ~= G.STATES.SMODS_BOOSTER_OPENED or not card.gc or not G.GAME.modifiers.omega_replacement then
|
if G.STATE ~= G.STATES.SMODS_BOOSTER_OPENED or not card.gc then
|
||||||
return card
|
return card
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -1282,15 +1227,15 @@ function create_card(...)
|
||||||
if not G.GAME.banned_keys[key] and
|
if not G.GAME.banned_keys[key] and
|
||||||
card:gc().key:sub(2) == key:sub(#"c_jane_", #key - #"_omega") and
|
card:gc().key:sub(2) == key:sub(#"c_jane_", #key - #"_omega") and
|
||||||
pseudorandom("omega_replacement") < G.GAME.modifiers.omega_replacement then
|
pseudorandom("omega_replacement") < G.GAME.modifiers.omega_replacement then
|
||||||
local copy = G.GAME.modifiers.omegas_found or 0
|
local copy = G.GAME.modifiers.omegas_found
|
||||||
G.GAME.modifiers.omegas_found = copy + 1
|
G.GAME.modifiers.omegas_found = (G.GAME.modifiers.omegas_found or 0) + 1
|
||||||
|
|
||||||
Jane.q(function()
|
Jane.q(function()
|
||||||
card:set_ability(G.P_CENTERS[key])
|
card:set_ability(G.P_CENTERS[key])
|
||||||
card:juice_up(1.5, 1.5)
|
card:juice_up(1.5, 1.5)
|
||||||
card:set_cost()
|
card:set_cost()
|
||||||
|
|
||||||
if copy <= 0 then
|
if not copy or copy <= 0 then
|
||||||
local pitch = math.pow(2 ^ (1 / 6), G.GAME.modifiers.omegas_found - 1)
|
local pitch = math.pow(2 ^ (1 / 6), G.GAME.modifiers.omegas_found - 1)
|
||||||
|
|
||||||
if not G.GAME.obsidian then
|
if not G.GAME.obsidian then
|
||||||
|
|
@ -1317,7 +1262,7 @@ function create_card(...)
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
|
|
||||||
if ({c_jane_soul_omega = true, c_jane_black_hole_omega = true})[key] then
|
if key == "c_jane_soul_omega" then
|
||||||
play_sound("jane_chime", 1, 0.65)
|
play_sound("jane_chime", 1, 0.65)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -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,s:" .. Jane.config.wee_sizemod .. "}Jumbo"},
|
text = {"All cards are {C:dark_edition}Jumbo"},
|
||||||
},
|
},
|
||||||
pos = {x = 0, y = 0},
|
pos = {x = 0, y = 0},
|
||||||
soul_pos = {x = 1, y = 0},
|
soul_pos = {x = 1, y = 0},
|
||||||
|
|
@ -336,6 +336,7 @@ local function add_to_consumable_ability_by(n)
|
||||||
return type(v) == "number" and v + n or type(v) == "table" and f(v):map(new):table() or v
|
return type(v) == "number" and v + n or type(v) == "table" and f(v):map(new):table() or v
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@param card Card
|
||||||
return function(card)
|
return function(card)
|
||||||
local ability = card.ability or {}
|
local ability = card.ability or {}
|
||||||
|
|
||||||
|
|
@ -831,7 +832,7 @@ SMODS.Joker {
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "The Rot",
|
name = "The Rot",
|
||||||
text = {
|
text = {
|
||||||
Jane.cry and "{C:attention}Duplicates itself{} at the" or "{C:inactive,E:1}Does nothing",
|
Jane.cry and "{C:attention}Duplicates itself{} at the" or "{C:inactive,E:1}Does nothing?",
|
||||||
Jane.cry and "end of {C:attention}every ante" or nil,
|
Jane.cry and "end of {C:attention}every ante" or nil,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -843,6 +844,12 @@ SMODS.Joker {
|
||||||
in_pool = function()
|
in_pool = function()
|
||||||
return true, {allow_duplicates = true}
|
return true, {allow_duplicates = true}
|
||||||
end,
|
end,
|
||||||
|
add_to_deck = function()
|
||||||
|
G.GAME.modifiers.omega_replacement = G.GAME.modifiers.omega_replacement * 2
|
||||||
|
end,
|
||||||
|
remove_from_deck = function()
|
||||||
|
G.GAME.modifiers.omega_replacement = G.GAME.modifiers.omega_replacement / 2
|
||||||
|
end,
|
||||||
calculate = Jane.cry and function(_, card, context)
|
calculate = Jane.cry and function(_, card, context)
|
||||||
local function has_room()
|
local function has_room()
|
||||||
return G.jokers.config.card_count < G.jokers.config.card_limit
|
return G.jokers.config.card_count < G.jokers.config.card_limit
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue