Implements suggestions from github

- qdel() instead of del()
- z in config.station_levels insted of z == 1
- Typo fix
- Playercount is now 2 instead of 1 which was debug setting
- AI is now properly deleted when struck by very strong explosion (heavy impact).
- Hardware now properly uses install(). Hardware list is generated from existing datums using typesof()
This commit is contained in:
Atlantis
2015-05-18 22:05:18 +02:00
parent 71bfe729fa
commit 4cd2417eb8
6 changed files with 50 additions and 44 deletions
+7 -1
View File
@@ -693,6 +693,12 @@ var/list/ai_verbs_default = list(
return istype(loc, /turf)
/mob/living/silicon/ai/ex_act(var/severity)
if(severity == 1.0)
qdel(src)
return
..()
// NEWMALF FUNCTIONS/PROCEDURES
// Sets up malfunction-related variables, research system and such.
@@ -757,7 +763,7 @@ var/list/ai_verbs_default = list(
// Off-Station APCs should not count towards CPU generation.
for(var/obj/machinery/power/apc/A in hacked_apcs)
if(A.z == 1)
if(A.z in config.station_levels)
cpu_gain += 0.002
cpu_storage += 10