sirsk8aton Posted March 14, 2011 Author Share Posted March 14, 2011 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 More sharing options...
MCADAMS Posted March 14, 2011 Share Posted March 14, 2011 I'm pretty sure it is infact calculated by the "damage" bar, it just doesn't change to "defense" when you change the item type from weapon to armor/helmet/shield/. Link to comment Share on other sites More sharing options...
sirsk8aton Posted March 14, 2011 Author Share Posted March 14, 2011 That's what I thought at first, but then I looked into the code and couldn't find anything that calculated that in. Link to comment Share on other sites More sharing options...
erkro1 Posted March 14, 2011 Share Posted March 14, 2011 ```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 IfEnd Function```Are you searching for this? Link to comment Share on other sites More sharing options...
sirsk8aton Posted March 14, 2011 Author Share Posted March 14, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now