mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Fixed more runtime errors.
Monkeys no longer deathemote when gibbed. Added a Coder/Host level debug verb that forces the master_controller to run its process() proc. Pressing the button while the master_controller is already process()ing is not advised. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@978 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
+13
-12
@@ -560,18 +560,18 @@ var/showadminmessages = 1
|
||||
if(istype(M, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = M
|
||||
message_admins("\red Admin [key_name_admin(usr)] AIized [key_name_admin(M)]!", 1)
|
||||
if (ticker.mode.name == "AI malfunction")
|
||||
var/obj/O = locate("landmark*ai")
|
||||
M << "\blue <B>You have been teleported to your new starting location!</B>"
|
||||
M.loc = O.loc
|
||||
M.buckled = null
|
||||
else
|
||||
var/obj/S = locate(text("start*AI"))
|
||||
if ((istype(S, /obj/landmark/start) && istype(S.loc, /turf)))
|
||||
M << "\blue <B>You have been teleported to your new starting location!</B>"
|
||||
M.loc = S.loc
|
||||
M.buckled = null
|
||||
world << "<b>[M.real_name] is the AI!</b>"
|
||||
// if (ticker.mode.name == "AI malfunction")
|
||||
// var/obj/O = locate("landmark*ai")
|
||||
// M << "\blue <B>You have been teleported to your new starting location!</B>"
|
||||
// M.loc = O.loc
|
||||
// M.buckled = null
|
||||
// else
|
||||
// var/obj/S = locate(text("start*AI"))
|
||||
// if ((istype(S, /obj/landmark/start) && istype(S.loc, /turf)))
|
||||
// M << "\blue <B>You have been teleported to your new starting location!</B>"
|
||||
// M.loc = S.loc
|
||||
// M.buckled = null
|
||||
// world << "<b>[M.real_name] is the AI!</b>"
|
||||
log_admin("[key_name(usr)] AIized [key_name(M)]")
|
||||
H.AIize()
|
||||
else
|
||||
@@ -1131,6 +1131,7 @@ var/showadminmessages = 1
|
||||
if(T.z == 1 && istype(T,/turf/simulated/floor) && !istype(T,/turf/space))
|
||||
turfs += T
|
||||
for(var/turf/T in world)
|
||||
set background = 1
|
||||
if(prob(20) && T.z == 1 && istype(T,/turf/simulated/floor))
|
||||
spawn(50+rand(0,3000))
|
||||
picked = pick(turfs)
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
src.verbs += /obj/admins/proc/startnow //start now bitch
|
||||
|
||||
// Debug
|
||||
src.verbs += /client/proc/restartcontroller //exactly what it sounds like
|
||||
src.verbs += /client/proc/atmosscan //for locating piping breaks
|
||||
src.verbs += /client/proc/debug_variables
|
||||
src.verbs += /client/proc/cmd_modify_object_variables
|
||||
@@ -190,6 +191,7 @@
|
||||
src.verbs += /obj/admins/proc/startnow //start now bitch
|
||||
|
||||
// Debug
|
||||
src.verbs += /client/proc/restartcontroller //exactly what it sounds like
|
||||
src.verbs += /client/proc/atmosscan //for locating piping breaks
|
||||
src.verbs += /client/proc/debug_variables
|
||||
src.verbs += /client/proc/cmd_modify_object_variables
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
/client/proc/restartcontroller()
|
||||
set category = "Debug"
|
||||
set name = "Restart Master Controller"
|
||||
|
||||
master_controller.process()
|
||||
@@ -4,9 +4,9 @@
|
||||
var/cancel
|
||||
if (src.healths)
|
||||
src.healths.icon_state = "health5"
|
||||
|
||||
for(var/mob/O in viewers(src, null))
|
||||
O.show_message("<b>The [src.name]</b> lets out a faint chimper as it collapses and stops moving...", 1) //ded -- Urist
|
||||
if(!gibbed)
|
||||
for(var/mob/O in viewers(src, null))
|
||||
O.show_message("<b>The [src.name]</b> lets out a faint chimper as it collapses and stops moving...", 1) //ded -- Urist
|
||||
|
||||
src.stat = 2
|
||||
src.canmove = 0
|
||||
|
||||
@@ -171,6 +171,8 @@
|
||||
|
||||
if(src.reagents.has_reagent("lexorin")) return
|
||||
|
||||
if(!loc) return //probably ought to make a proper fix for this, but :effort: --NeoFite
|
||||
|
||||
var/datum/gas_mixture/environment = loc.return_air()
|
||||
var/datum/air_group/breath
|
||||
|
||||
|
||||
Reference in New Issue
Block a user