MCPcopy Create free account
hub / github.com/Norbyte/ositools / HitStatusGet

Function HitStatusGet

OsiInterface/Functions/DamageFunctions.cpp:614–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

612 esv::Status * GetStatusHelper(OsiArgumentDesc const & args);
613
614 esv::StatusHit * HitStatusGet(OsiArgumentDesc const & args)
615 {
616 auto statusHandle = args[1].Int64;
617
618 auto status = GetStatusHelper(args);
619 if (status == nullptr) {
620 OsiError("No status found with this handle: " << statusHandle);
621 return nullptr;
622 }
623
624 if (status->GetStatusId() != StatusType::Hit) {
625 OsiError("Status with handle " << statusHandle << " is not a HIT!");
626 return nullptr;
627 }
628
629 return static_cast<esv::StatusHit *>(status);
630 }
631
632 void HitStatusClearAllDamage(OsiArgumentDesc const & args)
633 {

Callers 4

HitStatusClearAllDamageFunction · 0.85
HitStatusClearDamageFunction · 0.85
HitStatusGetDamageFunction · 0.85
HitStatusAddDamageFunction · 0.85

Calls 1

GetStatusHelperFunction · 0.85

Tested by

no test coverage detected