Decompile 6 functions in Source/Contents/Effects/EffectPrimitiveState.cpp, Source/Contents/Effects/EffectPrimitiveState.h, ...
Batch #1199 by eAthena: 0 byte-identical, 6 confirmed by peer review. - fn_19765 EffectPrimitiveState::GetColorOverride: logic confirmed by peer review - fn_19773 ShrinkEffectPrimitiveSlots: logic confirmed by peer review - fn_19774 PulseEffectPrimitiveSlots: logic confirmed by peer review - fn_19777 SpinEffectPrimitive: logic confirmed by peer review - fn_19778 RollEffectPrimitive: logic confirmed by peer review - fn_19784 AdvanceEffectPrimitive: logic confirmed by peer review Reviewed-by: ragnarok-clanker
This commit is contained in:
parent
82a645387c
commit
c6cc9dc69e
4 changed files with 319 additions and 8 deletions
|
|
@ -133,7 +133,7 @@ EffectPrimitiveState::EffectPrimitiveState(RenderObjectState& render) {
|
|||
|
||||
std::memcpy(this->matrix1, g_identityMatrix, sizeof(g_identityMatrix));
|
||||
std::memcpy(this->matrix2, g_identityMatrix, sizeof(g_identityMatrix));
|
||||
std::memset(this->unknown_03E8, 0, sizeof(this->unknown_03E8));
|
||||
std::memset(this->slots, 0, sizeof(this->slots));
|
||||
}
|
||||
|
||||
// INLINED
|
||||
|
|
@ -169,3 +169,19 @@ void EffectPrimitiveState::Initialize(
|
|||
render.position[2] = this->origin.z;
|
||||
this->unknown_013C = 0;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00BAE460
|
||||
// FUNCTION: fn_19765
|
||||
void EffectPrimitiveState::GetColorOverride(unsigned char* red, unsigned char* green, unsigned char* blue) {
|
||||
if (this->parent->unknown_11C88[0] != -1) {
|
||||
*red = static_cast<unsigned char>(this->parent->unknown_11C88[0]);
|
||||
}
|
||||
|
||||
if (this->parent->unknown_11C88[1] != -1) {
|
||||
*green = static_cast<unsigned char>(this->parent->unknown_11C88[1]);
|
||||
}
|
||||
|
||||
if (this->parent->unknown_11C88[2] != -1) {
|
||||
*blue = static_cast<unsigned char>(this->parent->unknown_11C88[2]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue