Skip to content

Commit 908f4db

Browse files
authored
Add files via upload
1 parent f221d1e commit 908f4db

File tree

4 files changed

+33
-2
lines changed

4 files changed

+33
-2
lines changed

CruelBlinds_1_0_0/CruelBlinds.lua

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,35 @@ modify_hand = function(self, cards, poker_hands, text, mult, hand_chips)
845845
end
846846
}
847847

848+
SMODS.Atlas({ key = "checker_blind", atlas_table = "ANIMATION_ATLAS", path = "checker.png", px = 34, py = 34, frames = 21 })
849+
850+
SMODS.Blind {loc_txt = {
851+
name = 'The Checker',
852+
text = { 'Every other rank', 'is debuffed' }
853+
},
854+
key = 'checker',
855+
name = "The Checker",
856+
config = {},
857+
boss = {min = 1, max = 10, hardcore = true},
858+
boss_colour = HEX("525252"),
859+
atlas = "checker_blind",
860+
pos = { x = 0, y = 0},
861+
vars = {},
862+
dollars = 5,
863+
mult = 2,
864+
set_blind = function(self, reset, silent)
865+
if not reset then
866+
G.GAME.blind.config.even_parity = (pseudorandom("parity") > 0.5)
867+
end
868+
end,
869+
debuff_card = function(self, card, from_blind)
870+
if (card.area ~= G.jokers) and not G.GAME.blind.disabled and card.base.id and not ((card.base.id % 2 == 0) == G.GAME.blind.config.even_parity) then
871+
return true
872+
end
873+
return false
874+
end
875+
}
876+
848877
function create_UIBox_blind_choice(type, run_info)
849878
if not G.GAME.blind_on_deck then
850879
G.GAME.blind_on_deck = 'Small'
3.39 KB
Loading
7.62 KB
Loading

CruelBlinds_1_0_0/lovely.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ pattern = 'function Blind:load(blindTable)'
113113
position = 'after'
114114
payload = '''self.config.blinds = blindTable.blinds or {}
115115
116-
self.config.joker_sold = blindTable.didSell or false'''
116+
self.config.joker_sold = blindTable.didSell or false
117+
self.config.even_parity = blindTable.parity or false'''
117118
match_indent = true
118119

119120
[[patches]]
@@ -122,7 +123,8 @@ target = 'blind.lua'
122123
pattern = 'return blindTable'
123124
position = 'before'
124125
payload = '''blindTable.blinds = self.config.blinds
125-
blindTable.didSell = self.config.joker_sold'''
126+
blindTable.didSell = self.config.joker_sold
127+
blindTable.parity = self.config.even_parity'''
126128
match_indent = true
127129

128130
[[patches]]

0 commit comments

Comments
 (0)