Add new challenge

This commit is contained in:
Emik 2026-06-16 14:28:41 +02:00
parent 09cc387b8e
commit 15a50ff9d1
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
3 changed files with 23 additions and 1 deletions

View file

@ -457,6 +457,7 @@ return {
c_Roland_Eternally_Crimson = "Eternally Crimson",
c_Roland_Eternally_Verdant = "Eternally Verdant",
c_Roland_Eternally_Violet = "Eternally Violet",
c_Roland_Glass = "Glass House",
c_Roland_Go = "Pass GO",
c_Roland_Jokerful = "Jokerful",
c_Roland_Pastries = "Sweet Pastries",
@ -495,6 +496,8 @@ return {
ch_c_Roland_Eternally_Crimson = {"{C:attention}Crimson Heart{}'s effect is active every blind"},
ch_c_Roland_Eternally_Verdant = {"{C:attention}Verdant Leaf{}'s effect is active every blind"},
ch_c_Roland_Eternally_Violet = {"{C:attention}Violet Vessel{}'s effect is active every blind"},
ch_c_Roland_Glass1 = {"Played cards with no seal have a"},
ch_c_Roland_Glass2 = {"{C:green}1 in 4{} chance to gain {C:dark_edition}Glass Seal"},
ch_c_Roland_Go = {"Set money to {C:money}$0 {}when entering the shop"},
ch_c_Roland_Jokerful = {"The only jokers are {C:mult}Joker{} and {C:chips}Ms. Joker"},
ch_c_Roland_Pastries = {"All blinds, cards, and tags are of {C:gold}Bakery{} or {C:blue}Roland"},

View file

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

View file

@ -42,6 +42,25 @@ end
local pastries, amber, cerulean, crimson, verdant, violet =
bans(), bans(), bans(), bans(), bans(), bans()
SMODS.Challenge {
key = "Glass",
rules = {custom = {{id = "Roland_Glass1"}, {id = "Roland_Glass2"}}},
pronouns = "they_them",
config = {extra = {odds = 4}},
calculate = function(self, context)
if not context.after or context.blueprint_card then
return
end
f(G.play.cards):where(function(v)
return not v:get_seal(true) and
SMODS.pseudorandom_probability(self, self.key, 1, self.config.extra.odds, self.key)
end):each(function(v)
v:set_seal "Roland_glass"
end)
end,
}
SMODS.Challenge {
key = "Go",
rules = {custom = {{id = "Roland_Go"}}},