Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Armor Rating


sirsk8aton
 Share

Recommended Posts

Is there actually any armor rating that is calculated in how much damage you receive? I know agility helps lower damage, but the way it looks to me there is no actual armor rating for armors. I tried messing with the "damage" scroll bar tons and it never makes a difference. I also looked into modCombat and couldn't find any armor calculated into the damage. Although, I could be wrong because I'm not very good with the source ;)
Link to comment
Share on other sites

```
Function GetPlayerProtection(ByVal index As Long) As Long
    Dim Armor As Long
    Dim Helm As Long
    GetPlayerProtection = 0

    ' Check for subscript out of range
    If IsPlaying(index) = False Or index <= 0 Or index > Player_HighIndex Then
        Exit Function
    End If

    Armor = GetPlayerEquipment(index, Armor)
    Helm = GetPlayerEquipment(index, Helmet)
    GetPlayerProtection = (GetPlayerStat(index, Stats.Endurance) \ 5)

    If Armor > 0 Then
        GetPlayerProtection = GetPlayerProtection + Item(Armor).Data2
    End If

    If Helm > 0 Then
        GetPlayerProtection = GetPlayerProtection + Item(Helm).Data2
    End If

End Function
```
Are you searching for this?
Link to comment
Share on other sites

Yes! I have found that already while snoopin through the source. It just seems weird to me when I set the "damage" to 200 and doesn't even make a difference. I could test it a bit more, mess around with it and see what happens. Thanks for the reply though.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...