Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 public override string GetSummary(ItemQuality usedItemQuality)
 {
     //Debug.Log(DisplayName + ".CastableItem.GetSummary()");
     return(base.GetSummary(usedItemQuality) + GetCastableInformation() + GetCooldownString());
 }