MCPcopy Create free account
hub / github.com/TurningWheel/Barony / floorMagicParticleSetUID

Function floorMagicParticleSetUID

src/magic/actmagic.cpp:10540–10555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10538}
10539
10540void floorMagicParticleSetUID(Entity& fx, bool noupdate)
10541{
10542 Sint32 val = (1 << 31);
10543 val |= (Uint8)(noupdate ? 21 : 20);
10544 val |= (((Uint16)(0) & 0xFFF) << 8);
10545 if ( fx.actfloorMagicType == ParticleTimerEffect_t::EFFECT_ROOTS_PATH
10546 || fx.actfloorMagicType == ParticleTimerEffect_t::EFFECT_ROOTS_SELF
10547 || fx.actfloorMagicType == ParticleTimerEffect_t::EFFECT_ROOTS_SELF_SUSTAIN
10548 || fx.actfloorMagicType == ParticleTimerEffect_t::EFFECT_ROOTS_TILE )
10549 {
10550 val |= (((Uint16)(fx.skill[0]) & 0xFFF) << 8);
10551 }
10552
10553 val |= (Uint8)(fx.actfloorMagicType & 0xFF) << 20;
10554 fx.skill[2] = val;
10555}
10556
10557Entity* floorMagicCreateRoots(real_t x, real_t y, Entity* caster, int damage, int spellID, int duration, int particleTimerAction)
10558{

Callers 1

actParticleTimerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected