Sign in to follow this  
nekoexmachina

On the armor bonuses

Recommended Posts

Wiki has still outdated information on that.

Spoiler



 public static float getArmourModFor(Item armour) {
        float toReturn = 0.0F;
        if(armour != null) {
            int armourType = armour.getArmourType();
            if(armourType > -1) {
                switch(armourType) {
                case 1:
                    toReturn = 0.4F;
                    break;
                case 2:
                    toReturn = 0.45F;
                    break;
                case 3:
                    toReturn = 0.5F;
                    if(armour.getMaterial() == 9) {
                        toReturn += 0.02F;
                    }
                    break;
                case 4:
                    toReturn = 0.65F;
                    break;
                case 5:
                    toReturn = 0.5F;
                    if(armour.getMaterial() == 9) {
                        toReturn += 0.02F;
                    }
                    break;
                case 6:
                    toReturn = 0.35F;
                    break;
                case 7:
                    toReturn = 0.45F;
                    break;
                case 8:
                    toReturn = 0.55F;
                    break;
                case 9:
                    toReturn = 0.65F;
                    break;
                case 10:
                    toReturn = 0.7F;
                    break;
                default:
                    toReturn = 0.0F;
                }

                if(armour.getMaterial() != 57 && armour.getMaterial() != 67) {
                    if(armour.getMaterial() == 56) {
                        toReturn += 0.05F;
                    }
                } else {
                    toReturn += 0.1F;
                }

                toReturn *= 1.0F + getRarityArmourBonus(armour.getRarity());
                toReturn = 0.05F + (float)((double)toReturn * Server.getBuffedQualityEffect((double)(armour.getCurrentQualityLevel() / 100.0F)));
            }
        }

        return 1.0F - toReturn;
    }


 

 

 

Material 9 is steel. Steel is 2% better chain armour then iron/bronze/copper. 

 

Also, what is Ring armour (armour id 5)?

  • Like 1

Share this post


Link to post
Share on other sites

Hi Nekoexmachina, 

 

I am responding today not in regards to the Wurm Unlimited part of this topic because I don't play Wurm Unlimtied. However, I would like to comment on the side of the wiki. 

 

The thing about Wurm Unlimited and the Wurmpedia is that no one knows for sure if the two codes are 100% the same in every aspect, therefor, when making changes to the wiki we have to base information off data gathered in Wurm Online, either by actually testing it in game or on a rare chance a dev will confirm it with the Wurm Online code. Although it would make my job a lot easier, we cannot base information off data mined information from the Wurm Unlimited code. 

 

To mitigated that, you can of course make your own player made Wurm Unlimited wikipedia. However, you would have to follow the fan made site policy guidelines.  

 

If you have any questions, please feel free to post them below.

 

--Zachariah

Edited by Zachariah

Share this post


Link to post
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
Sign in to follow this