-Fixed issue 913

You'll have to write the name on the paper itself now.

-Fixed issue 912
-Fixed issue 909
Also, Cyborgs without names are called "Default Cyborgs". 

-Fixed issue 908

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4680 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
giacomand@gmail.com
2012-09-12 08:57:30 +00:00
parent 9b78786611
commit 1d72e3c4e9
7 changed files with 31 additions and 23 deletions

View File

@@ -64,7 +64,7 @@
proc/handle_mutations_and_radiation()
//grow!! but not if metroid or dead
if(health>-100 && amount_grown < max_grown)
if(stat != DEAD && amount_grown < max_grown)
amount_grown++
if (radiation)

View File

@@ -4,6 +4,9 @@
set desc = "Allows to hide beneath tables or certain items. Toggled on or off."
set category = "Alien"
if(stat != CONSCIOUS)
return
if (layer != TURF_LAYER+0.2)
layer = TURF_LAYER+0.2
src << text("\green You are now hiding.")
@@ -22,6 +25,9 @@
set desc = "Evolve into a fully grown Alien."
set category = "Alien"
if(stat != CONSCIOUS)
return
if(amount_grown >= max_grown) //TODO ~Carn
src << "\green You are growing into a beautiful alien! It is time to choose a caste."
src << "\green There are three to choose from:"

View File

@@ -6,6 +6,7 @@
maxHealth = 300
health = 300
var/sight_mode = 0
var/custom_name = ""
//Hud stuff
@@ -59,10 +60,9 @@
spark_system.set_up(5, 0, src)
spark_system.attach(src)
if(cmptext(real_name,"Cyborg"))
ident = rand(1, 999)
real_name += "-[ident]"
name = real_name
ident = rand(1, 999)
updatename("Default")
if(!cell)
cell = new /obj/item/weapon/cell(src)
@@ -117,7 +117,7 @@
return
switch(mod)
if("Standard")
updatename()
updatename(mod)
module = new /obj/item/weapon/robot_module/standard(src)
hands.icon_state = "standard"
icon_state = "robot"
@@ -185,13 +185,14 @@
updateicon()
/mob/living/silicon/robot/proc/updatename(var/prefix as text)
if( length(real_name) < 7 || !prefix ) return
//not really necessary but just to avoid annoying people with
//unique names seeming as nobody could give me a straight answer as
//to whether to remove custom borg names completely.
if(cmptext(copytext(real_name, 1, 7),"Cyborg"))
real_name = "[prefix] [real_name]"
name = real_name
var/changed_name = ""
if(custom_name)
changed_name = custom_name
else
changed_name = "[(prefix ? "[prefix] " : "")]Cyborg-[num2text(ident)]"
real_name = changed_name
name = real_name
/mob/living/silicon/robot/verb/cmd_robot_alerts()
set category = "Robot Commands"