mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 08:56:49 +01:00
Merge pull request #9616 from PsiOmegaDelta/150601-CriticalAPCs
APC event tweak.
This commit is contained in:
@@ -45,10 +45,5 @@
|
||||
return pick(apcs)
|
||||
|
||||
/datum/event/apc_damage/proc/is_valid_apc(var/obj/machinery/power/apc/apc)
|
||||
// Type must be exactly a basic APC.
|
||||
// This generally prevents affecting APCs in critical areas (AI core, engine room, etc.) as they often use higher capacity subtypes.
|
||||
if(apc.type != /obj/machinery/power/apc)
|
||||
return 0
|
||||
|
||||
var/turf/T = get_turf(apc)
|
||||
return !apc.emagged && T && (T.z in config.player_levels)
|
||||
return !apc.is_critical && !apc.emagged && T && (T.z in config.player_levels)
|
||||
|
||||
Reference in New Issue
Block a user