Runtime
SoleValueRuntime
SoleValueRuntime.cs
/// <summary>
/// Updates the cached current value.
/// </summary>
private void UpdateCurrentValue()
{
int baseCurrentValue = mBaseValue + mValueAdd.GetValue();
int mul = mValuePercentAdd.GetValue() * mValuePercentMul.GetValue();
mCurrentValue = (baseCurrentValue * mul) / 10000;
}//Direct modification Examples include using props to recover,
//enemies attacking themselves, skill attacks, etc.
public void ModifyValue(int _modValue, bool _isMaxValue = false)
//Reference modifications, e.g. equipment, special buffs
public ModifyReference ReferenceModifyValue(StatModifyType _modifyType, int _modValue)
//Remove Reference e.g. touching equipment, end of special buffs
public void RemoveModifyReference(ModifyReference _modifyReference)SoleObjectRuntimeValueSOCommonStatRuntimeSO
Examples
Last updated