mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-19 11:58:39 +01:00
1c8c0c2221
Fixes several runtimes from the past few weeks, some additional material repath regressions, and the fact that if I shoot you with a stream of ionized deuterium particles, it doesn't riddle you with cancer. changes: - bugfix: "Fixes emergency shields runtiming when hit by thrown objects." - bugfix: "Fixes several stale global list runtimes." - bugfix: "Fixes several health percentage checks that could use unset initial health values." - bugfix: "Fixes additional materials regressions in INDRA code." - bugfix: "Fixes invalid fuel injector depletion math." - bugfix: "Makes accelerated particles apply radiation damage to living mobs they pass through."
53 lines
1.6 KiB
Plaintext
53 lines
1.6 KiB
Plaintext
//Material Rings
|
|
/obj/item/clothing/ring/material
|
|
icon = 'icons/obj/clothing/rings.dmi'
|
|
icon_state = "material"
|
|
|
|
/obj/item/clothing/ring/material/Initialize(var/mapload, var/new_material)
|
|
. = ..(mapload)
|
|
if(!new_material)
|
|
new_material = MATERIAL_STEEL
|
|
material = SSmaterials.get_material_by_id(new_material)
|
|
if(!istype(material))
|
|
qdel(src)
|
|
return
|
|
name = "[material.display_name] ring"
|
|
desc = "A ring made from [material.display_name]."
|
|
color = material.icon_colour
|
|
|
|
/obj/item/clothing/ring/material/get_material()
|
|
return material
|
|
|
|
/obj/item/clothing/ring/material/wood/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_WOOD)
|
|
|
|
/obj/item/clothing/ring/material/plastic/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_PLASTIC)
|
|
|
|
/obj/item/clothing/ring/material/iron/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_IRON)
|
|
|
|
/obj/item/clothing/ring/material/steel/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_STEEL)
|
|
|
|
/obj/item/clothing/ring/material/silver/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_SILVER)
|
|
|
|
/obj/item/clothing/ring/material/gold/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_GOLD)
|
|
|
|
/obj/item/clothing/ring/material/platinum/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_PLATINUM)
|
|
|
|
/obj/item/clothing/ring/material/phoron/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_PHORON)
|
|
|
|
/obj/item/clothing/ring/material/bronze/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_BRONZE)
|
|
|
|
/obj/item/clothing/ring/material/glass/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_GLASS)
|
|
|
|
/obj/item/clothing/ring/material/uranium/Initialize(var/mapload)
|
|
. = ..(mapload, MATERIAL_URANIUM)
|