Fix certain settings not being set properly on the weighted settings page.
This commit is contained in:
parent
761f798f39
commit
5f4a1636aa
|
@ -215,7 +215,9 @@ const buildUI = (settings, spriteData) => {
|
||||||
|
|
||||||
const spriteOptionsDescription = document.createElement('span');
|
const spriteOptionsDescription = document.createElement('span');
|
||||||
spriteOptionsDescription.className = 'description-span';
|
spriteOptionsDescription.className = 'description-span';
|
||||||
spriteOptionsDescription.innerText = "Choose an alternate sprite to play the game with.";
|
spriteOptionsDescription.innerHTML = 'Choose an alternate sprite to play the game with. Additional randomization ' +
|
||||||
|
'options are documented in the ' +
|
||||||
|
'<a href="https://github.com/Berserker66/MultiWorld-Utilities/blob/main/playerSettings.yaml#L374">settings file</a>.';
|
||||||
spriteOptionsWrapper.appendChild(spriteOptionsDescription);
|
spriteOptionsWrapper.appendChild(spriteOptionsDescription);
|
||||||
|
|
||||||
const spriteOptionsTable = document.createElement('table');
|
const spriteOptionsTable = document.createElement('table');
|
||||||
|
|
|
@ -72,6 +72,26 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"restrict_dungeon_item_on_boss": {
|
||||||
|
"keyString": "restrict_dungeon_item_on_boss",
|
||||||
|
"friendlyName": "Dungeon Item on Boss",
|
||||||
|
"description": "Defeating a dungeon bosses always awards a dungeon item.",
|
||||||
|
"inputType": "range",
|
||||||
|
"subOptions": {
|
||||||
|
"on": {
|
||||||
|
"keyString": "restrict_dungeon_item_on_boss.on",
|
||||||
|
"friendlyName": "On",
|
||||||
|
"description": "Dungeon bosses will always drop a dungeon item.",
|
||||||
|
"defaultValue": 0
|
||||||
|
},
|
||||||
|
"off": {
|
||||||
|
"keyString": "restrict_dungeon_item_on_boss.off",
|
||||||
|
"friendlyName": "Off",
|
||||||
|
"description": "Dungeon bosses may not drop a dungeon item.",
|
||||||
|
"defaultValue": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"map_shuffle": {
|
"map_shuffle": {
|
||||||
"keyString": "map_shuffle",
|
"keyString": "map_shuffle",
|
||||||
"friendlyName": "Map Shuffle",
|
"friendlyName": "Map Shuffle",
|
||||||
|
|
|
@ -225,8 +225,8 @@ beemizer: # Remove items from the global item pool and replace them with single
|
||||||
### Shop Settings ###
|
### Shop Settings ###
|
||||||
shop_shuffle_slots: # Maximum amount of shop slots to be filled with regular item pool items (such as Moon Pearl)
|
shop_shuffle_slots: # Maximum amount of shop slots to be filled with regular item pool items (such as Moon Pearl)
|
||||||
0: 50
|
0: 50
|
||||||
5: 0
|
10: 0
|
||||||
15: 0
|
20: 0
|
||||||
30: 0
|
30: 0
|
||||||
shop_shuffle:
|
shop_shuffle:
|
||||||
none: 50
|
none: 50
|
||||||
|
@ -339,34 +339,6 @@ debug: # Only available if the host uses the doors branch, it is ignored otherwi
|
||||||
off: 50
|
off: 50
|
||||||
### end of door rando only options ###
|
### end of door rando only options ###
|
||||||
rom:
|
rom:
|
||||||
random_sprite_on_event: # An alternative to specifying randomonhit / randomonexit / etc... in sprite down below.
|
|
||||||
enabled: # If enabled, sprite down below is ignored completely, (although it may become the sprite pool)
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
on_hit: # Random sprite on hit. Being hit by things that cause 0 damage still counts.
|
|
||||||
on: 1
|
|
||||||
off: 0
|
|
||||||
on_enter: # Random sprite on underworld entry. Note that entering hobo counts.
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
on_exit: # Random sprite on underworld exit. Exiting hobo does not count.
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
on_slash: # Random sprite on sword slash. Note, it still counts if you attempt to slash while swordless.
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
on_item: # Random sprite on getting an item. Anything that causes you to hold an item above your head counts.
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
on_bonk: # Random sprite on bonk.
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
on_everything: # Random sprite on ALL currently implemented events, even if not documented at present time.
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
use_weighted_sprite_pool: # Always on if no sprite_pool exists, otherwise it controls whether to use sprite as a weighted sprite pool
|
|
||||||
on: 0
|
|
||||||
off: 1
|
|
||||||
#sprite_pool: # When specified, limits the pool of sprites used for randomon-event to the specified pool. Uncomment to use this.
|
#sprite_pool: # When specified, limits the pool of sprites used for randomon-event to the specified pool. Uncomment to use this.
|
||||||
# - link
|
# - link
|
||||||
# - pride link
|
# - pride link
|
||||||
|
@ -374,14 +346,6 @@ rom:
|
||||||
# - random # You can specify random multiple times for however many potentially unique random sprites you want in your pool.
|
# - random # You can specify random multiple times for however many potentially unique random sprites you want in your pool.
|
||||||
sprite: # Enter the name of your preferred sprite and weight it appropriately
|
sprite: # Enter the name of your preferred sprite and weight it appropriately
|
||||||
random: 0
|
random: 0
|
||||||
randomonhit: 0 # Random sprite on hit
|
|
||||||
randomonenter: 0 # Random sprite on entering the underworld.
|
|
||||||
randomonexit: 0 # Random sprite on exiting the underworld.
|
|
||||||
randomonslash: 0 # Random sprite on sword slashes
|
|
||||||
randomonitem: 0 # Random sprite on getting items.
|
|
||||||
randomonbonk: 0 # Random sprite on bonk.
|
|
||||||
# You can combine these events like this. randomonhit-enter-exit if you want it on hit, enter, exit.
|
|
||||||
randomonall: 0 # Random sprite on any and all currently supported events. Refer to above for the supported events.
|
|
||||||
Link: 50 # To add other sprites: open the gui/Creator, go to adjust, select a sprite and write down the name the gui calls it
|
Link: 50 # To add other sprites: open the gui/Creator, go to adjust, select a sprite and write down the name the gui calls it
|
||||||
disablemusic: # If "on", all in-game music will be disabled
|
disablemusic: # If "on", all in-game music will be disabled
|
||||||
on: 0
|
on: 0
|
||||||
|
|
Loading…
Reference in New Issue