mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 01:23:41 +01:00
Part two of MMI update: you can now beat on them to damage and/or kill the brain within. Health analyzers can check the health of the brain. I haven't tested, but theoretically bruise packs and ointment can be applied to heal it.
It is currently impossible to apply reagents to the MMIbrain, nor can it be placed into anything yet. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1294 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -157,9 +157,13 @@
|
||||
|
||||
|
||||
/obj/item/proc/attack(mob/M as mob, mob/user as mob, def_zone)
|
||||
|
||||
if (!M) // not sure if this is the right thing...
|
||||
return
|
||||
var/messagesource = M
|
||||
|
||||
if (istype(M,/mob/living/carbon/brain))
|
||||
messagesource = M:container
|
||||
if (src.hitsound)
|
||||
playsound(src.loc, hitsound, 50, 1, -1)
|
||||
/////////////////////////
|
||||
@@ -169,7 +173,7 @@
|
||||
// M.lastattacker = null
|
||||
/////////////////////////
|
||||
if(!istype(M, /mob/living/carbon/human))
|
||||
for(var/mob/O in viewers(M, null))
|
||||
for(var/mob/O in viewers(messagesource, null))
|
||||
O.show_message(text("\red <B>[] has been attacked with [][] </B>", M, src, (user ? text(" by [].", user) : ".")), 1)
|
||||
var/power = src.force
|
||||
if (istype(M, /mob/living/carbon/human))
|
||||
|
||||
Reference in New Issue
Block a user