diff --git a/localization/en-us.lua b/localization/en-us.lua index 605b93b..7edfbed 100644 --- a/localization/en-us.lua +++ b/localization/en-us.lua @@ -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"}, diff --git a/manifest.json b/manifest.json index df581ec..ee621bd 100644 --- a/manifest.json +++ b/manifest.json @@ -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", diff --git a/src/challenge.lua b/src/challenge.lua index 51221a5..3b7850e 100644 --- a/src/challenge.lua +++ b/src/challenge.lua @@ -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"}}},