-
Notifications
You must be signed in to change notification settings - Fork 467
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
[Time Saver Enhancement] Nighttime GS Always Spawn #2611
[Time Saver Enhancement] Nighttime GS Always Spawn #2611
Conversation
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.
Is this confirmed to be working in scenes that don’t let time pass? Eg child kak or adult zora’s domain?
(I had made the assumption early on this was going to be annoying because I figured some GS were baked into the scene commands)
You are right, it doesn't work in those areas. I didn't think about that being different |
Add onSceneSpawnActors hook and spawn Gold Skulltulas during day
Copying my description from the merged PR: "This PR adds a new With this hook we can then do various things like spawning "extra" actors. I've added an implementation of this hook for the "Night time GS always spawn" enhancement that will spawn Gold Skulltulas into the Day scene equivalent that are missing. There where 5 unique scenes (7 instances including different ages), with 12 unique GS actors overall that need to be spawned to make this enhancement work for all GS in the game. I ripped the position/rotation/params values from the Night scene spawn actor list." |
Handle the kak tree skull during the day
soh/soh/Enhancements/mods.cpp
Outdated
if (IS_DAY && dayTimeGS.forChild == LINK_IS_CHILD && | ||
dayTimeGS.scene == gPlayState->sceneNum && | ||
dayTimeGS.room == gPlayState->roomCtx.curRoom.num) { | ||
for (const auto actorEntry : dayTimeGS.actorEntries) { |
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.
Sorry, the important part was actually the &, not the const! Making them auto&
refs instead of auto
copies will potentially save performance by not copying the skulltula struct or actor list in every iteration of the for loops. I only mention it since it looks like you've got a merge conflict to take care of anyway.
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.
I read it too fast and missed the &, that's definitely my bad. Should be fixed now, as well as the merge conflicts
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.
This looks great! Once the merge conflicts are resolved it should be good to go!
Co-authored-by: Adam Bird <Archez@users.noreply.github.com>
Should be good now! |
Title pretty much explains it, but adds a checkbox in Time Savers to make the Gold Skulltulas that only spawn at night, spawn all the time. This speeds up things, since you no longer have to wait until night or rely on Suns Song to get them. Especially useful for Tokensanity.
Build Artifacts