- Added a gender description to the details that get printed when you click the (?) button.

- Added a link to a few useful tools that get printed along with the gender change warning. The tools are (?), (PM), (VV) and (JMP)

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4589 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
baloh.matevz
2012-08-30 14:28:04 +00:00
parent 760a57c44d
commit fda36cce49
2 changed files with 16 additions and 5 deletions

View File

@@ -1189,6 +1189,7 @@ var/global/BSACooldown = 0
var/location_description = "" var/location_description = ""
var/special_role_description = "" var/special_role_description = ""
var/health_description = "" var/health_description = ""
var/gender_description = ""
var/turf/T = get_turf(M) var/turf/T = get_turf(M)
//Location //Location
@@ -1211,17 +1212,23 @@ var/global/BSACooldown = 0
var/status var/status
switch (M.stat) switch (M.stat)
if (0) status = "Alive" if (0) status = "Alive"
if (1) status = "\yellow Unconscious" if (1) status = "<font color='orange'><b>Unconscious</b></font>"
if (2) status = "\red Dead" if (2) status = "<font color='red'><b>Dead</b></font>"
health_description = "Status - [status]" health_description = "Status = [status]"
health_description += "<BR>Oxy: [L.getOxyLoss()] - Tox: [L.getToxLoss()] - Fire: [L.getFireLoss()] - Brute: [L.getBruteLoss()] - Clone: [L.getCloneLoss()] - Brain: [L.getBrainLoss()]" health_description += "<BR>Oxy: [L.getOxyLoss()] - Tox: [L.getToxLoss()] - Fire: [L.getFireLoss()] - Brute: [L.getBruteLoss()] - Clone: [L.getCloneLoss()] - Brain: [L.getBrainLoss()]"
else else
// world <<"Has no health." // world <<"Has no health."
health_description = "This mob type has no health to speak of." health_description = "This mob type has no health to speak of."
//Gener
if(M.gender in list(MALE,FEMALE))
gender_description = "[M.gender]"
else
gender_description = "<font color='red'><b>[M.gender]</b></font>"
// world <<"Displaying info about the mob..." // world <<"Displaying info about the mob..."
src.owner << "<b>Info about [M.name]:</b> " src.owner << "<b>Info about [M.name]:</b> "
src.owner << "Mob type = [M.type]; Damage = [health_description]" src.owner << "Mob type = [M.type]; Gender = [gender_description] Damage = [health_description]"
src.owner << "Name = <b>[M.name]</b>; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = <b>[M.key]</b>;" src.owner << "Name = <b>[M.name]</b>; Real_name = [M.real_name]; Mind_name = [M.mind?"[M.mind.name]":""]; Key = <b>[M.key]</b>;"
src.owner << "Location = [location_description];" src.owner << "Location = [location_description];"
src.owner << "[special_role_description]" src.owner << "[special_role_description]"

View File

@@ -38,10 +38,12 @@
..() ..()
//This code is here to try to determine what causes the gender switch to plural error. Once the error is tracked down and fixed, this code should be deleted
//Also delete var/prev_gender once this is removed.
if(prev_gender != gender) if(prev_gender != gender)
prev_gender = gender prev_gender = gender
if(gender in list(PLURAL, NEUTER)) if(gender in list(PLURAL, NEUTER))
message_admins("[src] ([ckey]) gender has been changed to plural or neuter. Please record what has happened recently to the person and then notify coders.") message_admins("[src] ([ckey]) gender has been changed to plural or neuter. Please record what has happened recently to the person and then notify coders. (<A HREF='?src=%holder_ref%;adminmoreinfo=\ref[src]'>?</A>) (<A HREF='?src=%holder_ref%;adminplayervars=\ref[src]'>VV</A>) (<A HREF='?src=%admin_ref%;priv_msg=\ref[src]'>PM</A>) (<A HREF='?src=%holder_ref%;adminplayerobservejump=\ref[src]'>JMP</A>)",1,1) //The 1,1 at the end is there to make '%holder_ref%' get replaced with the actual ref object
//Apparently, the person who wrote this code designed it so that //Apparently, the person who wrote this code designed it so that
//blinded get reset each cycle and then get activated later in the //blinded get reset each cycle and then get activated later in the
@@ -96,6 +98,8 @@
handle_regular_hud_updates() handle_regular_hud_updates()
gender_archive = gender
// Grabbing // Grabbing
for(var/obj/item/weapon/grab/G in src) for(var/obj/item/weapon/grab/G in src)
G.process() G.process()