mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
-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:
@@ -377,8 +377,8 @@ var/list/sacrificed = list()
|
|||||||
"\red You hear liquid flowing.")
|
"\red You hear liquid flowing.")
|
||||||
D.real_name = "Unknown"
|
D.real_name = "Unknown"
|
||||||
for(var/obj/item/weapon/paper/P in this_rune.loc)
|
for(var/obj/item/weapon/paper/P in this_rune.loc)
|
||||||
if(length(P.name)<=24)
|
if(P.info)
|
||||||
D.real_name = P.name
|
D.real_name = copytext(P.info, 1, MAX_NAME_LEN)
|
||||||
break
|
break
|
||||||
D.universal_speak = 1
|
D.universal_speak = 1
|
||||||
D.nodamage = 0
|
D.nodamage = 0
|
||||||
|
|||||||
@@ -42,6 +42,7 @@
|
|||||||
if(iswelder(W))
|
if(iswelder(W))
|
||||||
if(weld(W, user))
|
if(weld(W, user))
|
||||||
user << "You weld the assembly securely into place."
|
user << "You weld the assembly securely into place."
|
||||||
|
anchored = 1
|
||||||
state = 2
|
state = 2
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
if(weld(W, user))
|
if(weld(W, user))
|
||||||
user << "You unweld the assembly from it's place."
|
user << "You unweld the assembly from it's place."
|
||||||
state = 1
|
state = 1
|
||||||
|
anchored = 1
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
@@ -96,14 +98,14 @@
|
|||||||
|
|
||||||
else if(iswirecutter(W))
|
else if(iswirecutter(W))
|
||||||
|
|
||||||
new/obj/item/weapon/cable_coil(src.loc, 2)
|
new/obj/item/weapon/cable_coil(get_turf(src), 2)
|
||||||
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
playsound(src.loc, 'sound/items/Wirecutter.ogg', 50, 1)
|
||||||
user << "You cut the wires from the circuits."
|
user << "You cut the wires from the circuits."
|
||||||
state = 2
|
state = 2
|
||||||
return
|
return
|
||||||
|
|
||||||
// Upgrades!
|
// Upgrades!
|
||||||
if(is_type_in_list(W, possible_upgrades))
|
if(is_type_in_list(W, possible_upgrades) && !is_type_in_list(W, upgrades)) // Is a possible upgrade and isn't in the camera already.
|
||||||
user << "You attach the [W] into the assembly inner circuits."
|
user << "You attach the [W] into the assembly inner circuits."
|
||||||
upgrades += W
|
upgrades += W
|
||||||
user.drop_item(W)
|
user.drop_item(W)
|
||||||
@@ -116,7 +118,7 @@
|
|||||||
if(U)
|
if(U)
|
||||||
user << "You unattach an upgrade from the assembly."
|
user << "You unattach an upgrade from the assembly."
|
||||||
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
|
playsound(src.loc, 'sound/items/Crowbar.ogg', 50, 1)
|
||||||
U.loc = src.loc
|
U.loc = get_turf(src)
|
||||||
upgrades -= U
|
upgrades -= U
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
var/obj/item/robot_parts/r_leg/r_leg = null
|
var/obj/item/robot_parts/r_leg/r_leg = null
|
||||||
var/obj/item/robot_parts/chest/chest = null
|
var/obj/item/robot_parts/chest/chest = null
|
||||||
var/obj/item/robot_parts/head/head = null
|
var/obj/item/robot_parts/head/head = null
|
||||||
var/created_name = "Cyborg"
|
var/created_name = ""
|
||||||
|
|
||||||
/obj/item/robot_parts/robot_suit/New()
|
/obj/item/robot_parts/robot_suit/New()
|
||||||
..()
|
..()
|
||||||
@@ -194,8 +194,8 @@
|
|||||||
user.drop_item()
|
user.drop_item()
|
||||||
|
|
||||||
O.invisibility = 0
|
O.invisibility = 0
|
||||||
O.name = created_name
|
O.custom_name = created_name
|
||||||
O.real_name = created_name
|
O.updatename("Default")
|
||||||
|
|
||||||
M.brainmob.mind.transfer_to(O)
|
M.brainmob.mind.transfer_to(O)
|
||||||
|
|
||||||
|
|||||||
@@ -33,8 +33,7 @@
|
|||||||
del(R.module)
|
del(R.module)
|
||||||
R.module = null
|
R.module = null
|
||||||
R.modtype = "robot"
|
R.modtype = "robot"
|
||||||
R.real_name = "Cyborg [R.ident]"
|
R.updatename("Default")
|
||||||
R.name = R.real_name
|
|
||||||
R.nopush = 0
|
R.nopush = 0
|
||||||
R.updateicon()
|
R.updateicon()
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
proc/handle_mutations_and_radiation()
|
proc/handle_mutations_and_radiation()
|
||||||
|
|
||||||
//grow!! but not if metroid or dead
|
//grow!! but not if metroid or dead
|
||||||
if(health>-100 && amount_grown < max_grown)
|
if(stat != DEAD && amount_grown < max_grown)
|
||||||
amount_grown++
|
amount_grown++
|
||||||
|
|
||||||
if (radiation)
|
if (radiation)
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
set desc = "Allows to hide beneath tables or certain items. Toggled on or off."
|
set desc = "Allows to hide beneath tables or certain items. Toggled on or off."
|
||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
|
if(stat != CONSCIOUS)
|
||||||
|
return
|
||||||
|
|
||||||
if (layer != TURF_LAYER+0.2)
|
if (layer != TURF_LAYER+0.2)
|
||||||
layer = TURF_LAYER+0.2
|
layer = TURF_LAYER+0.2
|
||||||
src << text("\green You are now hiding.")
|
src << text("\green You are now hiding.")
|
||||||
@@ -22,6 +25,9 @@
|
|||||||
set desc = "Evolve into a fully grown Alien."
|
set desc = "Evolve into a fully grown Alien."
|
||||||
set category = "Alien"
|
set category = "Alien"
|
||||||
|
|
||||||
|
if(stat != CONSCIOUS)
|
||||||
|
return
|
||||||
|
|
||||||
if(amount_grown >= max_grown) //TODO ~Carn
|
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 You are growing into a beautiful alien! It is time to choose a caste."
|
||||||
src << "\green There are three to choose from:"
|
src << "\green There are three to choose from:"
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
maxHealth = 300
|
maxHealth = 300
|
||||||
health = 300
|
health = 300
|
||||||
var/sight_mode = 0
|
var/sight_mode = 0
|
||||||
|
var/custom_name = ""
|
||||||
|
|
||||||
//Hud stuff
|
//Hud stuff
|
||||||
|
|
||||||
@@ -59,10 +60,9 @@
|
|||||||
spark_system.set_up(5, 0, src)
|
spark_system.set_up(5, 0, src)
|
||||||
spark_system.attach(src)
|
spark_system.attach(src)
|
||||||
|
|
||||||
if(cmptext(real_name,"Cyborg"))
|
|
||||||
ident = rand(1, 999)
|
ident = rand(1, 999)
|
||||||
real_name += "-[ident]"
|
updatename("Default")
|
||||||
name = real_name
|
|
||||||
|
|
||||||
if(!cell)
|
if(!cell)
|
||||||
cell = new /obj/item/weapon/cell(src)
|
cell = new /obj/item/weapon/cell(src)
|
||||||
@@ -117,7 +117,7 @@
|
|||||||
return
|
return
|
||||||
switch(mod)
|
switch(mod)
|
||||||
if("Standard")
|
if("Standard")
|
||||||
updatename()
|
updatename(mod)
|
||||||
module = new /obj/item/weapon/robot_module/standard(src)
|
module = new /obj/item/weapon/robot_module/standard(src)
|
||||||
hands.icon_state = "standard"
|
hands.icon_state = "standard"
|
||||||
icon_state = "robot"
|
icon_state = "robot"
|
||||||
@@ -185,13 +185,14 @@
|
|||||||
updateicon()
|
updateicon()
|
||||||
|
|
||||||
/mob/living/silicon/robot/proc/updatename(var/prefix as text)
|
/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
|
var/changed_name = ""
|
||||||
//unique names seeming as nobody could give me a straight answer as
|
if(custom_name)
|
||||||
//to whether to remove custom borg names completely.
|
changed_name = custom_name
|
||||||
if(cmptext(copytext(real_name, 1, 7),"Cyborg"))
|
else
|
||||||
real_name = "[prefix] [real_name]"
|
changed_name = "[(prefix ? "[prefix] " : "")]Cyborg-[num2text(ident)]"
|
||||||
name = real_name
|
real_name = changed_name
|
||||||
|
name = real_name
|
||||||
|
|
||||||
/mob/living/silicon/robot/verb/cmd_robot_alerts()
|
/mob/living/silicon/robot/verb/cmd_robot_alerts()
|
||||||
set category = "Robot Commands"
|
set category = "Robot Commands"
|
||||||
|
|||||||
Reference in New Issue
Block a user