Magic Clothing.dfn

Got any custom DFN additions/tweaks you think other people would like to see? Post 'em here!
Post Reply
Benedict
UOX3 Newbie
Posts: 11
Joined: Thu Mar 25, 2010 3:33 pm
Location: Western Cape
Has thanked: 0
Been thanked: 0

Magic Clothing.dfn

Post by Benedict »

Hello, here is a sampling of Magic Clothing.dfn, converted the whole clothing.dfn file to have a protection adding attribute in ascending degrees of comparison.

Just use your command key like so:
e.g
`add item lead_cloak - Followed by your Enter Key


==============================

My apologies on the length - Feel Free To Edit - I found adamantium to be a bit to strong

Just open a new Notepad Document, copy this in and save the file extension as .dfn

Have fun

==============================
// Protection adding Clothing

[lead_cloak]
{ left facing
get=0x1515
name=A Magic Cloak
name2=A Lead Cloak
id=0x1515
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_cloak]
{ left facing
get=0x1515
name=A Magic Cloak
name2=A Aluminum Cloak
id=0x1515
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_cloak]
{ left facing
get=0x1515
name=A Magic Cloak
name2=A Platinum Cloak
id=0x1515
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_cloak]
{ left facing
get=0x1515
name=A Magic Cloak
name2=A Steel Cloak
id=0x1515
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_cloak]
{ left facing
get=0x1515
name=A Magic Cloak
name2=A Titanium Cloak
id=0x1515
color=0x044
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_cloak]
{ left facing
get=0x1515
name=A Magic Cloak
name2=A Adamantium Cloak
id=0x1515
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_doublet]
{ left facing
get=0x1f7b
name=A Magic Doublet
name2=A Lead Doublet
id=0x1f7b
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_doublet]
{ left facing
get=0x1f7b
name=A Magic Doublet
name2=A Aluminum Doublet
id=0x1f7b
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_doublet]
{ left facing
get=0x1f7b
name=A Magic Doublet
name2=A Platinum Doublet
id=0x1f7b
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_doublet]
{ left facing
get=0x1f7b
name=A Magic Doublet
name2=A Steel Doublet
id=0x1f7b
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_doublet]
{ left facing
get=0x1f7b
name=A Magic Doublet
name2=A Titanium Doublet
id=0x1f7b
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_doublet]
{ left facing
get=0x1f7b
name=A Magic Doublet
name2=A Adamantium Doublet
id=0x1f7b
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_fancy_dress]
{ left facing
get=0x1eff
name=A Magic Fancy Dress
name2=A Lead Fancy Dress
id=0x1eff
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}


[aluminum_fancy_dress]
{ left facing
get=0x1eff
name=A Magic Fancy Dress
name2=A Aluminum Fancy Dress
id=0x1eff
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_fancy_dress]
{ left facing
get=0x1eff
name=A Magic Fancy Dress
name2=A Platinum Fancy Dress
id=0x1eff
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_fancy_dress]
{ left facing
get=0x1eff
name=A Magic Fancy Dress
name2=A Steel Fancy Dress
id=0x1eff
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_fancy_dress]
{ left facing
get=0x1eff
name=A Magic Fancy Dress
name2=A Titanium Fancy Dress
id=0x1eff
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_fancy_dress]
{ left facing
get=0x1eff
name=A Magic Fancy Dress
name2=A Adamantium Fancy Dress
id=0x1eff
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_fancy_shirt]
{ left facing
get=0x1efd
name=A Magic Fancy Shirt
name2=A Lead Fancy Shirt
id=0x1efd
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_fancy_shirt]
{ left facing
get=0x1efd
name=A Magic Fancy Shirt
name2=A Aluminum Fancy Shirt
id=0x1efd
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_fancy_shirt]
{ left facing
get=0x1efd
name=A Magic Fancy Shirt
name2=A Platinum Fancy Shirt
id=0x1efd
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_fancy_shirt]
{ left facing
get=0x1efd
name=A Magic Fancy Shirt
name2=A Steel Fancy Shirt
id=0x1efd
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_fancy_shirt]
{ left facing
get=0x1efd
name=A Magic Fancy Shirt
name2=A Titanium Fancy Shirt
id=0x1efd
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_fancy_shirt]
{ left facing
get=0x1efd
name=A Magic Fancy Shirt
name2=A Adamantium Fancy Shirt
id=0x1efd
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_full_apron]
{ left facing
get=0x153d
name=A Magic Full Apron
name2=A Lead Full Apron
id=0x153d
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_full_apron]
{ left facing
get=0x153d
name=A Magic Full Apron
name2=A Aluminum Full Apron
id=0x153d
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_full_apron]
{ left facing
get=0x153d
name=A Magic Full Apron
name2=A Platinum Full Apron
id=0x153d
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_full_apron]
{ left facing
get=0x153d
name=A Magic Full Apron
name2=A Steel Full Apron
id=0x153d
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_full_apron]
{ left facing
get=0x153d
name=A Magic Full Apron
name2=A Titanium Full Apron
id=0x153d
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_full_apron]
{ left facing
get=0x153d
name=A Magic Full Apron
name2=A Adamantium Full Apron
id=0x153d
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_half_apron]
{ left facing
get=0x153B
name=A Magic Half Apron
name2=A Lead Half Apron
id=0x153B
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_half_apron]
{ left facing
get=0x153B
name=A Magic Half Apron
name2=A Aluminum Half Apron
id=0x153B
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_half_apron]
{ left facing
get=0x153B
name=A Magic Half Apron
name2=A Platinum Half Apron
id=0x153B
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_half_apron]
{ left facing
get=0x153B
name=A Magic Half Apron
name2=A Steel Half Apron
id=0x153B
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_half_apron]
{ left facing
get=0x153B
name=A Magic Half Apron
name2=A Titanium Half Apron
id=0x153B
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_half_apron]
{ left facing
get=0x153B
name=A Magic Half Apron
name2=A Adamantium Half Apron
id=0x153B
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_jesters_suit]
{ left facing
get=0x1F9F
name=A Magic Jesters Suit
name2=A Lead Jesters Suit
id=0x1F9F
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_jesters_suit]
{ left facing
get=0x1F9F
name=A Magic Jesters Suit
name2=A Aluminum Jesters Suit
id=0x1F9F
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_jesters_suit]
{ left facing
get=0x1F9F
name=A Magic Jesters Suit
name2=A Platinum Jesters Suit
id=0x1F9F
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_jesters_suit]
{ left facing
get=0x1F9F
name=A Magic Jesters Suit
name2=A Steel Jesters Suit
id=0x1F9F
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_jesters_suit]
{ left facing
get=0x1F9F
name=A Magic Jesters Suit
name2=A Titanium Jesters Suit
id=0x1F9F
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_jesters_suit]
{ left facing
get=0x1F9F
name=A Magic Jesters Suit
name2=A Adamantium Jesters Suit
id=0x1F9F
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_kilt]
{ left facing
get=0x1537
name=A Magic Kilt
name2=A Lead Kilt
id=0x1537
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}
}

[aluminum_kilt]
{ left facing
get=0x1537
name=A Magic Kilt
name2=A Aluminum Kilt
id=0x1537
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_kilt]
{ left facing
get=0x1537
name=A Magic Kilt
name2=A Platinum Kilt
id=0x1537
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_kilt]
{ left facing
get=0x1537
name=A Magic Kilt
name2=A Steel Kilt
id=0x1537
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_kilt]
{ left facing
get=0x1537
name=A Magic Kilt
name2=A Titanium Kilt
id=0x1537
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_kilt]
{ left facing
get=0x1537
name=A Magic Kilt
name2=A Adamantium Kilt
id=0x1537
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_long_pants]
{ left facing
get=0x1539
name=A Magic Long Pants
name2=A Lead Long Pants
id=0x1539
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_long_pants]
{ left facing
get=0x1539
name=A Magic Long Pants
name2=A Aluminum Long Pants
id=0x1539
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_long_pants]
{ left facing
get=0x1539
name=A Magic Long Pants
name2=A Platinum Long Pants
id=0x1539
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[titanium_long_pants]
{ left facing
get=0x1539
name=A Magic Long Pants
name2=A Titanium Long Pants
id=0x1539
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_long_pants]
{ left facing
get=0x1539
name=A Magic Long Pants
name2=A Adamantium Long Pants
id=0x1539
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_plain_dress]
{ left facing
get=0x1F01
name=A Magic Plain Dress
name2=A Lead Plain Dress
id=0x1F01
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_plain_dress]
{ left facing
get=0x1F01
name=A Magic Plain Dress
name2=A Aluminum Plain Dress
id=0x1F01
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_plain_dress]
{ left facing
get=0x1F01
name=A Magic Plain Dress
name2=A Platinum Plain Dress
id=0x1F01
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_plain_dress]
{ left facing
get=0x1F01
name=A Magic Plain Dress
name2=A Steel Plain Dress
id=0x1F01
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_plain_dress]
{ left facing
get=0x1F01
name=A Magic Plain Dress
name2=A Titanium Plain Dress
id=0x1F01
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_plain_dress]
{ left facing
get=0x1F01
name=A Magic Plain Dress
name2=A Adamantium Plain Dress
id=0x1F01
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_robe]
{ left facing
get=0x1F03
name=A Magic Robe
name2=A Lead Robe
id=0x1F03
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_robe]
{ left facing
get=0x1F03
name=A Magic Robe
name2=A Aluminum Robe
id=0x1F03
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_robe]
{ left facing
get=0x1F03
name=A Magic Robe
name2=A Platinum Robe
id=0x1F03
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_robe]
{ left facing
get=0x1F03
name=A Magic Robe
name2=A Steel Robe
id=0x1F03
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_robe]
{ left facing
get=0x1F03
name=A Magic Robe
name2=A Titanium Robe
id=0x1F03
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_robe]
{ left facing
get=0x1F03
name=A Magic Robe
name2=A Adamantium Robe
id=0x1F03
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_shirt]
{ left facing
get=0x1517
name=A Magic Shirt
name2=A Lead Shirt
id=0x1517
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_shirt]
{ left facing
get=0x1517
name=A Magic Shirt
name2=A Aluminum Shirt
id=0x1517
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_shirt]
{ left facing
get=0x1517
name=A Magic Shirt
name2=A Platinum Shirt
id=0x1517
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_shirt]
{ left facing
get=0x1517
name=A Magic Shirt
name2=A Steel Shirt
id=0x1517
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_shirt]
{ left facing
get=0x1517
name=A Magic Shirt
name2=A Titanium Shirt
id=0x1517
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_shirt]
{ left facing
get=0x1517
name=A Magic Shirt
name2=A Adamantium Shirt
id=0x1517
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_short_pants]
{ left facing
get=0x152E
name=A Magic Short Pants
name2=A Lead Short Pants
id=0x152E
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}
}

[aluminum_short_pants]
{ left facing
get=0x152E
name=A Magic Short Pants
name2=A Aluminum Short Pants
id=0x152E
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_short_pants]
{ left facing
get=0x152E
name=A Magic Short Pants
name2=A Platinum Short Pants
id=0x152E
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_short_pants]
{ left facing
get=0x152E
name=A Magic Short Pants
name2=A Steel Short Pants
id=0x152E
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_short_pants]
{ left facing
get=0x152E
name=A Magic Short Pants
name2=A Titanium Short Pants
id=0x152E
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_short_pants]
{ left facing
get=0x152E
name=A Magic Short Pants
name2=A Adamantium Short Pants
id=0x152E
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_skirt]
{ left facing
get=0x1531
name=A Magic Skirt
name2=A Lead Skirt
id=0x1531
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_skirt]
{ left facing
get=0x1531
name=A Magic Skirt
name2=A Aluminum Skirt
id=0x1531
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_skirt]
{ left facing
get=0x1531
name=A Magic Skirt
name2=A Platinum Skirt
id=0x1531
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_skirt]
{ left facing
get=0x1531
name=A Magic Skirt
name2=A Steel Skirt
id=0x1531
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_skirt]
{ left facing
get=0x1531
name=A Magic Skirt
name2=A Titanium Skirt
id=0x1531
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_skirt]
{ left facing
get=0x1531
name=A Magic Skirt
name2=A Adamantium Skirt
id=0x1531
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_tunic]
{ left facing
get=0x1FA1
name=A Magic Tunic
name2=A Lead Tunic
id=0x1FA1
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_tunic]
{ left facing
get=0x1FA1
name=A Magic Tunic
name2=A Aluminum Tunic
id=0x1FA1
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_tunic]
{ left facing
get=0x1FA1
name=A Magic Tunic
name2=A Platinum Tunic
id=0x1FA1
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[steel_tunic]
{ left facing
get=0x1FA1
name=A Magic Tunic
name2=A Steel Tunic
id=0x1FA1
color=0x3DD
weight=70
str=70
hp=85
DEXADD=-2
DEF=20
}

[titanium_tunic]
{ left facing
get=0x1FA1
name=A Magic Tunic
name2=A Titanium Tunic
id=0x1FA1
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_tunic]
{ left facing
get=0x1FA1
name=A Magic Tunic
name2=A Adamantium Tunic
id=0x1FA1
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}

[lead_surcoat]
{ left facing
get=0x1ffd
name=A Magic Surcoat
name2=A Lead Surcoat
id=0x1ffd
color=0x377
weight=80
str=40
hp=40
DEXADD=-1
DEF=5
}

[aluminum_surcoat]
{ left facing
get=0x1ffd
name=A Magic Surcoat
name2=A Aluminum Surcoat
id=0x1ffd
color=0x67D
weight=40
str=50
hp=60
DEXADD=-1
DEF=10
}

[platinum_surcoat]
{ left facing
get=0x1ffd
name=A Magic Surcoat
name2=A Platinum Surcoat
id=0x1ffd
color=0x452
weight=60
str=60
hp=75
DEXADD=-2
DEF=15
}

[titanium_surcoat]
{ left facing
get=0x1ffd
name=A Magic Surcoat
name2=A Titanium Surcoat
id=0x1ffd
weight=75
str=80
hp=105
DEXADD=-3
DEF=25
}

[adamantium_surcoat]
{ left facing
get=0x1ffd
name=A Magic Surcoat
name2=A Adamantium Surcoat
id=0x1ffd
color=0x495
weight=85
str=85
hp=135
DEXADD=-3
DEF=30
}
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Very cool.

One question, does anyone know if UOx3 checks for armor bonuses in the clothing (shirt/cloak) layers? If not, these won't add any protections. :(

Xuri?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Not sure. But should be possible to check by adding some insane armor bonuses to some clothing items, then compare the damage you take while wearing that versus just wearing non-protective clothing. :)
-= Ho Eyo He Hum =-
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

*Hands Xuri a magical cloak* "See that Dragon down yonder? Put this on, come back and tell me how it works."

:lol:
viper_au
UOX3 Newbie
Posts: 7
Joined: Sat Nov 06, 2010 12:53 am
Has thanked: 0
Been thanked: 0

Post by viper_au »

Xuri didnt come back, i guess it doesn't
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Xuri didnt come back, i guess it doesn't
Hmm. *scratches chin*. Yup. Guess we know not to wear any magical clothing.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

I'm almost certain we only check the standard armor layers.
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Guess I was wrong, based on the code (pasted below) it pulls the highest armor level from the area you were hit (Cloak is only counted for torso - as we don't have a back hit location).

Code: Select all

CItem * CHandleCombat::getArmorDef( CChar *mChar, SI32 &totalDef, UI08 bodyLoc, bool findTotal, WeatherType resistType )
{
	SI32 armorDef = 0;
	CItem *currItem = NULL;
	switch( bodyLoc )
	{
		case 1:		// Torso
			currItem = checkDef( mChar->GetItemAtLayer( IL_INNERSHIRT ), currItem, armorDef, resistType );	// Shirt
			currItem = checkDef( mChar->GetItemAtLayer( IL_TUNIC ), currItem, armorDef, resistType );	// Torso (Inner - Chest Armor)
			currItem = checkDef( mChar->GetItemAtLayer( IL_OUTERSHIRT ), currItem, armorDef, resistType );	// Torso (Middle - Tunic, etc)
			currItem = checkDef( mChar->GetItemAtLayer( IL_CLOAK ), currItem, armorDef, resistType );	// Back (Cloak)
			currItem = checkDef( mChar->GetItemAtLayer( IL_ROBE ), currItem, armorDef, resistType );	// Torso (Outer - Robe)
			if( findTotal )
				armorDef = (SI32)(100 * (R32)( armorDef / 2.8 ));
			break;
		case 2:		// Arms
			currItem = checkDef( mChar->GetItemAtLayer( IL_ARMS ), currItem, armorDef, resistType );	// Arms
			if( findTotal )
				armorDef = (SI32)(100 * (R32)( armorDef / 6.8 ));
			break;
		case 3:		// Head
			currItem = checkDef( mChar->GetItemAtLayer( IL_HELM ), currItem, armorDef, resistType );	// Head
			if( findTotal )
				armorDef = (SI32)(100 * (R32)( armorDef / 7.3 ));
			break;
		case 4:		// Legs
			currItem = checkDef( mChar->GetItemAtLayer( IL_FOOTWEAR ), currItem, armorDef, resistType );	// Shoes
			currItem = checkDef( mChar->GetItemAtLayer( IL_PANTS ), currItem, armorDef, resistType );	// Pants
			currItem = checkDef( mChar->GetItemAtLayer( IL_WAIST ), currItem, armorDef, resistType );	// Waist (Half Apron)
			currItem = checkDef( mChar->GetItemAtLayer( IL_OUTERLEGGINGS ), currItem, armorDef, resistType );	// Legs (Outer - Skirt, Kilt)
			currItem = checkDef( mChar->GetItemAtLayer( IL_INNERLEGGINGS ), currItem, armorDef, resistType );	// Legs (Inner - Leg Armor)
			if( findTotal )
				armorDef = (SI32)(100 * (R32)( armorDef / 4.5 ));
			break;
		case 5:		// Neck
			currItem = checkDef( mChar->GetItemAtLayer( IL_NECK ), currItem, armorDef, resistType );	// Neck
			if( findTotal )
				armorDef = (SI32)(100 * (R32)( armorDef / 14.5 ));
			break;
		case 6:		// Hands
			currItem = checkDef( mChar->GetItemAtLayer( IL_GLOVES ), currItem, armorDef, resistType );	// Gloves
			if( findTotal )
				armorDef = (SI32)(100 * (R32)( armorDef / 14.5 ));
			break;
		default:
			break;
	}
	if( findTotal )
		totalDef += armorDef;
	else
		totalDef = armorDef;

	return currItem;
}
Post Reply