AHiT: Add Death Link amnesty options (#4694)
* Add basic death link amnesty option * Add death wish amnesty option
This commit is contained in:
@@ -623,6 +623,23 @@ class ParadeTrapWeight(Range):
|
||||
default = 20
|
||||
|
||||
|
||||
class DeathLinkAmnesty(Range):
|
||||
"""Amount of forgiven deaths before sending a Death Link.
|
||||
0 means that every death will send a Death Link."""
|
||||
display_name = "Death Link Amnesty"
|
||||
range_start = 0
|
||||
range_end = 20
|
||||
default = 0
|
||||
|
||||
|
||||
class DWDeathLinkAmnesty(Range):
|
||||
"""Amount of forgiven deaths before sending a Death Link during Death Wish levels."""
|
||||
display_name = "Death Wish Amnesty"
|
||||
range_start = 0
|
||||
range_end = 30
|
||||
default = 5
|
||||
|
||||
|
||||
@dataclass
|
||||
class AHITOptions(PerGameCommonOptions):
|
||||
start_inventory_from_pool: StartInventoryPool
|
||||
@@ -700,6 +717,8 @@ class AHITOptions(PerGameCommonOptions):
|
||||
ParadeTrapWeight: ParadeTrapWeight
|
||||
|
||||
death_link: DeathLink
|
||||
death_link_amnesty: DeathLinkAmnesty
|
||||
dw_death_link_amnesty: DWDeathLinkAmnesty
|
||||
|
||||
|
||||
ahit_option_groups: Dict[str, List[Any]] = {
|
||||
@@ -769,4 +788,6 @@ slot_data_options: List[str] = [
|
||||
"MaxPonCost",
|
||||
|
||||
"death_link",
|
||||
"death_link_amnesty",
|
||||
"dw_death_link_amnesty",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user