Examining robomodules.

This commit is contained in:
Segrain
2014-11-21 19:28:46 +03:00
parent 843aa3c126
commit 7f199874fb
3 changed files with 8 additions and 7 deletions

View File

@@ -187,17 +187,17 @@ its easier to just keep the beam vertical.
//All atoms
/atom/proc/examine(mob/user, var/distance = -1, var/sufix = "")
/atom/proc/examine(mob/user, var/distance = -1, var/infix = "", var/suffix = "")
//This reformat names to get a/an properly working on item descriptions when they are bloody
var/f_name = "\a [src]."
var/f_name = "\a [src][infix]."
if(src.blood_DNA && !istype(src, /obj/effect/decal))
if(gender == PLURAL)
f_name = "some "
else
f_name = "a "
f_name += "<span class='danger'>blood-stained</span> [name]!"
f_name += "<span class='danger'>blood-stained</span> [name][infix]!"
user << "\icon[src] That's [f_name] [sufix]"
user << "\icon[src] That's [f_name] [suffix]"
if(desc)
user << desc

View File

@@ -117,8 +117,8 @@
size = "huge"
else
//if ((CLUMSY in usr.mutations) && prob(50)) t = "funny-looking"
var/custom_sufix = "It is a [size] item."
return ..(user, distance, custom_sufix)
var/custom_suffix = "It is a [size] item."
return ..(user, distance, suffix = custom_suffix)
/obj/item/attack_hand(mob/user as mob)
if (!user) return

View File

@@ -1,5 +1,6 @@
/mob/living/silicon/robot/examine(mob/user)
..(user)
var/custom_infix = custom_name ? ", [modtype] [braintype]" : ""
..(user, infix = custom_infix)
var/msg = ""
msg += "<span class='warning'>"