public SetStress ( |
||
other | ||
value | int | |
return | int |
public int SetStress(Creature other, int value)
{
value = Math.Max(0, value);
other.Vars.Perm["npc_stress_" + this.Name] = value;
other.Vars.Perm["npc_stress_change_" + this.Name] = DateTime.Now;
return value;
}