Allow Venerable Visage to be bypassed
This commit is contained in:
parent
42aef4aaee
commit
8531bde452
1 changed files with 4 additions and 5 deletions
|
|
@ -282,7 +282,6 @@ blind {
|
||||||
if cry_prob then
|
if cry_prob then
|
||||||
local orig_cry_prob = cry_prob
|
local orig_cry_prob = cry_prob
|
||||||
|
|
||||||
---@diagnostic disable-next-line: lowercase-global
|
|
||||||
function cry_prob(...)
|
function cry_prob(...)
|
||||||
return G.GAME.modifiers.Roland_improbable and 0 or orig_cry_prob(...)
|
return G.GAME.modifiers.Roland_improbable and 0 or orig_cry_prob(...)
|
||||||
end
|
end
|
||||||
|
|
@ -351,7 +350,6 @@ end
|
||||||
|
|
||||||
local orig_draw = Card.draw
|
local orig_draw = Card.draw
|
||||||
|
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
function Card:draw(...)
|
function Card:draw(...)
|
||||||
if equinox() and
|
if equinox() and
|
||||||
not SMODS.Mods.Roland.config.equinox_assist and
|
not SMODS.Mods.Roland.config.equinox_assist and
|
||||||
|
|
@ -365,7 +363,6 @@ end
|
||||||
|
|
||||||
local orig_draw_self = UIElement.draw_self
|
local orig_draw_self = UIElement.draw_self
|
||||||
|
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
function UIElement:draw_self(...)
|
function UIElement:draw_self(...)
|
||||||
if equinox() and
|
if equinox() and
|
||||||
not self.config.button and
|
not self.config.button and
|
||||||
|
|
@ -393,7 +390,10 @@ local venerable_visage = blind {
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
if b.Roland_vitriol or not context.end_of_round or not next(G.deck.cards) or not next(G.hand.cards) then
|
if b.Roland_vitriol or
|
||||||
|
not context.end_of_round or
|
||||||
|
G.GAME.chips == G.GAME.blind.chips or
|
||||||
|
not (next(G.deck.cards) or next(G.hand.cards)) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -472,7 +472,6 @@ local venerable_visage = blind {
|
||||||
|
|
||||||
local orig_game_draw = Game.draw
|
local orig_game_draw = Game.draw
|
||||||
|
|
||||||
---@diagnostic disable-next-line: duplicate-set-field
|
|
||||||
function Game.draw(...)
|
function Game.draw(...)
|
||||||
orig_game_draw(...)
|
orig_game_draw(...)
|
||||||
local boss_colour = venerable_visage.boss_colour
|
local boss_colour = venerable_visage.boss_colour
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue