public float GetItemBonus(GameAttributeF attributeF, int attributeKey) { return(this.Loaded ? this.GetEquippedItems().Sum(item => item.Attributes[attributeF, attributeKey]) : 0.0f); }
public float this[GameAttributeF attribute] { get { return(GetAttributeValue(attribute, null).ValueF); } set { SetAttributeValue(attribute, null, new GameAttributeValue(value)); } }
public float this[GameAttributeF attribute, int key] { get { return(GetAttributeValue(attribute, key).ValueF); } set { SetAttributeValue(attribute, key, new GameAttributeValue(value)); } }
public float _RawGetAttribute(GameAttributeF attribute, int?key) { return(RawGetAttributeValue(attribute, key).ValueF); }