Only remove highlight limit if actually necessary
This commit is contained in:
parent
74b185e090
commit
d2349ec498
2 changed files with 6 additions and 4 deletions
|
|
@ -17,5 +17,5 @@
|
||||||
"conflicts": [
|
"conflicts": [
|
||||||
"Jen"
|
"Jen"
|
||||||
],
|
],
|
||||||
"version": "1.6.18"
|
"version": "1.6.19"
|
||||||
}
|
}
|
||||||
|
|
@ -222,9 +222,11 @@ function CardArea:can_highlight(...)
|
||||||
return orig_can_highlight(self, ...)
|
return orig_can_highlight(self, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Allows more flexibility when using the Escapey joker to delete specific consumables.
|
local has_escapey = next(SMODS.find_card("j_jane_escapey"))
|
||||||
self.config.highlighted_limit = 1 / 0
|
local config = self.config
|
||||||
return true
|
config.old_limit = config.highlighted_limit == 1 / 0 and config.old_limit or config.highlighted_limit
|
||||||
|
config.highlighted_limit = has_escapey and 1 / 0 or config.old_limit
|
||||||
|
return has_escapey and true or orig_can_highlight(self, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
local orig_highlight = Card.highlight
|
local orig_highlight = Card.highlight
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue