-
Notifications
You must be signed in to change notification settings - Fork 38
zNPCSpawner WIP #407
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
zNPCSpawner WIP #407
Conversation
… and StatforNPC. Also have outline for ClearActive in comments.
…d en_SM_NOTICES to zNPCTypeCommon to avoid recursive include.
…Spawner instead of transitively via zNPCTypeCommon.
SquareMan
left a comment
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.
LGTM. Welcome Aboard!
Left a few nits on some stuff since some of it is still very "decompiler-esque" but not gonna block merging since this code is all very WIP still anyways.
| do | ||
| { | ||
| temp_r29 = var_r30->npc_owner; | ||
| if (((zNPCCommon*)var_r30->npc_owner != NULL) && ((s32)temp_r29->flg_vuln == 1)) | ||
| { | ||
| XOrdAppend(&this->pendlist, (void*)temp_r29); | ||
| temp_r29->flg_vuln = 2; | ||
| } | ||
| var_r28 += 1; | ||
| var_r30 += 0xC; | ||
| } while (var_r28 < 0x10); | ||
| return &this->actvlist; |
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 is probably some sort of for loop over an array, with var_r29 and var_r30 being compiler generated variables related to indexing an array.
| zNPCCommon* temp_r0_2; | ||
| zNPCCommon* temp_r0_3; | ||
| zNPCCommon* temp_r0_4; | ||
| zNPCCommon* temp_r0_5; | ||
| zNPCCommon* temp_r0_6; | ||
| zNPCCommon* temp_r0_7; | ||
| zNPCCommon* temp_r0_8; |
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.
eventually all these unused variables from decompiler output should be cleaned up
Added several methods with partial code match to zNPCSpawner and some light struct edits to incorporate these.