public string AddValue(int add, bool checkDeath, bool checkLevelUp, bool showText)
{
if(this.owner.CanChangeStatusValue(this.realID))
{
if(showText)
{
if(add < 0 && this.subText.active)
{
if(this.subText.IsShowNumber()) this.subText.ShowNumber(-add, this.owner);
else this.subText.ShowText((-add).ToString(), this.owner);
}
else if(add >= 0 && this.addText.active)
{
if(this.addText.IsShowNumber()) this.addText.ShowNumber(add, this.owner);
else this.addText.ShowText(add.ToString(), this.owner);
}
}
this.currentValue += add;
return this.CheckBounds(checkDeath, checkLevelUp);
}
else
{
DataHolder.BattleSystemData().blockTextSettings.ShowText("", this.owner);
return "";
}
}