public void LevelUp() { _attributeLevel += 1; if (LevelIncrementType == LevelIncrementType.Flat) { var levelEffect = new AttributeEffect(LevelIncrement, AttributeName, AttributeEffectType.Flat, this); LevelAttributeEffects.Add(_attributeLevel, levelEffect); } else { var levelEffect = new AttributeEffect(LevelIncrement, AttributeName, AttributeEffectType.PercentMul, this); LevelAttributeEffects.Add(_attributeLevel, levelEffect); } IsDirty = true; }
private void RemoveAttributeEffect(AttributeEffect effect) { _attributeEffects.Remove(effect); IsDirty = true; }
public void AddAttributeEffect(AttributeEffect effect) { _attributeEffects.Add(effect); IsDirty = true; }