mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Assunzione Voidsuit & Modkit Fixes (#18744)
* yeah * rad protection * dme fuckup
This commit is contained in:
@@ -93,34 +93,23 @@
|
||||
return 1
|
||||
|
||||
//anomaly suits give best protection, but excavation suits are almost as good
|
||||
if(istype(H.back,/obj/item/rig/hazmat))
|
||||
var/obj/item/rig/hazmat/rig = H.back
|
||||
if(rig.suit_is_deployed() && !rig.offline)
|
||||
if(istype(H.back,/obj/item/rig))
|
||||
var/obj/item/rig/rig = H.back
|
||||
if(rig.suit_is_deployed() && !rig.offline && rig.anomaly_protection)
|
||||
return 0 //<- Maximum level of protection achieved.
|
||||
|
||||
var/list/clothing = list(H.w_uniform, H.wear_suit, H.head, H.glasses, H.gloves)
|
||||
var/protected = 0
|
||||
|
||||
if(istype(H.wear_suit,/obj/item/clothing/suit/hazmat/anomaly))
|
||||
protected += 0.6
|
||||
else if(istype(H.wear_suit,/obj/item/clothing/suit/space/anomaly))
|
||||
protected += 0.5
|
||||
for(var/obj/item/clothing/C in clothing)
|
||||
protected += C.anomaly_protection
|
||||
|
||||
if(istype(H.head,/obj/item/clothing/head/hazmat/anomaly))
|
||||
protected += 0.3
|
||||
else if(istype(H.head,/obj/item/clothing/head/helmet/space/anomaly))
|
||||
protected += 0.2
|
||||
|
||||
//latex gloves and science goggles also give a bit of bonus protection
|
||||
if(istype(H.gloves,/obj/item/clothing/gloves/latex/nitrile))
|
||||
protected += 0.1
|
||||
/*
|
||||
If you have Anomaly Suit, Anomaly Hood, Latex Gloves AND Science Goggles, you will have
|
||||
0.6 + 0.3 + 0.1 + 0.1 = 1.1
|
||||
maximum protection level. The CLAMP01 instruction make sure that "protected" will be
|
||||
always in 0..1 range boundaries.
|
||||
*/
|
||||
if(istype(H.glasses,/obj/item/clothing/glasses/science))
|
||||
protected += 0.1 //<- In case of full not-Anomaly clothing, you'll have 0.5 + 0.2 + 0.1 + 0.1 = 0.9 maximum protection level.
|
||||
|
||||
//As said before, in case of a value of 1.1, "protected" will be setted to 1.
|
||||
protected = CLAMP01(protected)
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
icon_auto_adapt = TRUE
|
||||
icon_supported_species_tags = list("skr", "taj", "una")
|
||||
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 100, rad = 100)
|
||||
anomaly_protection = 0.6
|
||||
|
||||
/obj/item/clothing/head/hazmat/anomaly
|
||||
name = "anomaly hood"
|
||||
@@ -17,6 +18,7 @@
|
||||
icon_auto_adapt = TRUE
|
||||
icon_supported_species_tags = list("skr", "taj", "una")
|
||||
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 100, rad = 100)
|
||||
anomaly_protection = 0.3
|
||||
|
||||
/obj/item/clothing/suit/space/anomaly
|
||||
name = "excavation suit"
|
||||
@@ -27,6 +29,7 @@
|
||||
allowed = list(/obj/item/device/flashlight,/obj/item/tank,/obj/item/device/suit_cooling_unit)
|
||||
contained_sprite = FALSE
|
||||
icon = 'icons/obj/clothing/suits.dmi'
|
||||
anomaly_protection = 0.5
|
||||
|
||||
/obj/item/clothing/head/helmet/space/anomaly
|
||||
name = "excavation hood"
|
||||
@@ -36,3 +39,4 @@
|
||||
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 100, rad = 100)
|
||||
icon = 'icons/obj/clothing/hats.dmi'
|
||||
contained_sprite = FALSE
|
||||
anomaly_protection = 0.2
|
||||
|
||||
Reference in New Issue
Block a user