allow non-MMI brains to ghost (since they can't do anything), admin-spawnable bone repairing syrum

This commit is contained in:
Tastyfish
2012-01-17 20:34:12 -05:00
parent 53baf4755f
commit d1fc384533
4 changed files with 96 additions and 1 deletions
@@ -32,8 +32,17 @@
O:brainmob = null
brainmob.loc = src
brainmob.container = src
brainmob.verbs -= /mob/proc/ghost
brainmob.stat = 0
// force re-entering corpse
if (!brainmob.client)
for(var/mob/dead/observer/ghost in world)
if(ghost.corpse == brainmob && ghost.client)
ghost.cancel_camera()
ghost.reenter_corpse()
break
user.drop_item()
del(O)
@@ -66,6 +75,7 @@
brainmob.container = null//Reset brainmob mmi var.
brainmob.loc = brain//Throw mob into brain.
brain.brainmob = brainmob//Set the brain to use the brainmob
brainmob.verbs += /mob/proc/ghost
brainmob = null//Set mmi brainmob var to null
icon_state = "mmi_empty"
@@ -78,6 +88,7 @@
brainmob.real_name = H.real_name
brainmob.dna = H.dna
brainmob.container = src
brainmob.verbs -= /mob/proc/ghost
name = "Man-Machine Interface: [brainmob.real_name]"
icon_state = "mmi_full"
@@ -29,4 +29,11 @@
return 1
if (istype(other, /mob/living/carbon/metroid))
return 1
return ..()
return ..()
Login()
if(!container)
verbs += /mob/proc/ghost
Logout()
verbs -= /mob/proc/ghost