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

Method applyDamage

source/game/StarPlayer.cpp:527–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527List<DamageNotification> Player::applyDamage(DamageRequest const& request) {
528 if (!inWorld() || isDead() || m_isAdmin)
529 return {};
530
531 return m_statusController->applyDamageRequest(request);
532}
533
534List<DamageNotification> Player::selfDamageNotifications() {
535 return m_statusController->pullSelfDamageNotifications();

Callers

nothing calls this directly

Calls 1

applyDamageRequestMethod · 0.80

Tested by

no test coverage detected