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
|
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
|
@dataclass
|
||||||
class AHITOptions(PerGameCommonOptions):
|
class AHITOptions(PerGameCommonOptions):
|
||||||
start_inventory_from_pool: StartInventoryPool
|
start_inventory_from_pool: StartInventoryPool
|
||||||
@@ -700,6 +717,8 @@ class AHITOptions(PerGameCommonOptions):
|
|||||||
ParadeTrapWeight: ParadeTrapWeight
|
ParadeTrapWeight: ParadeTrapWeight
|
||||||
|
|
||||||
death_link: DeathLink
|
death_link: DeathLink
|
||||||
|
death_link_amnesty: DeathLinkAmnesty
|
||||||
|
dw_death_link_amnesty: DWDeathLinkAmnesty
|
||||||
|
|
||||||
|
|
||||||
ahit_option_groups: Dict[str, List[Any]] = {
|
ahit_option_groups: Dict[str, List[Any]] = {
|
||||||
@@ -769,4 +788,6 @@ slot_data_options: List[str] = [
|
|||||||
"MaxPonCost",
|
"MaxPonCost",
|
||||||
|
|
||||||
"death_link",
|
"death_link",
|
||||||
|
"death_link_amnesty",
|
||||||
|
"dw_death_link_amnesty",
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user