Added stat tracking for cyborg frames built, cyborgs created, MMIs filled, AIs created, and cyborg modules chosen.

cyborg_frames_built
cyborgs_created
mmis_filled
ais_created

standard_cyborgs
service_cyborgs
miner_cyborgs
medical_cyborgs
security_cyborgs
engineering_cyborgs
janitor_cyborgs

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3064 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
petethegoat@gmail.com
2012-02-09 02:27:54 +00:00
parent abe5e4ba9d
commit 24e2aedab8
5 changed files with 14 additions and 0 deletions

View File

@@ -154,6 +154,7 @@
playsound(loc, 'Screwdriver.ogg', 50, 1)
user << "\blue You connect the monitor."
new /mob/living/silicon/ai ( loc, laws, brain )
feedback_inc("ais_created",1)
del(src)
/obj/structure/AIcore/deactivated

View File

@@ -90,6 +90,7 @@
if(src.l_arm && src.r_arm)
if(src.l_leg && src.r_leg)
if(src.chest && src.head)
feedback_inc("cyborg_frames_built",1)
return 1
return 0
@@ -206,6 +207,8 @@
W.loc = O//Should fix cybros run time erroring when blown up. It got deleted before, along with the frame.
O.mmi = W
feedback_inc("cyborgs_created",1)
del(src)
else
user << "\blue The MMI must go in after everything else!"

View File

@@ -41,6 +41,9 @@
icon_state = "mmi_full"
locked = 1
feedback_inc("mmis_filled",1)
return
if((istype(O,/obj/item/weapon/card/id)||istype(O,/obj/item/device/pda)) && brainmob)

View File

@@ -71,6 +71,7 @@
hands.icon_state = "standard"
icon_state = "robot"
modtype = "Stand"
feedback_inc("standard_cyborgs",1)
if("Service")
module = new /obj/item/weapon/robot_module/butler(src)
@@ -87,12 +88,14 @@
else
icon_state = "Service2"
modtype = "Butler"
feedback_inc("service_cyborgs",1)
if("Miner")
module = new /obj/item/weapon/robot_module/miner(src)
hands.icon_state = "miner"
icon_state = "Miner"
modtype = "Miner"
feedback_inc("miner_cyborgs",1)
if("Medical")
module = new /obj/item/weapon/robot_module/medical(src)
@@ -100,24 +103,28 @@
icon_state = "surgeon"
modtype = "Med"
nopush = 1
feedback_inc("medical_cyborgs",1)
if("Security")
module = new /obj/item/weapon/robot_module/security(src)
hands.icon_state = "security"
icon_state = "bloodhound"
modtype = "Sec"
feedback_inc("security_cyborgs",1)
if("Engineering")
module = new /obj/item/weapon/robot_module/engineering(src)
hands.icon_state = "engineer"
icon_state = "landmate"
modtype = "Eng"
feedback_inc("engineering_cyborgs",1)
if("Janitor")
module = new /obj/item/weapon/robot_module/janitor(src)
hands.icon_state = "janitor"
icon_state = "mopgearrex"
modtype = "Jan"
feedback_inc("janitor_cyborgs",1)
overlays -= "eyes" //Takes off the eyes that it started with
updateicon()

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB