Sarumar wrote:Can someone explain how Evasion skill works (Im sorry, I think i bother (again) you Samuel).
After played a while with and without Evasion im still unsure how it works. I like to know what is propablity that monster neart to you attack (min-max, I think it debents of monster type) and how the Evasion skill helps ?
Code: Select all
public static final int MONSTER_AGGRESSION_CHANCE_PERCENT = 15;
public static final int FLEE_FAIL_CHANCE_PERCENT = 20;
public static final int PER_SKILLPOINT_INCREASE_EVASION_FLEE_CHANCE_PERCENTAGE = 5;
public static final int PER_SKILLPOINT_INCREASE_EVASION_MONSTER_ATTACK_CHANCE_PERCENTAGE = 5;
Code: Select all
AttackPlayer = MONSTER_AGGRESSION_CHANCE_PERCENT - EvasionLevel * PER_SKILLPOINT_INCREASE_EVASION_MONSTER_ATTACK_CHANCE_PERCENTAGE
2) If you are in combat and you want to flee, the chance to flee is determined like:
Code: Select all
SuccessfulFlee = 100 - (FLEE_FAIL_CHANCE_PERCENT - EvasionLevel * PER_SKILLPOINT_INCREASE_EVASION_FLEE_CHANCE_PERCENTAGE)