Added functioning filler weights

This commit is contained in:
MarioSpore
2025-11-05 19:45:50 -05:00
parent 99f0ef424f
commit 91d0423411
2 changed files with 32 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
from dataclasses import dataclass
from Options import FreeText, NumericOption, Toggle, DefaultOnToggle, Choice, TextChoice, Range, NamedRange, OptionList, \
PerGameCommonOptions, OptionSet
PerGameCommonOptions, OptionSet, OptionCounter
class StartingArea(Choice):
"""
@@ -93,6 +93,18 @@ class TrapLinkOption(Toggle):
"""If a trap is sent from Grinch, traps that are compatible with other games are triggered as well. [NOT IMPLEMENTED]"""
display_name = "Trap Link"
class FillerWeight(OptionCounter):
"""
Determines how often each filler item appears in the itempool
"""
default = {
"5 Rotten Eggs": 50,
"10 Rotten Eggs": 25,
"20 Rotten Eggs": 15,
# "Fully Healed Grinch": 10,
}
display_name = "Filler Weights"
@dataclass
class GrinchOptions(PerGameCommonOptions):#DeathLinkMixin
starting_area: StartingArea
@@ -106,3 +118,4 @@ class GrinchOptions(PerGameCommonOptions):#DeathLinkMixin
unlimited_eggs: UnlimitedEggs
ring_link: RingLinkOption
trap_link: TrapLinkOption
filler_weight: FillerWeight