Round statistics:

adminhelps, air alarms, borg deaths.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2331 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
bbusse@gmail.com
2011-10-06 00:18:05 +00:00
parent 3c7e103687
commit ed35e86839
5 changed files with 22 additions and 6 deletions
+14 -6
View File
@@ -20,8 +20,16 @@ var/global/datum/tension/tension_master
var/deaths
var/human_deaths
var/explosions
var/adminhelps
var/air_alarms
New()
score = 0
deaths=0
human_deaths=0
explosions=0
adminhelps=0
air_alarms=0
proc/process()
score += get_num_players()*PLAYER_WEIGHT
@@ -50,8 +58,8 @@ var/global/datum/tension/tension_master
score += EXPLO_SCORE
explosions++
New()
score = 0
deaths=0
human_deaths=0
explosions=0
proc/new_adminhelp()
adminhelps++
proc/new_air_alarm()
air_alarms++
+1
View File
@@ -690,6 +690,7 @@ table tr:first-child th:first-child { border: none;}
if(alert_level==2)
alert_signal.data["alert"] = "severe"
tension_master.new_air_alarm() //log this for stats purposes
else if (alert_level==1)
alert_signal.data["alert"] = "minor"
else if (alert_level==0)
+1
View File
@@ -21,3 +21,4 @@
usr << "Your message has been broadcast to administrators."
log_admin("HELP: [key_name(src)]: [msg]")
tension_master.new_adminhelp()
+4
View File
@@ -212,11 +212,15 @@
<B>Deaths:</B> [tension_master.deaths]<BR>
---- <I>Humans:</I> [tension_master.human_deaths]<BR>
<B>Explosions:</B> [tension_master.explosions]<BR>
<B>Air alarms:</B> [tension_master.air_alarms]<BR>
<B>Adminhelps:</B> [tension_master.adminhelps]<BR>
<BR>
<B>Current Status</B><BR>
<B>Tension:</B> [tension_master.score]<BR>
<B>Tension per player:</B> [tension_master.score/tension_master.get_num_players()]<BR>
<B>Recommendations:</B> not yet implemented<BR>
<BR>
"}
usr << browse(output,"window=tensionreport")
@@ -5,6 +5,8 @@
src.stat = 2
src.canmove = 0
tension_master.death(src)
src.camera.status = 0.0
if(src.in_contents_of(/obj/machinery/recharge_station))//exit the recharge station