| 10538 | } |
| 10539 | |
| 10540 | void 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 | |
| 10557 | Entity* floorMagicCreateRoots(real_t x, real_t y, Entity* caster, int damage, int spellID, int duration, int particleTimerAction) |
| 10558 | { |