/// <summary> /// 增加最大血量 /// </summary> public virtual void AddMaxHp(int num) { maxHp += num; hp += num; Actions.Add(MaxHpChangeAction.GetAction(this.ID, num)); }
/// <summary> /// 减少最大血量 /// </summary> public virtual void DeductMaxHp(int num) { maxHp -= num; if (hp > maxHp) { hp = maxHp; } Actions.Add(MaxHpChangeAction.GetAction(this.ID, -num)); }