| 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() |
nothing calls this directly
no test coverage detected