Merge remote-tracking branch 'upstream/master' into snaxi2

This commit is contained in:
Detective Google
2020-05-12 21:34:04 -05:00
2 changed files with 12 additions and 4 deletions

View File

@@ -27777,7 +27777,7 @@
},
/obj/machinery/firealarm{
dir = 4;
pixel_x = -24
pixel_x = -26
},
/turf/open/floor/plasteel/white,
/area/medical/chemistry)
@@ -39447,6 +39447,14 @@
/obj/machinery/atmospherics/pipe/simple/cyan/visible,
/turf/open/floor/plasteel,
/area/engine/atmos)
"bPh" = (
/obj/machinery/atmospherics/pipe/simple/cyan/visible,
/obj/effect/spawner/structure/window/reinforced,
/obj/machinery/atmospherics/pipe/layer_manifold{
dir = 4
},
/turf/open/floor/plating,
/area/engine/atmos)
"bPi" = (
/obj/machinery/light{
dir = 4

View File

@@ -21,10 +21,10 @@ Doesn't work on other aliens/AI.*/
. = ..()
action = new(src)
/obj/effect/proc_holder/alien/Trigger(mob/living/carbon/user, skip_cost_check)
if(!istype(user))
/obj/effect/proc_holder/alien/Trigger(mob/living/carbon/user, skip_cost_check = FALSE)
if(!skip_cost_check || !istype(user))
return TRUE
if(!skip_cost_check || cost_check(check_turf,user))
if(cost_check(check_turf,user))
if(fire(user) && user) // Second check to prevent runtimes when evolving
user.adjustPlasma(-plasma_cost)
return TRUE