public void changePropertyPer(AttributeData.AttrType type, float value) { float exist = getProperty(type); float result = Math.Max(0f, exist + value * exist * 0.01f); setProperty(type, result); }
public int getPropertyBar(AttributeData.AttrType type) { float value = getProperty(type); float limit = getOriginalProperty(type); return((int)(value / limit * 100)); }
public float getOriginalProperty(AttributeData.AttrType type) { return(attrDataOriginal.toValue(type)); }
public void resetProperty(AttributeData.AttrType type) { setProperty(type, getOriginalProperty(type)); }
public void setProperty(AttributeData.AttrType type, float value) { attrData.setAttribute(type, value); }