Move Pass GO from deck to challenge
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 32 KiB |
|
Before Width: | Height: | Size: 82 KiB After Width: | Height: | Size: 82 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 33 KiB |
|
Before Width: | Height: | Size: 79 KiB After Width: | Height: | Size: 79 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 1 KiB After Width: | Height: | Size: 1 KiB |
|
Before Width: | Height: | Size: 41 KiB After Width: | Height: | Size: 41 KiB |
|
|
@ -9,14 +9,6 @@ return {
|
||||||
"that are {C:dark_edition}debuffed #1# times",
|
"that are {C:dark_edition}debuffed #1# times",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
b_Roland_go = {
|
|
||||||
name = "Pass GO Deck",
|
|
||||||
text = {
|
|
||||||
"Start with a {C:attention}Credit Card",
|
|
||||||
"Set money to {C:money}$0 {}when",
|
|
||||||
"entering the shop",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
b_Roland_swapper = {
|
b_Roland_swapper = {
|
||||||
name = "Swapper Deck",
|
name = "Swapper Deck",
|
||||||
text = {
|
text = {
|
||||||
|
|
@ -320,25 +312,10 @@ return {
|
||||||
name = "Efflorescent Sleeve",
|
name = "Efflorescent Sleeve",
|
||||||
text = {
|
text = {
|
||||||
"{C:attention}Blinds{} are {C:dark_edition}debuffed",
|
"{C:attention}Blinds{} are {C:dark_edition}debuffed",
|
||||||
"{C:dark_edition}({X:dark_edition,C:white}ante{} {X:dark_edition,C:white}number{C:dark_edition}) times",
|
"{C:dark_edition}({X:dark_edition,C:white}(ante * #2#){C:dark_edition}) times",
|
||||||
"{C:inactive}(Instead of #1#)",
|
"{C:inactive}(Instead of #1#)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sleeve_Roland_go = {
|
|
||||||
name = "Pass GO Sleeve",
|
|
||||||
text = {
|
|
||||||
"Start with a {C:attention}Credit Card",
|
|
||||||
"Set money to {C:money}$0 {}when",
|
|
||||||
"entering the shop",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sleeve_Roland_go_alt = {
|
|
||||||
name = "Free Parking Sleeve",
|
|
||||||
text = {
|
|
||||||
"Start with an additional",
|
|
||||||
"{X:attention,C:white}#1#{C:attention} Credit Cards",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
sleeve_Roland_swapper = {
|
sleeve_Roland_swapper = {
|
||||||
name = "Swapper Sleeve",
|
name = "Swapper Sleeve",
|
||||||
text = {
|
text = {
|
||||||
|
|
@ -404,6 +381,7 @@ return {
|
||||||
c_Roland_Eternally_Crimson = "Eternally Crimson",
|
c_Roland_Eternally_Crimson = "Eternally Crimson",
|
||||||
c_Roland_Eternally_Verdant = "Eternally Verdant",
|
c_Roland_Eternally_Verdant = "Eternally Verdant",
|
||||||
c_Roland_Eternally_Violet = "Eternally Violet",
|
c_Roland_Eternally_Violet = "Eternally Violet",
|
||||||
|
c_Roland_Go = "Pass GO",
|
||||||
c_Roland_Jokerful = "Jokerful",
|
c_Roland_Jokerful = "Jokerful",
|
||||||
c_Roland_Ornate = "Ornate",
|
c_Roland_Ornate = "Ornate",
|
||||||
c_Roland_Pastries = "Sweet Pastries",
|
c_Roland_Pastries = "Sweet Pastries",
|
||||||
|
|
@ -437,6 +415,7 @@ return {
|
||||||
ch_c_Roland_Eternally_Crimson = {"{C:attention}Crimson Heart{}'s effect is active every blind"},
|
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_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_Eternally_Violet = {"{C:attention}Violet Vessel{}'s effect is active every blind"},
|
||||||
|
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_Jokerful = {"The only jokers are {C:mult}Joker{} and {C:chips}Ms. Joker"},
|
||||||
ch_c_Roland_Ornate = {"Anything vanilla is banned"},
|
ch_c_Roland_Ornate = {"Anything vanilla is banned"},
|
||||||
ch_c_Roland_Pastries = {"All blinds, cards, and tags are of {C:gold}Bakery{} or {C:blue}Roland"},
|
ch_c_Roland_Pastries = {"All blinds, cards, and tags are of {C:gold}Bakery{} or {C:blue}Roland"},
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
"author": [
|
"author": [
|
||||||
"Emik"
|
"Emik"
|
||||||
],
|
],
|
||||||
"version": "2.2.4",
|
"version": "2.2.5",
|
||||||
"badge_colour": "8BE9FD",
|
"badge_colour": "8BE9FD",
|
||||||
"main_file": "src/main.lua",
|
"main_file": "src/main.lua",
|
||||||
"badge_text_colour": "44475A",
|
"badge_text_colour": "44475A",
|
||||||
|
|
|
||||||
48
src/back.lua
|
|
@ -75,7 +75,7 @@ back {
|
||||||
pronouns = "any_all",
|
pronouns = "any_all",
|
||||||
config = {extra = {times = 2}},
|
config = {extra = {times = 2}},
|
||||||
loc_vars = function(self, _, _)
|
loc_vars = function(self, _, _)
|
||||||
return {vars = {self.config.extra.times}}
|
return {vars = {self.config.extra.times, self.config.extra.alt_times}}
|
||||||
end,
|
end,
|
||||||
apply = function(_, _)
|
apply = function(_, _)
|
||||||
G.GAME.modifiers.Roland_blossom_deck = true
|
G.GAME.modifiers.Roland_blossom_deck = true
|
||||||
|
|
@ -91,9 +91,11 @@ back {
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local count = self:is_alt() and G.GAME.round_resets.ante or self.config.extra.times
|
local count = self:is_alt() and
|
||||||
|
G.GAME.round_resets.ante * self.config.extra.alt_times or
|
||||||
|
self.config.extra.times
|
||||||
|
|
||||||
for _ = 1, count do
|
f(count):each(function()
|
||||||
G.GAME.blind:disable()
|
G.GAME.blind:disable()
|
||||||
|
|
||||||
q {
|
q {
|
||||||
|
|
@ -104,48 +106,8 @@ back {
|
||||||
play_sound "timpani"
|
play_sound "timpani"
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
end
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
||||||
back {
|
|
||||||
key = "go",
|
|
||||||
pronouns = "he_him",
|
|
||||||
config = {extra = {times = 1, alt_times = 5}},
|
|
||||||
loc_vars = function(self, info_queue, _)
|
|
||||||
local _ = info_queue and table.insert(info_queue, G.P_CENTERS.j_credit_card)
|
|
||||||
return {vars = {self.config.extra.alt_times - self.config.extra.times}}
|
|
||||||
end,
|
|
||||||
apply = function(self)
|
|
||||||
q(function()
|
|
||||||
local count = self:is_alt() and self.config.extra.alt_times or self.config.extra.times
|
|
||||||
|
|
||||||
for _ = 1, count do
|
|
||||||
local c = create_card("Joker", G.jokers, nil, nil, nil, nil, "j_credit_card", "Roland_go")
|
|
||||||
c:add_to_deck()
|
|
||||||
c:start_materialize()
|
|
||||||
G.jokers:emplace(c)
|
|
||||||
end
|
|
||||||
end)
|
end)
|
||||||
end,
|
end,
|
||||||
calculate = function(_, card, context)
|
|
||||||
if not context.starting_shop then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
ease_dollars(-G.GAME.dollars)
|
|
||||||
|
|
||||||
attention_text {
|
|
||||||
text = localize "k_nope_ex",
|
|
||||||
backdrop_colour = G.C.MONEY,
|
|
||||||
offset = {x = 0, y = 0},
|
|
||||||
silent = true,
|
|
||||||
major = card,
|
|
||||||
align = "cm",
|
|
||||||
scale = 1.3,
|
|
||||||
hold = 1.4,
|
|
||||||
}
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
back {
|
back {
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,29 @@ end
|
||||||
local jokerful, vanillas, pastries, amber, cerulean, crimson, verdant, violet, final
|
local jokerful, vanillas, pastries, amber, cerulean, crimson, verdant, violet, final
|
||||||
= bans(), bans(), bans(), bans(), bans(), bans(), bans(), bans(), bans()
|
= bans(), bans(), bans(), bans(), bans(), bans(), bans(), bans(), bans()
|
||||||
|
|
||||||
|
SMODS.Challenge {
|
||||||
|
key = "Go",
|
||||||
|
rules = {custom = {{id = "Roland_Go"}}},
|
||||||
|
jokers = {{id = "j_credit_card"}},
|
||||||
|
pronouns = "he_him",
|
||||||
|
calculate = function(self, context)
|
||||||
|
if context.starting_shop then
|
||||||
|
ease_dollars(-G.GAME.dollars)
|
||||||
|
|
||||||
|
attention_text {
|
||||||
|
text = localize "k_nope_ex",
|
||||||
|
backdrop_colour = G.C.MONEY,
|
||||||
|
offset = {x = 0, y = 0},
|
||||||
|
silent = true,
|
||||||
|
major = self,
|
||||||
|
align = "cm",
|
||||||
|
scale = 1.3,
|
||||||
|
hold = 1.4,
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
||||||
SMODS.Challenge {
|
SMODS.Challenge {
|
||||||
key = "Jokerful",
|
key = "Jokerful",
|
||||||
rules = {custom = {{id = "Roland_Jokerful"}}},
|
rules = {custom = {{id = "Roland_Jokerful"}}},
|
||||||
|
|
|
||||||