A Short Hike: Add option to customize filler coin count (#3004)
Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
parent
ca549df20a
commit
96d93c1ae3
|
@ -61,6 +61,21 @@ class CostMultiplier(Range):
|
||||||
range_end = 200
|
range_end = 200
|
||||||
default = 100
|
default = 100
|
||||||
|
|
||||||
|
class FillerCoinAmount(Choice):
|
||||||
|
"""The number of coins that will be in each filler coin item."""
|
||||||
|
display_name = "Coins per Filler Item"
|
||||||
|
option_7_coins = 0
|
||||||
|
option_13_coins = 1
|
||||||
|
option_15_coins = 2
|
||||||
|
option_18_coins = 3
|
||||||
|
option_21_coins = 4
|
||||||
|
option_25_coins = 5
|
||||||
|
option_27_coins = 6
|
||||||
|
option_32_coins = 7
|
||||||
|
option_33_coins = 8
|
||||||
|
option_50_coins = 9
|
||||||
|
default = 1
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ShortHikeOptions(PerGameCommonOptions):
|
class ShortHikeOptions(PerGameCommonOptions):
|
||||||
start_inventory_from_pool: StartInventoryPool
|
start_inventory_from_pool: StartInventoryPool
|
||||||
|
@ -71,3 +86,4 @@ class ShortHikeOptions(PerGameCommonOptions):
|
||||||
buckets: Buckets
|
buckets: Buckets
|
||||||
golden_feather_progression: GoldenFeatherProgression
|
golden_feather_progression: GoldenFeatherProgression
|
||||||
cost_multiplier: CostMultiplier
|
cost_multiplier: CostMultiplier
|
||||||
|
filler_coin_amount: FillerCoinAmount
|
||||||
|
|
|
@ -41,11 +41,8 @@ class ShortHikeWorld(World):
|
||||||
|
|
||||||
required_client_version = (0, 4, 4)
|
required_client_version = (0, 4, 4)
|
||||||
|
|
||||||
def __init__(self, multiworld, player):
|
|
||||||
super(ShortHikeWorld, self).__init__(multiworld, player)
|
|
||||||
|
|
||||||
def get_filler_item_name(self) -> str:
|
def get_filler_item_name(self) -> str:
|
||||||
return "13 Coins"
|
return self.options.filler_coin_amount.current_option_name
|
||||||
|
|
||||||
def create_item(self, name: str) -> "ShortHikeItem":
|
def create_item(self, name: str) -> "ShortHikeItem":
|
||||||
item_id: int = self.item_name_to_id[name]
|
item_id: int = self.item_name_to_id[name]
|
||||||
|
|
Loading…
Reference in New Issue