Skip to content

Commit 0dc24dc

Browse files
authored
Add files via upload
1 parent 08e54ae commit 0dc24dc

File tree

4 files changed

+73
-55
lines changed

4 files changed

+73
-55
lines changed

CruelBlinds_1_0_0/CruelBlinds.lua

Lines changed: 61 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--- PREFIX: cruel
55
--- MOD_AUTHOR: [mathguy]
66
--- MOD_DESCRIPTION: Cruel Blinds
7-
--- VERSION: 1.3.1
7+
--- VERSION: 1.3.2
88
----------------------------------------------
99
------------MOD CODE -------------------------
1010

@@ -1187,12 +1187,10 @@ SMODS.Stake {
11871187
pos = {x = 0, y = 0},
11881188
applied_stakes = {"white"},
11891189
loc_txt = {
1190-
description = {
1191-
name = "Mean Stake",
1192-
text = {
1193-
"Lose {C:money}x0.2{} total {C:attention}Joker sell value",
1194-
"at {C:attention}round{} end as {C:money}dollars{}",
1195-
}
1190+
name = "Mean Stake",
1191+
text = {
1192+
"Lose {C:money}x0.2{} total {C:attention}Joker sell value",
1193+
"at {C:attention}round{} end as {C:money}dollars{}",
11961194
},
11971195
sticker = {
11981196
name = "Mean Sticker",
@@ -1218,12 +1216,10 @@ SMODS.Stake {
12181216
pos = {x = 1, y = 0},
12191217
applied_stakes = {"cruel_mean"},
12201218
loc_txt = {
1221-
description = {
1222-
name = "Rude Stake",
1223-
text = {
1224-
"+{C:blue}x0.03 Blind Size{} each",
1225-
"{C:attention}hand played{}",
1226-
}
1219+
name = "Rude Stake",
1220+
text = {
1221+
"+{C:blue}x0.03 Blind Size{} each",
1222+
"{C:attention}hand played{}",
12271223
},
12281224
sticker = {
12291225
name = "Rude Sticker",
@@ -1289,12 +1285,10 @@ SMODS.Stake {
12891285
pos = {x = 2, y = 0},
12901286
applied_stakes = {"cruel_rude"},
12911287
loc_txt = {
1292-
description = {
1293-
name = "Mocking Stake",
1294-
text = {
1295-
"Shop can have {C:attention}Wash{} Jokers",
1296-
"{C:inactive,s:0.8}(Debuffed after 8 Discards)",
1297-
}
1288+
name = "Mocking Stake",
1289+
text = {
1290+
"Shop can have {C:attention}Wash{} Jokers",
1291+
"{C:inactive,s:0.8}(Debuffed after 8 Discards)",
12981292
},
12991293
sticker = {
13001294
name = "Mocking Sticker",
@@ -1320,11 +1314,9 @@ SMODS.Stake {
13201314
pos = {x = 3, y = 0},
13211315
applied_stakes = {"cruel_mocking"},
13221316
loc_txt = {
1323-
description = {
1324-
name = "Painful Stake",
1325-
text = {
1326-
"-1 {C:attention}Joker Slot{}"
1327-
}
1317+
name = "Painful Stake",
1318+
text = {
1319+
"-1 {C:attention}Joker Slot{}"
13281320
},
13291321
sticker = {
13301322
name = "Painful Sticker",
@@ -1350,12 +1342,10 @@ SMODS.Stake {
13501342
pos = {x = 0, y = 1},
13511343
applied_stakes = {"cruel_painful"},
13521344
loc_txt = {
1353-
description = {
1354-
name = "Harsh Stake",
1355-
text = {
1356-
"{C:attention}x0.8{} Base {C:blue}Chips",
1357-
"and {C:red}Mult{C:inactive} (rounds up)"
1358-
}
1345+
name = "Harsh Stake",
1346+
text = {
1347+
"{C:attention}x0.8{} Base {C:blue}Chips",
1348+
"and {C:red}Mult{C:inactive} (rounds up)"
13591349
},
13601350
sticker = {
13611351
name = "Harsh Sticker",
@@ -1381,12 +1371,10 @@ SMODS.Stake {
13811371
pos = {x = 1, y = 1},
13821372
applied_stakes = {"cruel_harsh"},
13831373
loc_txt = {
1384-
description = {
1385-
name = "Brutal Stake",
1386-
text = {
1387-
"{C:money}-$6{} at start",
1388-
"of {C:attention}run{}"
1389-
}
1374+
name = "Brutal Stake",
1375+
text = {
1376+
"{C:money}-$6{} at start",
1377+
"of {C:attention}run{}"
13901378
},
13911379
sticker = {
13921380
name = "Brutal Sticker",
@@ -1441,12 +1429,10 @@ SMODS.Stake {
14411429
pos = {x = 2, y = 1},
14421430
applied_stakes = {"cruel_brutal"},
14431431
loc_txt = {
1444-
description = {
1445-
name = "Horrid Stake",
1446-
text = {
1447-
"Shop can have {C:attention}Overpriced{} Items",
1448-
"{C:inactive,s:0.8}(Double base cost)",
1449-
}
1432+
name = "Horrid Stake",
1433+
text = {
1434+
"Shop can have {C:attention}Overpriced{} Items",
1435+
"{C:inactive,s:0.8}(Double base cost)",
14501436
},
14511437
sticker = {
14521438
name = "Horrid Sticker",
@@ -1472,11 +1458,9 @@ SMODS.Stake {
14721458
pos = {x = 3, y = 1},
14731459
applied_stakes = {"cruel_horrid"},
14741460
loc_txt = {
1475-
description = {
1476-
name = "Cruel Stake",
1477-
text = {
1478-
"-1 {C:attention}Hand Size{}"
1479-
}
1461+
name = "Cruel Stake",
1462+
text = {
1463+
"-1 {C:attention}Hand Size{}"
14801464
},
14811465
sticker = {
14821466
name = "Cruel Sticker",
@@ -1502,11 +1486,9 @@ SMODS.Stake {
15021486
pos = {x = 0, y = 2},
15031487
applied_stakes = {"cruel_cruel", "gold"},
15041488
loc_txt = {
1505-
description = {
1506-
name = "Fool's Stake",
1507-
text = {
1508-
"You may not {C:green}Reroll{}"
1509-
}
1489+
name = "Fool's Stake",
1490+
text = {
1491+
"You may not {C:green}Reroll{}"
15101492
},
15111493
sticker = {
15121494
name = "Fool's Sticker",
@@ -1766,6 +1748,32 @@ SMODS.Back {
17661748
end
17671749
}
17681750

1751+
SMODS.Back {
1752+
key = 'puzzled',
1753+
loc_txt = {
1754+
name = "Puzzled Deck",
1755+
text = {
1756+
"All {C:attention}playing cards{}",
1757+
"are {C:PERISHABLE}Puzzled{}",
1758+
}
1759+
},
1760+
name = "Puzzled Deck",
1761+
pos = { x = 1, y = 0 },
1762+
atlas = 'decks',
1763+
apply = function(self)
1764+
G.GAME.modifiers["puzzled_all"] = true
1765+
G.E_MANAGER:add_event(Event({
1766+
func = function()
1767+
for k, v in pairs(G.playing_cards) do
1768+
v.ability.puzzled = true
1769+
end
1770+
return true
1771+
end
1772+
}))
1773+
end,
1774+
dependencies = { "Cryptid" }
1775+
}
1776+
17691777
local old_can_play = G.FUNCS.can_play
17701778
G.FUNCS.can_play = function(e)
17711779
old_can_play(e)
@@ -1776,4 +1784,4 @@ G.FUNCS.can_play = function(e)
17761784
end
17771785

17781786
----------------------------------------------
1779-
------------MOD CODE END----------------------
1787+
------------MOD CODE END----------------------
2.44 KB
Loading
4.67 KB
Loading

CruelBlinds_1_0_0/lovely.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,9 @@ match_indent = true
195195
[[patches]]
196196
[patches.pattern]
197197
target = 'card.lua'
198-
pattern = '''if self.edition or self.seal or self.ability.eternal or self.ability.rental or self.ability.perishable or self.sticker or self.ability.set == 'Spectral' or self.debuff or self.greyed or self.ability.name == 'The Soul' or self.ability.set == 'Voucher' or self.ability.set == 'Booster' or self.config.center.soul_pos or self.config.center.demo then'''
198+
pattern = '''if self.edition or self.seal or self.ability.eternal or self.ability.rental or self.ability.perishable or self.sticker or ((self.sticker_run and self.sticker_run ~= 'NONE') and G.SETTINGS.run_stake_stickers) or (self.ability.set == 'Spectral') or self.debuff or self.greyed or (self.ability.name == 'The Soul') or (self.ability.set == 'Voucher') or (self.ability.set == 'Booster') or self.config.center.soul_pos or self.config.center.demo then'''
199199
position = 'at'
200-
payload = '''if (self.ability and (self.ability.puzzled)) or self.edition or self.seal or self.ability.eternal or self.ability.rental or self.ability.perishable or self.sticker or self.ability.set == 'Spectral' or self.debuff or self.greyed or self.ability.name == 'The Soul' or self.ability.set == 'Voucher' or self.ability.set == 'Booster' or self.config.center.soul_pos or self.config.center.demo then'''
200+
payload = '''if (self.ability and (self.ability.puzzled)) or self.edition or self.seal or self.ability.eternal or self.ability.rental or self.ability.perishable or self.sticker or ((self.sticker_run and self.sticker_run ~= 'NONE') and G.SETTINGS.run_stake_stickers) or (self.ability.set == 'Spectral') or self.debuff or self.greyed or (self.ability.name == 'The Soul') or (self.ability.set == 'Voucher') or (self.ability.set == 'Booster') or self.config.center.soul_pos or self.config.center.demo then'''
201201
match_indent = true
202202

203203
[[patches]]
@@ -437,4 +437,14 @@ pattern = '''pinned_left = G.C.ORANGE,'''
437437
position = 'after'
438438
payload = '''st_cruel_overpriced = G.C.ORANGE,
439439
st_cruel_wash = G.C.BLUE,'''
440+
match_indent = true
441+
442+
[[patches]]
443+
[patches.pattern]
444+
target = 'card.lua'
445+
pattern = '''function Card:set_card_area(area)'''
446+
position = 'after'
447+
payload = '''if self.ability and ((self.ability.set == 'Enhanced') or (self.ability.set == 'Base')) and G.GAME.selected_back and (G.GAME.selected_back.name == "Puzzled Deck") and ((area == G.hand) or (area == G.deck) or (area == G.play) or (area == G.pack_cards) or (area == G.shop_jokers)) then
448+
self.ability.puzzled = true
449+
end'''
440450
match_indent = true

0 commit comments

Comments
 (0)