public virtual float GetPrimaryStatModifier(string statName, int currentLevel, BaseCharacter baseCharacter, ItemQuality usedItemQuality) { foreach (ItemPrimaryStatNode itemPrimaryStatNode in primaryStats) { if (statName == itemPrimaryStatNode.StatName) { if (itemPrimaryStatNode.UseManualValue) { return(itemPrimaryStatNode.ManualModifierValue); } return((int)Mathf.Ceil(Mathf.Clamp( (float)GetItemLevel(currentLevel) * (LevelEquations.GetPrimaryStatForLevel(statName, currentLevel, baseCharacter, systemConfigurationManager) * (GetItemQualityNumber(usedItemQuality) - 1f)) * ((EquipmentSlotType.StatWeight * EquipmentSlotType.GetCompatibleSlotProfiles()[0].StatWeight) / GetTotalSlotWeights()), 0f, Mathf.Infinity ))); } } return(0f); }
public override string GetSummary(ItemQuality usedItemQuality) { //return base.GetSummary(usedItemQuality) + string.Format("\n<color=green>Use: Equip</color>"); return(base.GetSummary(usedItemQuality) + string.Format("\n{0} slots", slots)); }
public override string GetSummary(ItemQuality usedItemQuality) { //Debug.Log(DisplayName + ".CastableItem.GetSummary()"); return(base.GetSummary(usedItemQuality) + GetCastableInformation() + GetCooldownString()); }