mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 06:27:26 +01:00
allow non-MMI brains to ghost (since they can't do anything), admin-spawnable bone repairing syrum
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user