Functioning but working trap weights. Not removing singular traps when disabled.

This commit is contained in:
MarioSpore
2025-11-05 20:17:13 -05:00
parent ac9ac2c075
commit 9f41615e38
2 changed files with 47 additions and 5 deletions

View File

@@ -105,6 +105,26 @@ class FillerWeight(OptionCounter):
}
display_name = "Filler Weights"
class TrapPercentage(Range):
"""
Set a percentage of how many filler items are replaced with traps here.
"""
display_name = "Trap Percentage"
range_start = 0
range_end = 100
default = 10
class PerTrapWeight(OptionCounter):
"""
Determines how often each filler item appears in the itempool
"""
display_name = "Enabled Traps with Weight"
default = {
"Depletion Trap": 10,
"Dump it to Crumpit": 5,
"Who sent me back?": 10,
}
@dataclass
class GrinchOptions(PerGameCommonOptions):#DeathLinkMixin
starting_area: StartingArea
@@ -119,3 +139,5 @@ class GrinchOptions(PerGameCommonOptions):#DeathLinkMixin
ring_link: RingLinkOption
trap_link: TrapLinkOption
filler_weight: FillerWeight
trap_weight: PerTrapWeight
trap_percentage: TrapPercentage