Several hardsuit fixes.

This commit is contained in:
Zuhayr
2014-11-30 12:46:03 +10:30
parent c7973e0ab2
commit 4c1ea8cd3a
5 changed files with 41 additions and 19 deletions
+8 -2
View File
@@ -262,7 +262,8 @@
if(H.wear_mask)
return 0
if(H.head && !(H.head.canremove) && (H.head.flags & HEADCOVERSMOUTH))
H << "\red \The [H.head] is in the way."
if(!disable_warning)
H << "\red \The [H.head] is in the way."
return 0
if( !(slot_flags & SLOT_MASK) )
return 0
@@ -305,7 +306,8 @@
if(H.glasses)
return 0
if(H.head && !(H.head.canremove) && (H.head.flags & HEADCOVERSEYES))
H << "\red \The [H.head] is in the way."
if(!disable_warning)
H << "\red \The [H.head] is in the way."
return 0
if( !(slot_flags & SLOT_EYES) )
return 0
@@ -339,6 +341,10 @@
if(slot_w_uniform)
if(H.w_uniform)
return 0
if(H.wear_suit)
if(!disable_warning)
H << "\red \The [H.wear_suit] is in the way."
return 0
if( !(slot_flags & SLOT_ICLOTHING) )
return 0
return 1