mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-28 19:12:01 +00:00
fixes #7487
also fixes lag when building APCs in space. Signed-off-by: Mloc-Argent <colmohici@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
if (!istype(loc, /turf/simulated/floor))
|
if (!istype(loc, /turf/simulated/floor))
|
||||||
usr << "\red APC cannot be placed on this spot."
|
usr << "\red APC cannot be placed on this spot."
|
||||||
return
|
return
|
||||||
if (A.requires_power == 0 || A.name == "Space")
|
if (A.requires_power == 0 || istype(A, /area/space))
|
||||||
usr << "\red APC cannot be placed in this area."
|
usr << "\red APC cannot be placed in this area."
|
||||||
return
|
return
|
||||||
if (A.get_apc())
|
if (A.get_apc())
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ move an amendment</a> to the drawing.</p>
|
|||||||
return A
|
return A
|
||||||
|
|
||||||
/obj/item/blueprints/proc/get_area_type(var/area/A = get_area())
|
/obj/item/blueprints/proc/get_area_type(var/area/A = get_area())
|
||||||
if (A.name == "Space")
|
if(istype(A, /area/space))
|
||||||
return AREA_SPACE
|
return AREA_SPACE
|
||||||
var/list/SPECIALS = list(
|
var/list/SPECIALS = list(
|
||||||
/area/shuttle,
|
/area/shuttle,
|
||||||
|
|||||||
Reference in New Issue
Block a user