Combat: Difference between revisions

From Idle Clans wiki
m (fixed inaccuracy with respawn timer claiming "one second" while including it can be lowered with perks and potions while linking text to such perk and potion)
(only hit chance formula marked as outdated)
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:


Combat is an activity where you kill animals or monsters that can drop loot.  
Combat is an activity where you kill animals or [[Monsters|monsters]] that can drop loot.  


The player and enemy automatically attacks when their attack meter fills then it will reset.  
The player and enemy automatically attacks when their attack meter fills (determined by the weapon's attack interval) then it will reset.  


After the enemy is killed they have a chance to drop loot and will start a fixed 2 seconds timer which can be shortened with [[Clan#Clan Upgrades|clan perks]] and [[Potion of resurrection|potions]], before respawning.  
After the enemy is killed they have a chance to drop loot and will start a fixed 2 seconds timer which can be shortened with [[Clan#Clan Upgrades|clan perks]] and [[Potion of resurrection|potions]], before respawning.  


The player can eat to regain lost health, but if the player loses all of their health they will lose any unclaimed loot from the enemies and will be removed from combat.  
The player can eat to regain lost [[File:Health.png|frameless|24x24px]] '''Health''', but if the player loses all of their [[File:Health.png|frameless|24x24px]] '''Health''' they will lose any unclaimed loot from the enemies and will be removed from combat.  


==Combat Styles==
==Combat Styles==


For melee combat, the Attack skill is used to determine your melee hit chance, and the Strength skill is used to determine your melee max hit.
For melee combat, the [[File:Rigour.png|frameless|24x24px]] '''Attack''' skill is used to determine your melee hit chance, and the [[File:Strength.png|frameless|24x24px]] '''Strength''' skill is used to determine your melee max hit.


For archery combat, the Archery skill is used to determine both archery hit chance and archery max hit.
For archery combat, the [[File:Archery.png|frameless|24x24px]] '''Archery''' skill is used to determine both archery hit chance and archery max hit.


For magic combat, the Magic skill is used to determine both magic hit chance and magic max hit.
For magic combat, the [[File:Magic.png|frameless|24x24px]] '''Magic''' skill is used to determine both magic hit chance and magic max hit.


Based on what combat style is used by the attacker, the defender uses different stats to calculate their defence.
Based on what combat style is <u>used by the attacker</u>, the defender uses different stats to calculate their [[File:Defence.png|frameless|24x24px]] '''Defence'''.


==Hit Chance==
==Hit Chance==
<span style="
padding: 0.5em;
margin: 0.5em 0;
overflow: hidden;
background-position: 4px 2px;
background-repeat: no-repeat;
border: 1px solid #DDD;
    border-color: #cc9933;
background-color: #F0F0E7;
padding-left: 32px;
min-height: 50px;">The Formula presented here is no longer acurate!</span>


Hit Chance is calculated as a contest between the attacker's augmented accuracy and the defender's augmented defence. These augmented stats are calculated as (stat + 64) * (level + 8) / 10. The result is truncated, so all digits after the decimal point are lost.
Hit Chance is calculated as a contest between the attacker's augmented accuracy and the defender's augmented defence. These augmented stats are calculated as (stat + 64) * (level + 8) / 10. The result is truncated, so all digits after the decimal point are lost.


For example, consider a player fighting vampires with a scimitar.
For example, consider a player fighting a [[File:Vampire.png|frameless|24x24px]] '''[[Vampire]]''' with a [[File:Godlike scimitar.png|frameless|24x24px]] '''[[Godlike scimitar]]'''.


The player has 100 melee accuracy and level 90 Attack; which gives them an augmented melee accuracy of (100 + 64) * (90 + 8) / 10 = 1607
The player has 78 melee accuracy and level 90 [[File:Rigour.png|frameless|24x24px]] '''Attack'''; which gives them an augmented melee accuracy of (78 + 64) * (90 + 8) / 10 = '''1391.6'''.


Vampires have 72 melee defence and level 66 defence; which gives them an augmented defence of (72 + 64) * (66 + 8) / 10 = 1006
Vampires have 72 melee defence and level 66 [[File:Defence.png|frameless|24x24px]] '''Defence'''; which gives them an augmented defence of (72 + 64) * (66 + 8) / 10 = '''1006'''.


Vampires have a weakness to slash weapons, so the player using a scimitar reduces the vampires' augmented defence by 20%; reducing it to 1006 * (1 - 20%) = 804.8
Vampires have a weakness to slash weapons, so the player using a scimitar reduces the vampires' augmented defence by 20%; reducing it to 1006 * (1 - 20%) = 804.8


The base chance to hit is calculated based on which of the two is bigger.
The base chance to hit is calculated based on which of the two is larger.
If ACC <  DEF; base hit chance = (ACC - 1) / (2 * DEF)
 
If ACC >= DEF; base hit chance = 1 - (DEF + 1) / (2 * ACC)
If ACC <  DEF; base hit chance = (ACC - 1) / (2 * DEF). If ACC >= DEF; base hit chance = 1 - (DEF + 1) / (2 * ACC)


In the example, the base hit chance = 1 - (804.8 + 1) / (2 * 1607) = 74%. This percentage is truncated again.
In the example, since accuracy is greater than defence, the base hit chance = 1 - (804.8 + 1) / (2 * 1391.6) = 71%. This percentage is truncated again.


Accuracy related effects are applied at this point, so if the player has a 12% Attack enchantment boost, and is using a Potion of Pure Power giving a 20% boost to accuracy; the total hit chance becomes 74% * (1 + 12% + 20%) = 97%
Accuracy related effects are applied at this point, so if the player has a 12% '''[[Boosts|Attack enchantment boost]]''', and is using a [[File:Potion of pure power.png|frameless|24x24px]] '''[[Potion of pure power|Potion of Pure Power]]''' giving a 20% boost to accuracy; the total hit chance becomes 71% * (1 + 12% + 20%) = 94%


For enemies, the hit chance is reduced by your defence enchantment. This is done correctly on the server, but on the client, this boost is applied to the augmented defence too. This means that '''the displayed enemy hit chance is lower than the actual hit chance'''.


==Damage==
==Damage==
Line 44: Line 55:
When something hits an attack, it deals damage randomly between 0 and their max hit. This includes both ends, so '''you can hit and still do 0 damage'''.
When something hits an attack, it deals damage randomly between 0 and their max hit. This includes both ends, so '''you can hit and still do 0 damage'''.


Max Hit is calculated as (stat/8 + level + 13 + stat*level/64) / 10.
Max hit is calculated as (stat/8 + level + 13 + stat*level/64) / 10.


So if a player has 96 melee strength and level 90 Strength; they will have a max hit of (96/8 + 90 + 13 + 96*90/64) / 10 = 25
So if a player has 96 melee strength and level 90 [[File:Strength.png|frameless|24x24px]] '''Strength'''; they will have a max hit of (96/8 + 90 + 13 + 96*90/64) / 10 = 25


This number is then boosted by enemy weakness, enchantment boosts, and potions. If the player for example;
This number is then boosted by enemy weakness, enchantment boosts, and potions. If the player for example;


* has a matching type, giving a 20% boost,
* has a matching type, giving a 20% boost,
* has full strength enchanted golden jewelry, giving a 12% boost, and
* has full '''[[Rare enchantment scroll (strength)|strength enchanted golden jewelry]]''', giving a 12% boost, and
* is using a Potion of Pure Power, giving a 20% boost,
* is using a [[File:Potion of pure power.png|frameless|24x24px]] '''[[Potion of pure power|Potion of Pure Power]]''', giving a 20% boost,


the final max hit becomes 25 * (1+ 20% + 12% + 20%) = 38
the final max hit becomes 25 * (1+ 20% + 12% + 20%) = 38


If you are using one of the special weapons from [[File:Raids.png|24px|Reckoning of the Gods]][[Reckoning of the Gods]] the 30% bonus is applied multiplicatively with other boni. The final max hit becomes the base value multiplied by (1+ all normal boosts) like enchantments, weakness and potions and then multiplied by 1.3 when using a special weapon under the conditions specified by it.


==Evasion==
==Evasion==


Your chance to dodge is the first thing processed when an enemy hits you. Let's consider a scenario where you have a 20% dodge chance and the enemy has a 75% chance to hit you. First, your odds to dodge are rolled. If you land within that 20%, you take 0 damage. If it fails, the rest of the enemy's damage calculations will be ran and you'll have a 25% chance to be hit a 0.
Your chance to [[File:Upgrade combat dodge.png|frameless|24x24px]] [[Ninja|'''dodge''']] is the first thing processed when an enemy hits you. Let's consider a scenario where you have a 20% dodge chance and the enemy has a 75% chance to hit you. First, your odds to dodge are rolled. If you land within that 20%, you take 0 damage. If it fails, the rest of the enemy's damage calculations will be ran and you'll have a 25% chance to be hit a 0.
{| class="wikitable"
{| class="wikitable"
![[Combat#Top|Back to top]]
![[Combat#Top|Back to top]]
|}
|}

Latest revision as of 15:45, 19 September 2024

Combat is an activity where you kill animals or monsters that can drop loot.

The player and enemy automatically attacks when their attack meter fills (determined by the weapon's attack interval) then it will reset.

After the enemy is killed they have a chance to drop loot and will start a fixed 2 seconds timer which can be shortened with clan perks and potions, before respawning.

The player can eat to regain lost Health.png Health, but if the player loses all of their Health.png Health they will lose any unclaimed loot from the enemies and will be removed from combat.

Combat Styles

For melee combat, the Rigour.png Attack skill is used to determine your melee hit chance, and the Strength.png Strength skill is used to determine your melee max hit.

For archery combat, the Archery.png Archery skill is used to determine both archery hit chance and archery max hit.

For magic combat, the Magic.png Magic skill is used to determine both magic hit chance and magic max hit.

Based on what combat style is used by the attacker, the defender uses different stats to calculate their Defence.png Defence.

Hit Chance

The Formula presented here is no longer acurate!


Hit Chance is calculated as a contest between the attacker's augmented accuracy and the defender's augmented defence. These augmented stats are calculated as (stat + 64) * (level + 8) / 10. The result is truncated, so all digits after the decimal point are lost.

For example, consider a player fighting a Vampire.png Vampire with a Godlike scimitar.png Godlike scimitar.

The player has 78 melee accuracy and level 90 Rigour.png Attack; which gives them an augmented melee accuracy of (78 + 64) * (90 + 8) / 10 = 1391.6.

Vampires have 72 melee defence and level 66 Defence.png Defence; which gives them an augmented defence of (72 + 64) * (66 + 8) / 10 = 1006.

Vampires have a weakness to slash weapons, so the player using a scimitar reduces the vampires' augmented defence by 20%; reducing it to 1006 * (1 - 20%) = 804.8

The base chance to hit is calculated based on which of the two is larger.

If ACC < DEF; base hit chance = (ACC - 1) / (2 * DEF). If ACC >= DEF; base hit chance = 1 - (DEF + 1) / (2 * ACC)

In the example, since accuracy is greater than defence, the base hit chance = 1 - (804.8 + 1) / (2 * 1391.6) = 71%. This percentage is truncated again.

Accuracy related effects are applied at this point, so if the player has a 12% Attack enchantment boost, and is using a Potion of pure power.png Potion of Pure Power giving a 20% boost to accuracy; the total hit chance becomes 71% * (1 + 12% + 20%) = 94%


Damage

When something hits an attack, it deals damage randomly between 0 and their max hit. This includes both ends, so you can hit and still do 0 damage.

Max hit is calculated as (stat/8 + level + 13 + stat*level/64) / 10.

So if a player has 96 melee strength and level 90 Strength.png Strength; they will have a max hit of (96/8 + 90 + 13 + 96*90/64) / 10 = 25

This number is then boosted by enemy weakness, enchantment boosts, and potions. If the player for example;

the final max hit becomes 25 * (1+ 20% + 12% + 20%) = 38

If you are using one of the special weapons from Reckoning of the GodsReckoning of the Gods the 30% bonus is applied multiplicatively with other boni. The final max hit becomes the base value multiplied by (1+ all normal boosts) like enchantments, weakness and potions and then multiplied by 1.3 when using a special weapon under the conditions specified by it.

Evasion

Your chance to Upgrade combat dodge.png dodge is the first thing processed when an enemy hits you. Let's consider a scenario where you have a 20% dodge chance and the enemy has a 75% chance to hit you. First, your odds to dodge are rolled. If you land within that 20%, you take 0 damage. If it fails, the rest of the enemy's damage calculations will be ran and you'll have a 25% chance to be hit a 0.

Back to top