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

Function radiusMagicSetUID

src/magic/actmagic.cpp:19626–19637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19624}
19625
19626void radiusMagicSetUID(Entity& fx, bool noupdate)
19627{
19628 Sint32 val = (1 << 31);
19629 if ( noupdate )
19630 {
19631 val |= (1 << 30);
19632 }
19633 val |= (Uint8)(24);
19634 val |= (((Uint16)(fx.actRadiusMagicID) & 0xFFF) << 8);
19635 val |= (((Uint8)(fx.actRadiusMagicDist) & 0xFF) << 20);
19636 fx.skill[2] = val;
19637}
19638
19639Entity* createRadiusMagic(int spellID, Entity* caster, real_t x, real_t y, real_t radius, Uint32 lifetime, Entity* follow)
19640{

Callers 1

createRadiusMagicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected