Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebHost: Fix default values that are 2 or more words in Weighted Options #3519

Merged
merged 2 commits into from
Jun 13, 2024

Conversation

NewSoupVi
Copy link
Member

The default option value for the Old Man option in Pokemon RB is "Early Parcel"

To check for the default in weightedOptions/macros.html, we compare:
option.get_option_name(option.default)|lower == name

Problem:
"Early Parcel"|lower != "early_parcel
The underscore is missing.

Alterate fixes that I considered:

  • |lower|replace(" ","_")

Things that I could do ontop of this:

  • rename name to readable_name and assign option.get_option_name(id) to a new variable called internal_name. Bc either solution makes already long lines even longer.

Lmk if either of those are better / desirable

Before:
image

After:
image

@github-actions github-actions bot added the affects: webhost Issues/PRs that touch webhost and may need additional validation. label Jun 12, 2024
@NewSoupVi NewSoupVi added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. and removed affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Jun 12, 2024
@NewSoupVi NewSoupVi requested a review from LegendaryLinux June 12, 2024 21:56
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jun 12, 2024
@NewSoupVi NewSoupVi changed the title WeightedOptions: Fix default values that are 2 or more words WebHost: Fix default values that are 2 or more words in Weighted Options Jun 12, 2024
@NewSoupVi NewSoupVi added the affects: release/blocker Issues/PRs that must be addressed before next official release. label Jun 12, 2024
@NewSoupVi NewSoupVi added the affects: webhost Issues/PRs that touch webhost and may need additional validation. label Jun 12, 2024
@LegendaryLinux LegendaryLinux self-assigned this Jun 13, 2024
@LegendaryLinux LegendaryLinux merged commit 2ae5136 into main Jun 13, 2024
19 checks passed
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
…ons (ArchipelagoMW#3519)

* WeightedOptions: Fix default values that are 2 or more words

* So much simpler
sflavelle pushed a commit to sflavelle/Archipelago-tgc that referenced this pull request Jun 20, 2024
…ons (ArchipelagoMW#3519)

* WeightedOptions: Fix default values that are 2 or more words

* So much simpler
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
…ons (ArchipelagoMW#3519)

* WeightedOptions: Fix default values that are 2 or more words

* So much simpler
AustinSumigray pushed a commit to AustinSumigray/Archipelago that referenced this pull request Jan 4, 2025
…ons (ArchipelagoMW#3519)

* WeightedOptions: Fix default values that are 2 or more words

* So much simpler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: release/blocker Issues/PRs that must be addressed before next official release. affects: webhost Issues/PRs that touch webhost and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants