HK: Add options for Deathlink. (#672)

This commit is contained in:
Daniel Grace 2022-06-27 18:05:29 -07:00 committed by GitHub
parent 2a0198b618
commit 98b714f84a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 15 deletions

View File

@ -288,6 +288,25 @@ class WhitePalace(Choice):
default = 0 default = 0
class DeathLink(Choice):
"""
When you die, everyone dies. Of course the reverse is true too.
When enabled, choose how incoming deathlinks are handled:
vanilla: DeathLink kills you and is just like any other death. RIP your previous shade and geo.
shadeless: DeathLink kills you, but no shade spawns and no geo is lost. Your previous shade, if any, is untouched.
shade: DeathLink functions like a normal death if you do not already have a shade, shadeless otherwise.
"""
option_off = 0
alias_false = 0
alias_no = 0
alias_true = 1
alias_on = 1
alias_yes = 1
option_shadeless = 1
option_vanilla = 2
option_shade = 3
class StartingGeo(Range): class StartingGeo(Range):
"""The amount of starting geo you have.""" """The amount of starting geo you have."""
display_name = "Starting Geo" display_name = "Starting Geo"
@ -299,19 +318,16 @@ class StartingGeo(Range):
hollow_knight_options: typing.Dict[str, type(Option)] = { hollow_knight_options: typing.Dict[str, type(Option)] = {
**hollow_knight_randomize_options, **hollow_knight_randomize_options,
**hollow_knight_logic_options, **hollow_knight_logic_options,
StartLocation.__name__: StartLocation, **{
MinimumGrubPrice.__name__: MinimumGrubPrice, option.__name__: option
MaximumGrubPrice.__name__: MaximumGrubPrice, for option in (
MinimumEssencePrice.__name__: MinimumEssencePrice, StartLocation, Goal, WhitePalace, StartingGeo, DeathLink,
MaximumEssencePrice.__name__: MaximumEssencePrice, MinimumGrubPrice, MaximumGrubPrice,
MinimumCharmPrice.__name__: MinimumCharmPrice, MinimumEssencePrice, MaximumEssencePrice,
MaximumCharmPrice.__name__: MaximumCharmPrice, MinimumCharmPrice, MaximumCharmPrice,
RandomCharmCosts.__name__: RandomCharmCosts, RandomCharmCosts, PlandoCharmCosts,
PlandoCharmCosts.__name__: PlandoCharmCosts, MinimumEggPrice, MaximumEggPrice, EggShopSlots,
MinimumEggPrice.__name__: MinimumEggPrice, # Add your new options where it makes sense?
MaximumEggPrice.__name__: MaximumEggPrice, )
EggShopSlots.__name__: EggShopSlots, }
Goal.__name__: Goal,
WhitePalace.__name__: WhitePalace,
StartingGeo.__name__: StartingGeo,
} }