2022-12-29 00:58:03 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
class AttackCalcullator : PlayerPramCalcullator
|
|
|
|
|
{
|
2022-12-29 17:01:58 +01:00
|
|
|
|
protected override List<EquipmentTypeEnum> EQUIPMENT_TYPE => new List<EquipmentTypeEnum>(){EquipmentTypeEnum.Weapon, EquipmentTypeEnum.Ring, EquipmentTypeEnum.Necklace, EquipmentTypeEnum.Boots};
|
2022-12-29 00:58:03 +01:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
}
|