MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / CheckForRequiredObjects

Function CheckForRequiredObjects

TombEngine/Objects/Effects/Boss.cpp:283–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281 }
282
283 void CheckForRequiredObjects(ItemInfo& item)
284 {
285 short flags = 0;
286
287 if (item.ObjectNumber == ID_PUNA_BOSS && Objects[ID_LIZARD].loaded)
288 flags |= (short)BossFlagValue::Lizard;
289
290 // The following are only for aesthetics.
291
292 if (Objects[ID_BOSS_EXPLOSION_SHOCKWAVE].loaded)
293 flags |= (short)BossFlagValue::ShockwaveExplosion;
294
295 if (Objects[ID_BOSS_SHIELD].loaded)
296 flags |= (short)BossFlagValue::Shield;
297
298 item.SetFlagField((int)BossItemFlags::Object, flags);
299 }
300
301 // NOTE: Used by player's FireWeapon() and only if ID_BOSS_SHIELD is loaded.
302 void SpawnShieldAndRichochetSparks(const ItemInfo& item, const Vector3& pos, const Vector4& color)

Callers 3

InitializeSophiaLeighFunction · 0.85
InitializeTonyFunction · 0.85
InitializePunaFunction · 0.85

Calls 1

SetFlagFieldMethod · 0.80

Tested by

no test coverage detected