Skip to content

Commit e0d4216

Browse files
authored
Merge branch 'refactor' into shinytags
2 parents c856a01 + 9607dea commit e0d4216

24 files changed

+4192
-3658
lines changed

Cryptid.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ local function process_items(f, mod)
7676
item.dependencies[#item.dependencies + 1] = mod.id
7777
end
7878
if item.init then item:init() end
79-
if not item.gameset_config then
79+
--[[if not item.gameset_config then
8080
-- by default, disable on modest
8181
item.gameset_config = {
8282
modest = {disabled = true},
8383
}
84-
end
84+
end--]]
8585
if G.PROFILES[G.SETTINGS.profile].all_unlocked then
8686
-- There's something a bit goofy about this, it shouldn't kick in this early
8787
item.alerted = true

items/achievement.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,4 +447,4 @@ local achievement_objects = {
447447
traffic_jam,
448448
perfectly_balanced,
449449
}
450-
return { name = "Achievements", init = function() end, items = achievement_objects, }
450+
return { name = "Achievements", items = achievement_objects, }

items/blind.lua

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
local oldox = {
22
object_type = "Blind",
3+
dependencies = {
4+
items = {
5+
"set_cry_blind",
6+
},
7+
},
38
name = "cry-oldox",
49
key = "oldox",
510
pos = { x = 0, y = 0 },
@@ -20,6 +25,11 @@ local oldox = {
2025
}
2126
local oldhouse = {
2227
object_type = "Blind",
28+
dependencies = {
29+
items = {
30+
"set_cry_blind",
31+
},
32+
},
2333
name = "cry-oldhouse",
2434
key = "oldhouse",
2535
pos = { x = 0, y = 2 },
@@ -353,7 +363,6 @@ local trick = {
353363
end--]]
354364
end,
355365
}
356-
357366
local joke = {
358367
dependencies = {
359368
items = {
@@ -566,10 +575,8 @@ local pin = {
566575
return false
567576
end,
568577
}
569-
570578
--It seems Showdown blind order is seperate from normal blind collection order? convenient for me at least
571579
--Nvm they changed it
572-
573580
local lavender_loop = {
574581
dependencies = {
575582
items = {
@@ -704,7 +711,6 @@ local vermillion_virus = {
704711
end
705712
end,
706713
}
707-
708714
local sapphire_stamp = {
709715
dependencies = {
710716
items = {
@@ -744,7 +750,6 @@ local sapphire_stamp = {
744750
end
745751
end,
746752
}
747-
748753
local obsidian_orb = {
749754
dependencies = {
750755
items = {
@@ -1241,7 +1246,40 @@ local obsidian_orb = {
12411246
return disp_text
12421247
end,
12431248
}
1244-
1249+
local trophy = {
1250+
dependencies = {
1251+
items = {
1252+
"set_cry_blind",
1253+
},
1254+
},
1255+
mult = 1,
1256+
object_type = "Blind",
1257+
name = "cry-Lemon Trophy",
1258+
key = "trophy",
1259+
pos = { x = 0, y = 17 },
1260+
dollars = 8,
1261+
boss = {
1262+
min = 3,
1263+
max = 10,
1264+
showdown = true,
1265+
},
1266+
atlas = "blinds",
1267+
order = 95,
1268+
boss_colour = HEX("bbdb44"),
1269+
set_blind = function(self, reset, silent)
1270+
G.GAME.trophymod = true
1271+
end,
1272+
defeat = function(self, silent)
1273+
if G.GAME.trophymod then
1274+
G.GAME.trophymod = nil
1275+
end
1276+
end,
1277+
disable = function(self, silent)
1278+
if G.GAME.trophymod then
1279+
G.GAME.trophymod = nil
1280+
end
1281+
end,
1282+
}
12451283
local items_togo = {
12461284
oldox,
12471285
oldhouse,
@@ -1268,5 +1306,6 @@ local items_togo = {
12681306
obsidian_orb,
12691307
clock,
12701308
lavender_loop,
1309+
trophy,
12711310
}
1272-
return { name = "Blinds", init = function() end, items = items_togo, }
1311+
return { name = "Blinds", items = items_togo, }

items/challenge.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,4 +572,4 @@ for k, v in pairs(G.P_CENTERS) do
572572
end
573573
end
574574

575-
return { name = "Challenges", init = function() end, items = challenges, }
575+
return { name = "Challenges", items = challenges, }

0 commit comments

Comments
 (0)