All robots, including cyborgs, can now be named! Simply use a pen on them during any step where there's an assembly involved. Note that cyborg naming is subject to removal if people abuse it.

Knock now unbolts doors as well as opens them.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@880 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
crazyclonetheninja
2011-01-17 04:13:31 +00:00
parent 45e5642aab
commit eec01aa865
4 changed files with 83 additions and 39 deletions
+13 -2
View File
@@ -43,6 +43,7 @@
var/obj/item/robot_parts/chest/chest = null
var/obj/item/robot_parts/head/head = null
var/obj/item/brain/brain = null
var/created_name = "Cyborg"
/obj/item/robot_parts/robot_suit/New()
..()
@@ -138,8 +139,8 @@
O.gender = src.brain.owner.gender
//O.start = 1
O.invisibility = 0
O.name = "Cyborg"
O.real_name = "Cyborg"
O.name = src.created_name
O.real_name = src.created_name
if (src.brain.owner.client)
O.lastKnownIP = src.brain.owner.client.address
@@ -167,6 +168,16 @@
else
user << "\blue The brain must go in after everything else!"
if (istype(W, /obj/item/weapon/pen))
var/t = input(user, "Enter new robot name", src.name, src.created_name) as text
t = copytext(sanitize(t), 1, MAX_MESSAGE_LEN)
if (!t)
return
if (!in_range(src, usr) && src.loc != usr)
return
src.created_name = t
return
/obj/item/robot_parts/chest/attackby(obj/item/W as obj, mob/user as mob)