MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / shouldDie

Method shouldDie

source/game/StarMonster.cpp:353–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353bool Monster::shouldDie() {
354 if (auto res = m_scriptComponent.invoke<bool>("shouldDie"))
355 return *res;
356 else if (!m_statusController->resourcePositive("health") || m_scriptComponent.error())
357 return true;
358 else
359 return false;
360}
361
362void Monster::knockout() {
363 m_knockedOut = true;

Callers

nothing calls this directly

Calls 2

resourcePositiveMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected