33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
|
|
class AttackCalcullator : PlayerPramCalcullator
|
|
{
|
|
protected override List<EquipmentTypeEnum> EQUIPMENT_TYPE => new List<EquipmentTypeEnum>(){EquipmentTypeEnum.Weapon, EquipmentTypeEnum.Ring, EquipmentTypeEnum.Necklace, EquipmentTypeEnum.Boots};
|
|
|
|
protected override ItemBonusEnum BONUS_TYPE => ItemBonusEnum.Strenght;
|
|
|
|
|
|
protected override float Pattern(int itemValue, int SkillPoints, int BonusSum)
|
|
{
|
|
return (1 + (2*SkillPoints + BonusSum) / 10f) + itemValue;
|
|
}
|
|
|
|
protected override float WithoutItemPattern(int SkillPoints, int BonusSum)
|
|
{
|
|
return (0.7f + (SkillPoints + BonusSum) / 8f);
|
|
}
|
|
|
|
public override int GetSkillPoints()
|
|
{
|
|
return PlayerPrefs.HasKey(SkillsPointsManger.PLAYER_SKILS_STRENGHT_POINTS)
|
|
? PlayerPrefs.GetInt(SkillsPointsManger.PLAYER_SKILS_STRENGHT_POINTS)
|
|
: 0
|
|
;
|
|
}
|
|
}
|