Skip to content

Commit 1e152cc

Browse files
committed
make meld spectral
1 parent e75ee73 commit 1e152cc

File tree

5 files changed

+69
-68
lines changed

5 files changed

+69
-68
lines changed

assets/1x/atlasnotjokers.png

9.25 KB
Loading

assets/2x/atlasnotjokers.png

62 Bytes
Loading

items/misc.lua

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -2435,72 +2435,6 @@ G.FUNCS.merge_ds = function(e)
24352435
end
24362436
end
24372437

2438-
local meld = {
2439-
object_type = "Consumable",
2440-
dependencies = {
2441-
items = {
2442-
"set_cry_misc",
2443-
"e_cry_double_sided",
2444-
},
2445-
},
2446-
set = "Tarot",
2447-
name = "cry-Meld",
2448-
key = "meld",
2449-
order = 3,
2450-
pos = { x = 4, y = 4 },
2451-
config = { extra = 4 },
2452-
cost = 4,
2453-
atlas = "atlasnotjokers",
2454-
can_use = function(self, card)
2455-
if
2456-
#G.jokers.highlighted
2457-
+ #G.hand.highlighted
2458-
- (G.hand.highlighted[1] and G.hand.highlighted[1] == self and 1 or 0)
2459-
== 1
2460-
then
2461-
if
2462-
#G.jokers.highlighted == 1
2463-
and (Card.no(G.jokers.highlighted[1], "dbl") or G.jokers.highlighted[1].edition)
2464-
then
2465-
return false
2466-
end
2467-
if #G.hand.highlighted == 1 and G.hand.highlighted[1].edition then
2468-
return false
2469-
end
2470-
return true
2471-
end
2472-
end,
2473-
cry_credits = {
2474-
art = {
2475-
"Linus Goof Balls",
2476-
},
2477-
code = {
2478-
"Math",
2479-
},
2480-
jolly = {
2481-
"Jolly Open Winner",
2482-
"Axolotolus",
2483-
},
2484-
},
2485-
loc_vars = function(self, info_queue)
2486-
info_queue[#info_queue + 1] = G.P_CENTERS.e_cry_double_sided
2487-
end,
2488-
use = function(self, card, area, copier)
2489-
if #G.jokers.highlighted == 1 then
2490-
G.jokers.highlighted[1]:remove_from_deck(true)
2491-
G.jokers.highlighted[1]:set_edition({ cry_double_sided = true })
2492-
G.jokers.highlighted[1]:add_to_deck(true)
2493-
G.jokers:remove_from_highlighted(G.jokers.highlighted[1])
2494-
else
2495-
G.hand.highlighted[1]:set_edition({ cry_double_sided = true })
2496-
G.hand:remove_from_highlighted(G.hand.highlighted[1])
2497-
end
2498-
end,
2499-
in_pool = function()
2500-
return G.GAME.used_vouchers.v_cry_double_slit
2501-
end,
2502-
}
2503-
25042438
-- Absolute
25052439
-- Can't be sold, destroyed, Absolute can't be removed
25062440
local absolute = {

items/spectral.lua

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1181,6 +1181,73 @@ local typhoon = {
11811181
end
11821182
end,
11831183
}
1184+
1185+
local meld = {
1186+
object_type = "Consumable",
1187+
dependencies = {
1188+
items = {
1189+
"set_cry_spectral",
1190+
"e_cry_double_sided",
1191+
},
1192+
},
1193+
set = "Spectral",
1194+
name = "cry-Meld",
1195+
key = "meld",
1196+
order = 9,
1197+
pos = { x = 4, y = 4 },
1198+
config = { extra = 4 },
1199+
cost = 4,
1200+
atlas = "atlasnotjokers",
1201+
can_use = function(self, card)
1202+
if
1203+
#G.jokers.highlighted
1204+
+ #G.hand.highlighted
1205+
- (G.hand.highlighted[1] and G.hand.highlighted[1] == self and 1 or 0)
1206+
== 1
1207+
then
1208+
if
1209+
#G.jokers.highlighted == 1
1210+
and (Card.no(G.jokers.highlighted[1], "dbl") or G.jokers.highlighted[1].edition)
1211+
then
1212+
return false
1213+
end
1214+
if #G.hand.highlighted == 1 and G.hand.highlighted[1].edition then
1215+
return false
1216+
end
1217+
return true
1218+
end
1219+
end,
1220+
cry_credits = {
1221+
art = {
1222+
"George The Rat",
1223+
},
1224+
code = {
1225+
"Math",
1226+
},
1227+
jolly = {
1228+
"Jolly Open Winner",
1229+
"Axolotolus",
1230+
},
1231+
},
1232+
loc_vars = function(self, info_queue)
1233+
info_queue[#info_queue + 1] = G.P_CENTERS.e_cry_double_sided
1234+
end,
1235+
use = function(self, card, area, copier)
1236+
if #G.jokers.highlighted == 1 then
1237+
G.jokers.highlighted[1]:remove_from_deck(true)
1238+
G.jokers.highlighted[1]:set_edition({ cry_double_sided = true })
1239+
G.jokers.highlighted[1]:add_to_deck(true)
1240+
G.jokers:remove_from_highlighted(G.jokers.highlighted[1])
1241+
else
1242+
G.hand.highlighted[1]:set_edition({ cry_double_sided = true })
1243+
G.hand:remove_from_highlighted(G.hand.highlighted[1])
1244+
end
1245+
end,
1246+
in_pool = function()
1247+
return G.GAME.used_vouchers.v_cry_double_slit
1248+
end,
1249+
}
1250+
11841251
-- Summoning: To Be Moved Into Epic.lua
11851252
-- Destroy a random joker and create an epic joker
11861253
local summoning = {
@@ -1272,6 +1339,7 @@ local spectrals = {
12721339
adversary,
12731340
chambered,
12741341
conduit,
1342+
meld,
12751343
summoning, -- to be moved to epic.lua
12761344
typhoon, -- to be moved to misc.lua
12771345
white_hole,

localization/en-us.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3962,8 +3962,7 @@ return {
39623962
name = "Double Slit",
39633963
text = {
39643964
"{C:attention}Meld{} can appear",
3965-
"in the shop and",
3966-
"Arcana Packs",
3965+
"in {C:spectral}Spectral{} Packs",
39673966
},
39683967
},
39693968
v_cry_stickyhand = {

0 commit comments

Comments
 (0)