mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Bit of extra logging added to the tensioner, fixes possible bug, exposes some server settings via show-server-revision.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3287 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -86,5 +86,11 @@ client/verb/showrevinfo()
|
||||
var/output = "Sorry, the revision info is unavailable."
|
||||
if(revdata)
|
||||
output = revdata.showInfo()
|
||||
|
||||
output += "Current Infomational Settings: <br>"
|
||||
output += "Tensioner Status: [config.Tensioner_Active]<br>"
|
||||
//output += "Current Tension: [tension_master.score]<br>"
|
||||
//output += "Tensioner Debug Data: R1:[tension_master.round1] R2:[tension_master.round2] R3:[tension_master.round3] R4:[tension_master.round4] ES: [tension_master.eversupressed] CD: [tension_master.cooldown]<br>"
|
||||
output += "Protect Authority Roles From Tratior: [config.protect_roles_from_antagonist]<br>"
|
||||
usr << browse(output,"window=revdata");
|
||||
return
|
||||
|
||||
@@ -29,6 +29,13 @@ var/global/datum/tension/tension_master
|
||||
|
||||
var/forcenexttick = 0
|
||||
var/supress = 0
|
||||
var/eversupressed = 0
|
||||
var/cooldown = 0
|
||||
|
||||
var/round1 = 0
|
||||
var/round2 = 0
|
||||
var/round3 = 0
|
||||
var/round4 = 0
|
||||
|
||||
var/list/antagonistmodes = list (
|
||||
"POINTS_FOR_TRATIOR" = 10000,
|
||||
@@ -58,9 +65,12 @@ var/global/datum/tension/tension_master
|
||||
|
||||
if(config.Tensioner_Active)
|
||||
if(score > 10000)
|
||||
if(!supress)
|
||||
round1++
|
||||
if(!supress && !cooldown)
|
||||
if(prob(1) || forcenexttick)
|
||||
round2++
|
||||
if(prob(50) || forcenexttick)
|
||||
round3++
|
||||
if(forcenexttick)
|
||||
forcenexttick = 0
|
||||
|
||||
@@ -70,6 +80,10 @@ var/global/datum/tension/tension_master
|
||||
|
||||
spawn(300)
|
||||
if(!supress)
|
||||
cooldown = 1
|
||||
spawn(6000)
|
||||
cooldown = 0
|
||||
round4++
|
||||
for(var/V in antagonistmodes) // OH SHIT SOMETHING IS GOING TO HAPPEN NOW
|
||||
if(antagonistmodes[V] < score)
|
||||
potentialgames.Add(V)
|
||||
@@ -210,6 +224,7 @@ var/global/datum/tension/tension_master
|
||||
|
||||
else if (href_list["Supress"])
|
||||
supress = 1
|
||||
eversupressed++
|
||||
spawn(6000)
|
||||
supress = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user