Add Omega cards
This commit is contained in:
parent
2a763c4bd2
commit
dac02398eb
23 changed files with 1368 additions and 10 deletions
BIN
assets/1x/default/c_jane_omegaplanets.png
Normal file
BIN
assets/1x/default/c_jane_omegaplanets.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 197 KiB |
BIN
assets/1x/default/c_jane_omegaspectrals.png
Normal file
BIN
assets/1x/default/c_jane_omegaspectrals.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
BIN
assets/1x/default/c_jane_omegatarots.png
Normal file
BIN
assets/1x/default/c_jane_omegatarots.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 224 KiB |
BIN
assets/2x/default/c_jane_omegaplanets.png
Normal file
BIN
assets/2x/default/c_jane_omegaplanets.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 281 KiB |
BIN
assets/2x/default/c_jane_omegaspectrals.png
Normal file
BIN
assets/2x/default/c_jane_omegaspectrals.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 172 KiB |
BIN
assets/2x/default/c_jane_omegatarots.png
Normal file
BIN
assets/2x/default/c_jane_omegatarots.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 312 KiB |
98
assets/shaders/crystal.fs
Normal file
98
assets/shaders/crystal.fs
Normal file
|
|
@ -0,0 +1,98 @@
|
||||||
|
#if defined(VERTEX) || __VERSION__ > 100 || defined(GL_FRAGMENT_PRECISION_HIGH)
|
||||||
|
#define MY_HIGHP_OR_MEDIUMP highp
|
||||||
|
#else
|
||||||
|
#define MY_HIGHP_OR_MEDIUMP mediump
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP vec2 crystal;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP number dissolve;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP number time;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP vec4 texture_details;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP vec2 image_details;
|
||||||
|
extern bool shadow;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP vec4 burn_colour_1;
|
||||||
|
extern MY_HIGHP_OR_MEDIUMP vec4 burn_colour_2;
|
||||||
|
|
||||||
|
vec4 dissolve_mask(vec4 tex, vec2 texture_coords, vec2 uv)
|
||||||
|
{
|
||||||
|
if (dissolve < 0.001) {
|
||||||
|
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 t = time * 10.0 + 2003.;
|
||||||
|
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 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_part3 = uv_scaled_centered + 50.*vec2(sin(-t / 87.53218), sin(-t / 49.0000));
|
||||||
|
|
||||||
|
float field = (1.+ (
|
||||||
|
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.;
|
||||||
|
vec2 borders = vec2(0.2, 0.8);
|
||||||
|
|
||||||
|
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.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.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 (!shadow && res < adjusted_dissolve + 0.5*(0.5-abs(adjusted_dissolve-0.5)) && res > adjusted_dissolve) {
|
||||||
|
tex.rgba = burn_colour_1.rgba;
|
||||||
|
} else if (burn_colour_2.a > 0.01) {
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
vec4 effect( vec4 colour, Image texture, vec2 texture_coords, vec2 screen_coords )
|
||||||
|
{
|
||||||
|
vec4 tex = Texel( texture, texture_coords);
|
||||||
|
vec2 uv = (((texture_coords)*(image_details)) - texture_details.xy*texture_details.ba)/texture_details.ba;
|
||||||
|
|
||||||
|
number low = min(tex.r, min(tex.g, tex.b));
|
||||||
|
number high = max(tex.r, max(tex.g, tex.b));
|
||||||
|
number delta = high-low -0.1;
|
||||||
|
|
||||||
|
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));
|
||||||
|
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));
|
||||||
|
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));
|
||||||
|
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.);
|
||||||
|
|
||||||
|
tex.rgb = tex.rgb*0.5 + vec3(0.4, 0.4, 0.8);
|
||||||
|
|
||||||
|
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;
|
||||||
|
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));
|
||||||
|
|
||||||
|
return dissolve_mask(tex*colour, texture_coords, uv);
|
||||||
|
}
|
||||||
|
|
||||||
|
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
|
||||||
BIN
assets/sounds/boost1.ogg
Normal file
BIN
assets/sounds/boost1.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/boost2.ogg
Normal file
BIN
assets/sounds/boost2.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/boost3.ogg
Normal file
BIN
assets/sounds/boost3.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/boost4.ogg
Normal file
BIN
assets/sounds/boost4.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/chime.ogg
Normal file
BIN
assets/sounds/chime.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/e_crystal.ogg
Normal file
BIN
assets/sounds/e_crystal.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/enchant.ogg
Normal file
BIN
assets/sounds/enchant.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/omega_card.ogg
Normal file
BIN
assets/sounds/omega_card.ogg
Normal file
Binary file not shown.
BIN
assets/sounds/pop.ogg
Normal file
BIN
assets/sounds/pop.ogg
Normal file
Binary file not shown.
|
|
@ -45,7 +45,10 @@ match_indent = true
|
||||||
target = "functions/misc_functions.lua"
|
target = "functions/misc_functions.lua"
|
||||||
pattern = "local AC = G.SETTINGS.ambient_control"
|
pattern = "local AC = G.SETTINGS.ambient_control"
|
||||||
position = "before"
|
position = "before"
|
||||||
payload = '''if Jane and
|
payload = '''local jane_rgb = G.C.jane_RGB
|
||||||
|
jane_rgb[1], jane_rgb[2], jane_rgb[3] = Jane.hsv(1 - (G.TIMERS.REAL / 3 % 1), math.sin(G.TIMERS.REAL) / 10 + 0.6, 1)
|
||||||
|
|
||||||
|
if Jane and
|
||||||
(type(G.ARGS.score_intensity.required_score) == "table" and
|
(type(G.ARGS.score_intensity.required_score) == "table" and
|
||||||
G.ARGS.score_intensity.required_score:to_number() or
|
G.ARGS.score_intensity.required_score:to_number() or
|
||||||
G.ARGS.score_intensity.required_score) ~= 0 then
|
G.ARGS.score_intensity.required_score) ~= 0 then
|
||||||
|
|
|
||||||
|
|
@ -16,5 +16,5 @@
|
||||||
"Bakery (>=3.0.0~*)"
|
"Bakery (>=3.0.0~*)"
|
||||||
],
|
],
|
||||||
"conflicts": [],
|
"conflicts": [],
|
||||||
"version": "1.11.30"
|
"version": "1.12.0"
|
||||||
}
|
}
|
||||||
|
|
@ -291,6 +291,7 @@ if Jane.cry then
|
||||||
cost = 2,
|
cost = 2,
|
||||||
weight = 0.24,
|
weight = 0.24,
|
||||||
create_card = function(_, _)
|
create_card = function(_, _)
|
||||||
|
---@diagnostic disable-next-line: return-type-mismatch
|
||||||
return create_card("Code", G.pack_cards, nil, nil, true, true, nil, "cry_program_3")
|
return create_card("Code", G.pack_cards, nil, nil, true, true, nil, "cry_program_3")
|
||||||
end,
|
end,
|
||||||
ease_background_colour = function(_)
|
ease_background_colour = function(_)
|
||||||
|
|
@ -338,6 +339,7 @@ for i = 1, 2 do
|
||||||
return {vars = {card.ability.choose, card.ability.extra}}
|
return {vars = {card.ability.choose, card.ability.extra}}
|
||||||
end,
|
end,
|
||||||
create_card = function(_, _, _)
|
create_card = function(_, _, _)
|
||||||
|
---@diagnostic disable-next-line: return-type-mismatch
|
||||||
return create_card("jane_tokens", G.pack_cards, nil, nil, true, true, nil, "jane_tokens" .. i)
|
return create_card("jane_tokens", G.pack_cards, nil, nil, true, true, nil, "jane_tokens" .. i)
|
||||||
end,
|
end,
|
||||||
create_UIBox = function(_)
|
create_UIBox = function(_)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,10 @@
|
||||||
SMODS.Shader({key = "moire", path = "moire.fs"})
|
SMODS.Shader({key = "moire", path = "moire.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_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)
|
||||||
|
|
@ -71,7 +74,49 @@ SMODS.Edition({
|
||||||
get_weight = get_weight,
|
get_weight = get_weight,
|
||||||
})
|
})
|
||||||
|
|
||||||
local moire = SMODS.Edition({
|
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({
|
||||||
key = "moire",
|
key = "moire",
|
||||||
loc_txt = {
|
loc_txt = {
|
||||||
name = "Moire",
|
name = "Moire",
|
||||||
|
|
@ -83,12 +128,11 @@ local moire = 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 = 1,
|
weight = 0,
|
||||||
extra_cost = 10,
|
extra_cost = 10,
|
||||||
in_shop = true,
|
in_shop = true,
|
||||||
shader = "jane_moire",
|
shader = "jane_moire",
|
||||||
apply_to_float = false,
|
apply_to_float = false,
|
||||||
get_weight = get_weight,
|
|
||||||
loc_vars = function(self, _, _)
|
loc_vars = function(self, _, _)
|
||||||
return {vars = {self.config.e_chips, self.config.e_mult}}
|
return {vars = {self.config.e_chips, self.config.e_mult}}
|
||||||
end,
|
end,
|
||||||
|
|
|
||||||
|
|
@ -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"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -313,6 +314,10 @@ 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.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
|
||||||
|
|
@ -362,6 +367,7 @@ for _, v in ipairs({
|
||||||
"challenge",
|
"challenge",
|
||||||
"edition",
|
"edition",
|
||||||
"joker",
|
"joker",
|
||||||
|
"omega",
|
||||||
"slugcat",
|
"slugcat",
|
||||||
"spectral",
|
"spectral",
|
||||||
"tarot",
|
"tarot",
|
||||||
|
|
|
||||||
1201
src/omega.lua
Normal file
1201
src/omega.lua
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -412,6 +412,7 @@ SMODS.Joker {
|
||||||
return not card.debuff and Jane.can_use() and next(G.hand.highlighted)
|
return not card.debuff and Jane.can_use() and next(G.hand.highlighted)
|
||||||
end,
|
end,
|
||||||
Bakery_use_joker = function(_, card)
|
Bakery_use_joker = function(_, card)
|
||||||
|
---@diagnostic disable-next-line: deprecated
|
||||||
local removed = {unpack(G.hand.highlighted)}
|
local removed = {unpack(G.hand.highlighted)}
|
||||||
|
|
||||||
for _, v in pairs(removed) do
|
for _, v in pairs(removed) do
|
||||||
|
|
@ -642,9 +643,6 @@ SMODS.Joker {
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
draw = function(_, card)
|
draw = function(_, card)
|
||||||
local rgb = G.C.jane_RGB
|
|
||||||
rgb[1], rgb[2], rgb[3] = Jane.hsv(1 - (G.TIMERS.REAL / 3 % 1), math.sin(G.TIMERS.REAL) / 10 + 0.6, 1)
|
|
||||||
|
|
||||||
local _ = card and
|
local _ = card and
|
||||||
card.children.floating_sprite and
|
card.children.floating_sprite and
|
||||||
card.children.floating_sprite:set_sprite_pos({x = card.ability.extra.is_attuned and 2 or 1, y = 0})
|
card.children.floating_sprite:set_sprite_pos({x = card.ability.extra.is_attuned and 2 or 1, y = 0})
|
||||||
|
|
@ -811,7 +809,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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
@ -823,6 +821,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