-
Notifications
You must be signed in to change notification settings - Fork 61
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
Conversation
ROM.cs
Outdated
{ | ||
int i = 0; | ||
for (; i < MMFileList.Count; i++) | ||
while (i < MMFileList.Count) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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?
replaced ugly filebrowser, added official gitignore (to not place packages in git)
…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.
…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.
…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
…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
…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
…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").
MMR.Yaz: Fix CS8347 for recent .NET SDK/compilers by using scoped parameters for ref struct types
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