Skip to content

Commit 96d93c1

Browse files
A Short Hike: Add option to customize filler coin count (#3004)
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
1 parent ca549df commit 96d93c1

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

worlds/shorthike/Options.py

+16
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ class CostMultiplier(Range):
6161
range_end = 200
6262
default = 100
6363

64+
class FillerCoinAmount(Choice):
65+
"""The number of coins that will be in each filler coin item."""
66+
display_name = "Coins per Filler Item"
67+
option_7_coins = 0
68+
option_13_coins = 1
69+
option_15_coins = 2
70+
option_18_coins = 3
71+
option_21_coins = 4
72+
option_25_coins = 5
73+
option_27_coins = 6
74+
option_32_coins = 7
75+
option_33_coins = 8
76+
option_50_coins = 9
77+
default = 1
78+
6479
@dataclass
6580
class ShortHikeOptions(PerGameCommonOptions):
6681
start_inventory_from_pool: StartInventoryPool
@@ -71,3 +86,4 @@ class ShortHikeOptions(PerGameCommonOptions):
7186
buckets: Buckets
7287
golden_feather_progression: GoldenFeatherProgression
7388
cost_multiplier: CostMultiplier
89+
filler_coin_amount: FillerCoinAmount

worlds/shorthike/__init__.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@ class ShortHikeWorld(World):
4141

4242
required_client_version = (0, 4, 4)
4343

44-
def __init__(self, multiworld, player):
45-
super(ShortHikeWorld, self).__init__(multiworld, player)
46-
4744
def get_filler_item_name(self) -> str:
48-
return "13 Coins"
45+
return self.options.filler_coin_amount.current_option_name
4946

5047
def create_item(self, name: str) -> "ShortHikeItem":
5148
item_id: int = self.item_name_to_id[name]

0 commit comments

Comments
 (0)