Jump to content

Elin:Code Analysis/Combat: Difference between revisions

no edit summary
m (→‎Weapon Hit Mechanics: Uncovering the hidden state)
No edit summary
Line 47: Line 47:
|Feat: Ranged Mastery
|Feat: Ranged Mastery
|1, 2
|1, 2
|}
== Damage Reduction Scaling with Enemy Level ==
'''As of Beta version: 22.23. Last updated EA23.46'''
The following is how much damage reduction the enemy receives past level 50:
Firstly, enemies at or below level 50 have 0% DR.
Conversely, enemies at or above level 1024 have 80% DR. 
if (!this.IsPCFaction && this.LV > 50)
{
    CS$<>8locals1.dmg = CS$<>8locals1.dmg * (100 - (int)Mathf.Min(80f, Mathf.Sqrt((float)(this.LV - 50)) * 2.5f)) / 100;
}
If it is the player character faction and the enemy's level is higher than lvl 51, then:
your damage is multiplied by * (100 - an integer that is the smallest of either (80, the sqrt of a float (the enemies level - 50) * 2.5) / 100)
so either your damage is reduced by 80% against enemies above 1024 or its  [sqrt(floor - 50) * 2.5] / 100 for enemies between lvl 51 and lvl 1023
{| class="wikitable"
|+DR at specified levels
!Enemy Level:
!DR percentage (%)
|-
|51
|2.50
|-
|100
|17.67
|-
|150
|25.00
|-
|200
|30.61
|-
|250
|35.35
|-
|300
|39.53
|-
|350
|43.30
|-
|400
|46.77
|-
|450
|50.00
|-
|500
|53.03
|-
|550
|55.90
|-
|600
|58.63
|-
|650
|61.24
|-
|700
|63.74
|-
|750
|66.14
|-
|800
|68.47
|-
|850
|70.71
|-
|900
|72.89
|-
|950
|75
|-
|1000
|77.06
|}
|}


21

edits