[MIRROR] Experi-Sci: Techweb nodes may now require you to perform "scientific" experiments (#3614)

* Experi-Sci: Techweb nodes may now require you to perform "scientific" experiments

* Update all_nodes.dm

Co-authored-by: Qustinnus <Floydje123@hotmail.com>
Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
This commit is contained in:
SkyratBot
2021-02-23 21:51:28 +00:00
committed by GitHub
co-authored by Qustinnus Gandalf2k15
parent e9896f3cf5
commit e5ff997ef8
82 changed files with 3350 additions and 809 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ Simple datum which is instanced once per type and is used for every object of sa
///Base color of the material, is used for greyscale. Item isn't changed in color if this is null.
var/color
///Base alpha of the material, is used for greyscale icons.
var/alpha
var/alpha = 255
///Bitflags that influence how SSmaterials handles this material.
var/init_flags = MATERIAL_INIT_MAPLOAD
///Materials "Traits". its a map of key = category | Value = Bool. Used to define what it can be used for
@@ -163,8 +163,8 @@ Simple datum which is instanced once per type and is used for every object of sa
o.throwforce = initial(o.throwforce)
/datum/material/proc/on_removed_turf(turf/T, amount, material_flags)
if(alpha)
RemoveElement(/datum/element/turf_z_transparency, FALSE)
if(alpha < 255)
T.RemoveElement(/datum/element/turf_z_transparency, FALSE)
/**
* This proc is called when the mat is found in an item that's consumed by accident. see /obj/item/proc/on_accidental_consumption.