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

Function HitStatusAddDamage

OsiInterface/Functions/DamageFunctions.cpp:685–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

683 }
684
685 void HitStatusAddDamage(OsiArgumentDesc const & args)
686 {
687 auto status = HitStatusGet(args);
688 if (status == nullptr) return;
689
690 auto damageTypeStr = args[2].String;
691 auto amount = args[3].Int32;
692
693 auto damageType = EnumInfo<DamageType>::Find(damageTypeStr);
694 if (!damageType) {
695 OsiError("Not a valid DamageType: " << damageTypeStr);
696 return;
697 }
698
699 status->DamageInfo.DamageList.AddDamage(*damageType, amount);
700 }
701 }
702
703 void CustomFunctionLibrary::RegisterHitFunctions()

Callers

nothing calls this directly

Calls 2

HitStatusGetFunction · 0.85
AddDamageMethod · 0.45

Tested by

no test coverage detected