public static int CalculateObjectXP(GameObject target)
{
if(target!=null)
{
Combatant combatant = GamingIsLove.ORKFramework.ORKComponentHelper.GetCombatant(target);
return GetCombatantXP(combatant);
}
else
Debug.LogError("target not found GetObjectXP()");
return 0;
}
It looks like you're new here. If you want to get involved, click one of these buttons!
In any case, keep in mind that the battle's gains (loot/exp) is depending on your gains collection settings, either the default ones defined in Battles > Battle End or your used battle system overriding those settings.
When not using Collect Immediately, those gains are kept in the system until they're collected via the Collect Battle Gains node in a schematic.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!