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

Method isColliderDamageableByMagic

src/actgeneral.cpp:1184–1190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1182}
1183
1184bool Entity::isColliderDamageableByMagic() const
1185{
1186 if ( !isDamageableCollider() ) { return false; }
1187 auto& colliderData = EditorEntityData_t::colliderData[colliderDamageTypes];
1188 auto& colliderDmgType = EditorEntityData_t::colliderDmgTypes[colliderData.damageCalculationType];
1189 return colliderDmgType.magicAffects;
1190}
1191
1192bool Entity::isColliderAttachableToBombs() const
1193{

Callers 11

actFociGibFunction · 0.80
actGreasePuddleSpawnerFunction · 0.80
actThrownFunction · 0.80
actMagicMissileFunction · 0.80
actParticleTimerFunction · 0.80
actParticleFloorMagicFunction · 0.80
spellEffectAcidFunction · 0.80
spellEffectPoisonFunction · 0.80
spellEffectDrainSoulFunction · 0.80
applyGenericMagicDamageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected