Added sprites and basic code for positronic brains.

This commit is contained in:
Zuhayr
2013-01-06 04:04:25 -08:00
parent 6751c1a6be
commit 4f93d392f4
5 changed files with 15 additions and 15 deletions
+5 -5
View File
@@ -117,16 +117,16 @@
laws.add_inherent_law(M.newFreeFormLaw)
usr << "Added a freeform law."
if(istype(P, /obj/item/device/mmi))
if(istype(P, /obj/item/device/mmi) || istype(P, /obj/item/device/posibrain))
if(!P:brainmob)
user << "\red Sticking an empty MMI into the frame would sort of defeat the purpose."
user << "\red Sticking an empty [P] into the frame would sort of defeat the purpose."
return
if(P:brainmob.stat == 2)
user << "\red Sticking a dead brain into the frame would sort of defeat the purpose."
user << "\red Sticking a dead [P] into the frame would sort of defeat the purpose."
return
if(jobban_isbanned(P:brainmob, "AI"))
user << "\red This MMI does not seem to fit."
user << "\red This [P] does not seem to fit."
return
if(P:brainmob.mind)
@@ -136,7 +136,7 @@
user.drop_item()
P.loc = src
brain = P
usr << "Added a brain."
usr << "Added [P]."
icon_state = "3b"
if(istype(P, /obj/item/weapon/crowbar) && brain)
+2 -2
View File
@@ -668,7 +668,7 @@
/obj/mecha/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/device/mmi))
if(istype(W, /obj/item/device/mmi) || istype(W, /obj/item/device/posibrain))
if(mmi_move_inside(W,user))
user << "[src]-MMI interface initialized successfuly"
else
@@ -1804,4 +1804,4 @@
//src.health = initial(src.health)/2.2
//src.check_for_internal_damage(list(MECHA_INT_FIRE,MECHA_INT_TEMP_CONTROL,MECHA_INT_TANK_BREACH,MECHA_INT_CONTROL_LOST))
return
*/
*/
+7 -7
View File
@@ -161,14 +161,14 @@
else
user << "\blue You need to attach a flash to it first!"
if(istype(W, /obj/item/device/mmi))
if(istype(W, /obj/item/device/mmi) || istype(W, /obj/item/device/posibrain))
var/obj/item/device/mmi/M = W
if(check_completion())
if(!istype(loc,/turf))
user << "\red You can't put the MMI in, the frame has to be standing on the ground to be perfectly precise."
user << "\red You can't put the [W] in, the frame has to be standing on the ground to be perfectly precise."
return
if(!M.brainmob)
user << "\red Sticking an empty MMI into the frame would sort of defeat the purpose."
user << "\red Sticking an empty [W] into the frame would sort of defeat the purpose."
return
if(!M.brainmob.key)
var/ghost_can_reenter = 0
@@ -178,19 +178,19 @@
ghost_can_reenter = 1
break
if(!ghost_can_reenter)
user << "<span class='notice'>The mmi indicates that their mind is completely unresponsive; there's no point.</span>"
user << "<span class='notice'>The [W] is completely unresponsive; there's no point.</span>"
return
if(M.brainmob.stat == DEAD)
user << "\red Sticking a dead brain into the frame would sort of defeat the purpose."
user << "\red Sticking a dead [W] into the frame would sort of defeat the purpose."
return
if(M.brainmob.mind in ticker.mode.head_revolutionaries)
user << "\red The frame's firmware lets out a shrill sound, and flashes 'Abnormal Memory Engram'. It refuses to accept the MMI."
user << "\red The frame's firmware lets out a shrill sound, and flashes 'Abnormal Memory Engram'. It refuses to accept the [W]."
return
if(jobban_isbanned(M.brainmob, "Cyborg"))
user << "\red This MMI does not seem to fit."
user << "\red This [W] does not seem to fit."
return
var/mob/living/silicon/robot/O = new /mob/living/silicon/robot(get_turf(loc))
+1 -1
View File
@@ -2,7 +2,7 @@
if (silent)
return
if(!(container && istype(container, /obj/item/device/mmi)))
if(!(container && (istype(container, /obj/item/device/mmi) || istype(container, /obj/item/device/posibrain))))
return //No MMI, can't speak, bucko./N
else
if(prob(emp_damage*4))
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 24 KiB