mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-18 05:08:57 -04:00
Populate particle IDs enum with placeholders and use them everywhere
This commit is contained in:
@@ -88,7 +88,7 @@ static BOOL daLamp_Execute(lamp_class* i_this) {
|
||||
if (!i_this->mParticleInit) {
|
||||
static cXyz fire_scale(0.5f, 0.5f, 0.5f);
|
||||
|
||||
dComIfGp_particle_set(0x1ea, &i_this->mPos, NULL, &fire_scale, 0xFF, &i_this->mPa);
|
||||
dComIfGp_particle_set(dPa_name::ID_COMMON_01EA, &i_this->mPos, NULL, &fire_scale, 0xFF, &i_this->mPa);
|
||||
i_this->mParticleInit = 1;
|
||||
i_this->mParticlePower = 1.0f;
|
||||
}
|
||||
@@ -96,7 +96,7 @@ static BOOL daLamp_Execute(lamp_class* i_this) {
|
||||
if (i_this->mPa.getEmitter()) {
|
||||
cXyz whitePartPos = i_this->mPos;
|
||||
whitePartPos.y += partHeightOffset;
|
||||
dComIfGp_particle_setSimple(0x4004, &whitePartPos, 0xFF, g_whiteColor, g_whiteColor, 0);
|
||||
dComIfGp_particle_setSimple(dPa_name::ID_COMMON_4004, &whitePartPos, 0xFF, g_whiteColor, g_whiteColor, 0);
|
||||
cLib_addCalc2(&i_this->mParticlePower, cM_rndF(0.2f) + 1.0f, 0.5f, partMaxFlickerPerTick);
|
||||
} else {
|
||||
i_this->mParticlePower = 0.0f;
|
||||
|
||||
Reference in New Issue
Block a user