Skip to content

Commit b35876c

Browse files
committed
add the landlord
1 parent 9266181 commit b35876c

File tree

4 files changed

+50
-1
lines changed

4 files changed

+50
-1
lines changed

assets/1x/bl_cry_two.png

2.08 KB
Loading

assets/2x/bl_cry_two.png

4.04 KB
Loading

items/blind.lua

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,46 @@ local chromatic = {
912912
end,
913913
}
914914

915+
local landlord = {
916+
dependencies = {
917+
items = {
918+
"set_cry_blind",
919+
},
920+
},
921+
mult = 2,
922+
object_type = "Blind",
923+
name = "cry-landlord",
924+
key = "landlord",
925+
pos = { x = 0, y = 2 },
926+
dollars = 5,
927+
boss = {
928+
min = 1,
929+
max = 666666,
930+
},
931+
atlas = "blinds_two",
932+
order = 26,
933+
boss_colour = HEX("c89f13"),
934+
calculate = function(self, blind, context)
935+
if context.after then
936+
local jokers = {}
937+
for i, v in pairs(G.jokers.cards) do
938+
if not v.ability.rental then jokers[#jokers+1] = v end
939+
end
940+
if #jokers > 0 then
941+
G.E_MANAGER:add_event(Event({
942+
func = function()
943+
local joker = pseudorandom_element(jokers, pseudoseed("cry_landlord"))
944+
joker.ability.rental = true
945+
joker:juice_up()
946+
return true
947+
end
948+
}))
949+
end
950+
G.GAME.blind.triggered = true
951+
end
952+
end
953+
}
954+
915955
--It seems Showdown blind order is seperate from normal blind collection order? convenient for me at least
916956
--Nvm they changed it
917957
local lavender_loop = {
@@ -1698,6 +1738,7 @@ local items_togo = {
16981738
lavender_loop,
16991739
trophy,
17001740
decision,
1701-
chromatic
1741+
chromatic,
1742+
landlord
17021743
}
17031744
return { name = "Blinds", items = items_togo }

localization/en-us.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,14 @@ return {
421421
"odd numbered hands"
422422
},
423423
},
424+
bl_cry_landlord = {
425+
name = "The Landlord",
426+
text = {
427+
"Apply rental to",
428+
"a random Joker",
429+
"when hand is played"
430+
},
431+
},
424432
bl_cry_pinkbow = {
425433
name = "Pink Bow",
426434
text = {

0 commit comments

Comments
 (0)