mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
Helps if I add the code where a flipped-up weldingmask actually fails to protect your eyes from shit.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1228 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -143,7 +143,14 @@ FLASHBANG
|
||||
M.ear_deaf += 10
|
||||
if (prob(20))
|
||||
M.ear_damage += rand(0, 4)
|
||||
if ((!( istype(H.glasses, /obj/item/clothing/glasses/sunglasses) || istype(H.head, /obj/item/clothing/head/helmet/welding) ) || M.paralysis))
|
||||
var/safe = 0
|
||||
if (istype(H.glasses, /obj/item/clothing/glasses/sunglasses))
|
||||
safe = 1
|
||||
if (istype(H.head, /obj/item/clothing/head/helmet/welding))
|
||||
if(!H.head:up)
|
||||
safe = 1
|
||||
|
||||
if(!safe)
|
||||
if(!(M.mutations & 8)) M.stunned = 7
|
||||
if(!(M.mutations & 8)) M.weakened = 2
|
||||
else
|
||||
@@ -155,7 +162,13 @@ FLASHBANG
|
||||
flick("flash", M.flash)
|
||||
else
|
||||
var/mob/living/carbon/human/H = M
|
||||
if (!( istype(H.glasses, /obj/item/clothing/glasses/sunglasses) || istype(H.head, /obj/item/clothing/head/helmet/welding) ) )
|
||||
var/safe = 0
|
||||
if (istype(H.glasses, /obj/item/clothing/glasses/sunglasses))
|
||||
safe = 1
|
||||
if (istype(H.head, /obj/item/clothing/head/helmet/welding))
|
||||
if(!H.head:up)
|
||||
safe = 1
|
||||
if(!safe)
|
||||
flick("flash", M.flash)
|
||||
M.eye_stat += rand(1, 2)
|
||||
M.ear_deaf += 5
|
||||
|
||||
@@ -260,10 +260,14 @@ WELDINGTOOOL
|
||||
return 1
|
||||
var/safety = 0
|
||||
if (istype(user, /mob/living/carbon/human))
|
||||
if (istype(user:head, /obj/item/clothing/head/helmet/welding) || istype(user:head, /obj/item/clothing/head/helmet/space))
|
||||
if (istype(user:head, /obj/item/clothing/head/helmet/welding))
|
||||
if (!user:head:up)
|
||||
safety = 2
|
||||
else if (istype(user:head, /obj/item/clothing/head/helmet/space))
|
||||
safety = 2
|
||||
else if (istype(user:glasses, /obj/item/clothing/glasses/sunglasses))
|
||||
safety = 1
|
||||
|
||||
else if (istype(user:glasses, /obj/item/clothing/glasses/thermal))
|
||||
safety = -1
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user