mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Cetus Station (#11726)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -36,3 +36,17 @@
|
||||
/obj/effect/step_trigger/teleporter/poi/Initialize(mapload) //This is for placing teleporters in gateways/POIS, where Z levels can be different and I cant be assed to make fake teleporter stairs
|
||||
. = ..()
|
||||
teleport_z = src.z
|
||||
|
||||
/obj/effect/step_trigger/teleporter/randomspawn //teleporter/random was taken. This version only teleports when stepped on *sometimes*, and you can give it a chance not to spawn
|
||||
var/destroyprob = 99
|
||||
var/teleprob = 1
|
||||
|
||||
/obj/effect/step_trigger/teleporter/randomspawn/Initialize(mapload)
|
||||
. = ..()
|
||||
if(destroyprob && prob(destroyprob))
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/step_trigger/teleporter/randomspawn/Trigger()
|
||||
if(teleprob && !prob(teleprob))
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
|
||||
/datum/trait/neutral/xenochimera_YR3/handle_environment_special(mob/living/carbon/human/H)
|
||||
var/list/nanitereagents = list(REAGENT_HEALINGNANITES, REAGENT_SHREDDINGNANITES, REAGENT_IRRADIATEDNANITES, REAGENT_NEUROPHAGENANITES, REAGENT_NIFREPAIRNANITES)
|
||||
if(istype(H.loc, /turf/simulated/floor/water/digestive_enzymes/nanites))
|
||||
var/turf/simulated/floor/water/digestive_enzymes/nanites/N = H.loc
|
||||
if(N.active)
|
||||
N.toggle_all(FALSE)
|
||||
for(var/reagent in nanitereagents)
|
||||
if(H.reagents.has_reagent(reagent))
|
||||
H.adjust_nutrition(H.reagents.get_reagent_amount(reagent))
|
||||
|
||||
Reference in New Issue
Block a user