Compare commits

..

3 commits
3.0.7 ... main

Author SHA1 Message Date
713276e568
Improve performance of Arctic Circle 2026-10-14 18:23:58 +02:00
4a922f8d0d
Use nodes directly instead of finding them 2026-10-14 18:22:43 +02:00
3119a8561d
Add unused patch 2026-10-14 18:16:47 +02:00
4 changed files with 16 additions and 11 deletions

View file

@ -212,3 +212,13 @@ match_indent = true
# position = "at"
# payload = 'local cmdName = inputText'
# match_indent = true
# [[patches]]
# [patches.pattern]
# target = '=[SMODS DebugPlus "debugplus/util.lua"]'
# pattern = "function global.stringifyTable(tab, depth, num, dec, indent)"
# position = "after"
# payload = """if type(tab) == "table" and type(tab.table) == "function" then
# tab = tab:table()
# end"""
# match_indent = true

View file

@ -3,7 +3,7 @@
"id": "Roland",
"name": "Roland",
"prefix": "Roland",
"version": "3.0.7",
"version": "3.0.9",
"badge_colour": "8BE9FD",
"display_name": "Roland",
"main_file": "src/main.lua",

View file

@ -232,24 +232,21 @@ blind {
boss = {min = 3},
boss_colour = HEX "102a41ff",
pronouns = "it_its",
defeat = function(self)
self.cards():where "Roland_blizzard":each(set_freeze())
defeat = function()
f(G.I.CARD):where "Roland_blizzard":each(set_freeze())
G.GAME.blind.disabled = true
end,
disable = function(self)
self:defeat()
end,
calculate = function(self, b, context)
calculate = function(_, b, context)
return not b.disabled and
context.hand_drawn and
self.cards()
f(G.I.CARD)
:where("Roland_blizzard", false)
:where("facing", "front")
:each(set_freeze(true)) or nil
end,
cards = function()
return f(G):where(getmetatable, CardArea):flatmap("cards", ipairs)
end,
}
blind {

View file

@ -589,9 +589,7 @@ joker {
end
return SMODS.merge_effects(
f(G)
:where(getmetatable, CardArea)
:flatmap("cards", ipairs)
f(G.I.CARD)
:where(is_frozen)
:map(copy(card, context))
:where(type, "table")