Refactors MMI.dm to remove type-checks for brain sprites,

aside from the xeno brain, which does other stuff within its type check.

Signed-off-by: HugoLuman <qaggeler@uci.edu>
This commit is contained in:
HugoLuman
2016-05-20 14:23:55 -07:00
parent c1a333f504
commit 61d36843f7
4 changed files with 10 additions and 7 deletions
+3 -7
View File
@@ -44,19 +44,15 @@
user.drop_item()
B.forceMove(src)
held_brain = B
if(istype(O,/obj/item/organ/internal/brain/xeno)) // I'm not sure how well this will work now, since I don't think you can actually get xeno brains
if(istype(O,/obj/item/organ/internal/brain/xeno)) // kept the type check, as it still does other weird stuff
name = "Man-Machine Interface: Alien - [brainmob.real_name]"
icon = 'icons/mob/alien.dmi'
icon_state = "AlienMMI"
alien = 1
else if(istype(O,/obj/item/organ/internal/brain/drask))
name = "Man-Machine Interface: [brainmob.real_name]"
icon = 'icons/obj/surgery_drask.dmi'
icon_state = "mmi_full"
alien = 0
else
name = "Man-Machine Interface: [brainmob.real_name]"
icon_state = "mmi_full"
icon = B.mmi_icon
icon_state = "[B.mmi_icon_state]"
alien = 0
feedback_inc("cyborg_mmis_filled",1)
@@ -15,6 +15,8 @@
parent_organ = "head"
slot = "brain"
vital = 1
var/mmi_icon = 'icons/obj/assemblies.dmi'
var/mmi_icon_state = "mmi_full"
/obj/item/organ/internal/brain/surgeryize()
if(!owner)
@@ -27,6 +29,8 @@
desc = "We barely understand the brains of terrestial animals. Who knows what we may find in the brain of such an advanced species?"
icon_state = "brain-x"
origin_tech = "biotech=7"
mmi_icon = 'icons/mob/alien.dmi'
mmi_icon_state = "AlienMMI"
/obj/item/organ/internal/brain/New()
..()
@@ -107,6 +111,7 @@
desc = "A complex, organic knot of jelly and crystalline particles."
icon = 'icons/mob/slimes.dmi'
icon_state = "green slime extract"
mmi_icon_state = "slime_mmi"
// parent_organ = "chest" Hello I am from the ministry of rubber forehead aliens how are you
/obj/item/organ/brain/slime/take_damage(var/amount, var/silent = 1)
@@ -38,6 +38,8 @@
icon_state = "brain2"
organ_tag = "brain"
slot = "brain"
mmi_icon = 'icons/obj/surgery_drask.dmi'
mmi_icon_state = "mmi_full"
/obj/item/organ/internal/eyes/drask
name = "eyes"