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

Yoshi's World: Fixed minor logic inconsistincy in Rules.py #3241

Merged
merged 2 commits into from
May 4, 2024

Conversation

Radagast81
Copy link
Contributor

As of easy logic for this goal is
logic.has_midring(state) or (state.has("Tulip", player) and logic.cansee_clouds(state))
normal logic shouldn't need any collectable as logic.cansee_clouds(state) allways evaluates to true in normal logic and therefore the hole equation is true. Normal logic shouldn't need more collectables than easy logic.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label May 1, 2024
@ScipioWright ScipioWright added the waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. label May 1, 2024
@ShinyNT
Copy link
Contributor

ShinyNT commented May 1, 2024

for the record, this won't fix the logic, as it'd expect the player get 30 stars without items, which isn't possible
there is only 16 reachable stars (5 in the cloud between pipes, 5 in the hidden cloud above the bullet bill cannons, and 6 in the cave sublevel crate), plus the starting 10 stars, a total of 26 stars

so I think logic.has_midring(state) or state.has("Tulip", player) is still needed for it to be logically correct (tulip adds 8 stars, midrings add 20)

not your fault though, current logic is still also wrong (it's just copypaste from the other rules in the level)

@ScipioWright ScipioWright added the waiting-on: author Issue/PR is waiting for feedback or changes from its author. label May 1, 2024
@Radagast81 Radagast81 marked this pull request as draft May 2, 2024 07:40
@Radagast81
Copy link
Contributor Author

You're absolutely correct @ShinyNT changed my code accordingly to your suggestions.

Copy link
Contributor

@PinkSwitch PinkSwitch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified this to be correct

@Exempt-Medic Exempt-Medic added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label May 2, 2024
@ScipioWright ScipioWright removed the waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. label May 2, 2024
Copy link
Contributor

@ShinyNT ShinyNT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now I can vouch for it too

@Exempt-Medic Exempt-Medic added waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. waiting-on: author Issue/PR is waiting for feedback or changes from its author. and removed waiting-on: author Issue/PR is waiting for feedback or changes from its author. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. labels May 2, 2024
@Exempt-Medic
Copy link
Member

I think you can mark this as no longer a draft

@Radagast81 Radagast81 marked this pull request as ready for review May 3, 2024 07:52
Radagast81 added 2 commits May 3, 2024 09:52
As of easy logic of this goal is
    set_rule(world.multiworld.get_location("GO! GO! MARIO!!: Stars", player), lambda state: logic.has_midring(state) or (state.has("Tulip", player) and logic.cansee_clouds(state)))
normal logic shouldn't need any collectable.
@Radagast81
Copy link
Contributor Author

Radagast81 commented May 3, 2024

Thank's for reviewing and approving. If you're interested in a tracker for this world please check out my little project:
https://github.com/Radagast81/yoshis-island-tracker

@Exempt-Medic Exempt-Medic added waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. and removed waiting-on: author Issue/PR is waiting for feedback or changes from its author. labels May 3, 2024
Copy link
Member

@NewSoupVi NewSoupVi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trusting the reviews & the simplicity of the change, didn't test it myself

@NewSoupVi NewSoupVi merged commit 879c340 into ArchipelagoMW:main May 4, 2024
3 checks passed
jnschurig pushed a commit to Tranquilite0/Archipelago-SoulBlazer that referenced this pull request Jun 13, 2024
…goMW#3241)

* Fixed Logic in Rules.py

As of easy logic of this goal is
    set_rule(world.multiworld.get_location("GO! GO! MARIO!!: Stars", player), lambda state: logic.has_midring(state) or (state.has("Tulip", player) and logic.cansee_clouds(state)))
normal logic shouldn't need any collectable.

* Corrected Logic Rules.py
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
…goMW#3241)

* Fixed Logic in Rules.py

As of easy logic of this goal is
    set_rule(world.multiworld.get_location("GO! GO! MARIO!!: Stars", player), lambda state: logic.has_midring(state) or (state.has("Tulip", player) and logic.cansee_clouds(state)))
normal logic shouldn't need any collectable.

* Corrected Logic Rules.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants