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

formatting, reduce instances of CheckCompressed #2

Merged
merged 3 commits into from
Apr 30, 2019

Conversation

mzxrules
Copy link

@mzxrules mzxrules commented Apr 29, 2019

I want to do more to simplify writing to the game's internal files, but in the meantime I've added a new function called GetFileIndexForWriting that replaces all but a handful of AddrToFile into CheckCompressed calls. I also cleaned up some code and formatted some arrays

ROM.cs Outdated
{
int i = 0;
for (; i < MMFileList.Count; i++)
while (i < MMFileList.Count)
Copy link
Owner

Choose a reason for hiding this comment

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

Could this function be basically return MMFileList.FindIndex(file => RAddr => file.Addr && RAddr < file.End)

Copy link
Owner

Choose a reason for hiding this comment

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

Though actually the results would be different if the RAddr is not found. Currently it would return MMFileList.Count whereas what i said would return -1. Would that be a problem?

@ZoeyZolotova ZoeyZolotova merged commit eb7f67b into ZoeyZolotova:dev Apr 30, 2019
ZoeyZolotova pushed a commit that referenced this pull request May 9, 2019
replaced ugly filebrowser, added official gitignore (to not place packages in git)
ZoeyZolotova added a commit that referenced this pull request Sep 7, 2019
…ank blue rupee, milk bar chateau and milk, deku playground any day, honey and darling any day, kotake mushroom sale, pictograph contest standard/good photos, business scrub magic bean / green potion / blue potion purchase, zora hall stage lights, gorman bros milk purchase, gorman bros race day 3 milk, ocean spider house day 2 and 3 rewards, bad/good pictographs of Lulu. Rename item locations: Ocean Spider House Reward to Ocean Spider House Day 1 Reward; Deku Playground to Deku Playground Three Days; Honey and Darling to Honey and Darling Three Days; Pictograph Contest to Pictograph Contest Winner; Gorman Bros Race to Gorman Bros Race Day 1 or 2; Bank Reward #2 to Bank Reward #3. If shopsanity is enabled, kotake now acts as if you've already given her a mushroom, and will immediately offer to buy mushrooms from you. If skulltula tokens are randomized, the man that gives the ocean spider house reward will now only relocate downstairs after giving you a reward that cycle.
ZoeyZolotova added a commit that referenced this pull request Sep 13, 2019
…s will have top priority guaranteed hints if they contain an essential item: Great Fairy rewards, Town/Swamp Archery #2, Frog Choir, Beaver Race #2, Anju and Kafei. The following locations will have guaranteed hints if the algorithm runs out of higher priority locations: Beaver Race #1, Honey and Darling Three Days, Gossip Stones, Butler Race, Bank Reward #3. Stray Fairies and Skulltula Tokens can not be the only reason for a Way of the Hero hint, however they can prevent a region from being Foolish if they lead to a potentially useful reward. May need to tweak this in the future.
isghj5 added a commit to isghj5/mm-rando that referenced this pull request Jan 28, 2020
…n the wrong part of code but nothing works and the path forward is slow and daunting, considering prototype ZoeyZolotova#2 a failure, moving to ZoeyZolotova#3
isghj5 added a commit to isghj5/mm-rando that referenced this pull request Feb 5, 2020
…n the wrong part of code but nothing works and the path forward is slow and daunting, considering prototype ZoeyZolotova#2 a failure, moving to ZoeyZolotova#3
isghj5 added a commit to isghj5/mm-rando that referenced this pull request Feb 25, 2020
…n the wrong part of code but nothing works and the path forward is slow and daunting, considering prototype ZoeyZolotova#2 a failure, moving to ZoeyZolotova#3
ZoeyZolotova added a commit that referenced this pull request Mar 20, 2020
isghj5 added a commit to isghj5/mm-rando that referenced this pull request Apr 11, 2020
ZoeyZolotova added a commit that referenced this pull request Jun 11, 2020
…ired randomized item or song" to "must lead to a required randomized item". Reduce hint priority of Goron Race from 0 to -2 to bring it in line with some other hints. Set hint priority of Seahorses to -2. Add ability for competitive hints to be combined. When appropriate, the following locations will be combined into one hint: Aliens Defense and Cremia ("Ranch Sisters Defense"); Beaver Race #1 and Beaver Race #2 ("Beaver Races"); Town Archery #1 and Town Archery #2 ("Town Archery"); Swamp Archery #1 and Swamp Archery #2 ("Swamp Archery"); Ocean Spider House Day 1 Reward, Ocean Spider House Day 2 Reward and Ocean Spider House Day 3 Reward ("Ocean Spider House"); Deku Playground Three Days and Deku Playground Any Day ("Deku Playground"); Honey and Darling Three Days and Honey and Darling Any Day ("Honey and Darling").
ZoeyZolotova added a commit that referenced this pull request Apr 24, 2022
…s 'Kafei', 'Curiosity Shop Man #1' and 'Curiosity Shop Man #2'.
saneki pushed a commit to saneki/mm-rando that referenced this pull request Nov 21, 2022
MMR.Yaz: Fix CS8347 for recent .NET SDK/compilers by using scoped parameters for ref struct types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants