<commit_before>#define PLAYER_WEIGHT 5
#define HUMAN_DEATH -5000
#define OTHER_DEATH -5000
#define EXPLO_SCORE -10000 //boum

#define COOLDOWN_TIME 12000 // Twenty minutes
#define MIN_ROUND_TIME 18000


#define FLAT_PERCENT 0

//estimated stats
//80 minute round
//60 player server
//48k player-ticks

//60 deaths (ideally)
//20 explosions


var/global/datum/tension/tension_master

/datum/tension
	var/score

	var/deaths
	var/human_deaths
	var/explosions
	var/adminhelps
	var/air_alarms

	var/nuketeam = 0
	var/malfAI = 0
	var/wizard = 0

	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 = null



	var/list/potentialgames = list()

	New()
		score = 0
		deaths=0
		human_deaths=0
		explosions=0
		adminhelps=0
		air_alarms=0

		if(FLAT_PERCENT)						// I cannot into balance
			antagonistmodes = list (
			"POINTS_FOR_TRATIOR" 		=	6,
			"POINTS_FOR_CHANGLING"		=	6,
			"POINTS_FOR_REVS"			=	3,
			"POINTS_FOR_MALF"			=	1,
			"POINTS_FOR_WIZARD"			=	2,
		 	"POINTS_FOR_CULT"			=	3,
		 	"POINTS_FOR_NUKETEAM"		=	2,
		 	"POINTS_FOR_ALIEN"			=	5,
		 	"POINTS_FOR_NINJA"			=	3,
		 	"POINTS_FOR_DEATHSQUAD"		=	2,
		 	"POINTS_FOR_BORGDEATHSQUAD" =	2
			)

		else
			antagonistmodes = list (
			"POINTS_FOR_TRATIOR" 		=	100000,
			"POINTS_FOR_CHANGLING"		=	120000,
			"POINTS_FOR_REVS"			=	150000,
			"POINTS_FOR_MALF"			=	250000,
			"POINTS_FOR_WIZARD"			=	150000,
		 	"POINTS_FOR_CULT"			=	150000,
		 	"POINTS_FOR_NUKETEAM"		=	250000,
		 	"POINTS_FOR_ALIEN"			=	200000,
		 	"POINTS_FOR_NINJA"			=	200000,
		 	"POINTS_FOR_DEATHSQUAD"		=	500000,
		 	"POINTS_FOR_BORGDEATHSQUAD" =	500000
			)

	proc/process()
		score += get_num_players()*PLAYER_WEIGHT

		if(config.Tensioner_Active)
			if(world.time > MIN_ROUND_TIME)
				round1++
				if(!supress && !cooldown)
					if(prob(1) || forcenexttick)
						round2++
						if(prob(10) || forcenexttick)
							round3++
							if(forcenexttick)
								forcenexttick = 0

							for (var/mob/M in world)
								if (M.client && M.client.holder)
									M << "<font color='red' size='6'><b> The tensioner wishes to create additional antagonists!  Press (<a href='?src=\ref[tension_master];Supress=1'>this</a>) in 60 seconds to abort!</b></font>"

							spawn(600)
								if(!supress)
									cooldown = 1
									spawn(COOLDOWN_TIME)
										cooldown = 0
									round4++

									if(!antagonistmodes.len)
										return
<commit_msg>Decreases the side of the tensioner warning<commit_after>#define PLAYER_WEIGHT 5
#define HUMAN_DEATH -5000
#define OTHER_DEATH -5000
#define EXPLO_SCORE -10000 //boum

#define COOLDOWN_TIME 12000 // Twenty minutes
#define MIN_ROUND_TIME 18000


#define FLAT_PERCENT 0

//estimated stats
//80 minute round
//60 player server
//48k player-ticks

//60 deaths (ideally)
//20 explosions


var/global/datum/tension/tension_master

/datum/tension
	var/score

	var/deaths
	var/human_deaths
	var/explosions
	var/adminhelps
	var/air_alarms

	var/nuketeam = 0
	var/malfAI = 0
	var/wizard = 0

	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 = null



	var/list/potentialgames = list()

	New()
		score = 0
		deaths=0
		human_deaths=0
		explosions=0
		adminhelps=0
		air_alarms=0

		if(FLAT_PERCENT)						// I cannot into balance
			antagonistmodes = list (
			"POINTS_FOR_TRATIOR" 		=	6,
			"POINTS_FOR_CHANGLING"		=	6,
			"POINTS_FOR_REVS"			=	3,
			"POINTS_FOR_MALF"			=	1,
			"POINTS_FOR_WIZARD"			=	2,
		 	"POINTS_FOR_CULT"			=	3,
		 	"POINTS_FOR_NUKETEAM"		=	2,
		 	"POINTS_FOR_ALIEN"			=	5,
		 	"POINTS_FOR_NINJA"			=	3,
		 	"POINTS_FOR_DEATHSQUAD"		=	2,
		 	"POINTS_FOR_BORGDEATHSQUAD" =	2
			)

		else
			antagonistmodes = list (
			"POINTS_FOR_TRATIOR" 		=	100000,
			"POINTS_FOR_CHANGLING"		=	120000,
			"POINTS_FOR_REVS"			=	150000,
			"POINTS_FOR_MALF"			=	250000,
			"POINTS_FOR_WIZARD"			=	150000,
		 	"POINTS_FOR_CULT"			=	150000,
		 	"POINTS_FOR_NUKETEAM"		=	250000,
		 	"POINTS_FOR_ALIEN"			=	200000,
		 	"POINTS_FOR_NINJA"			=	200000,
		 	"POINTS_FOR_DEATHSQUAD"		=	500000,
		 	"POINTS_FOR_BORGDEATHSQUAD" =	500000
			)

	proc/process()
		score += get_num_players()*PLAYER_WEIGHT

		if(config.Tensioner_Active)
			if(world.time > MIN_ROUND_TIME)
				round1++
				if(!supress && !cooldown)
					if(prob(1) || forcenexttick)
						round2++
						if(prob(10) || forcenexttick)
							round3++
							if(forcenexttick)
								forcenexttick = 0

							for (var/mob/M in world)
								if (M.client && M.client.holder)
									M << "<font color='red' size='3'><b> The tensioner wishes to create additional antagonists!  Press (<a href='?src=\ref[tension_master];Supress=1'>this</a>) in 60 seconds to abort!</b></font>"

							spawn(600)
								if(!supress)
									cooldown = 1
									spawn(COOLDOWN_TIME)
										cooldown = 0
									round4++

									if(!antagonistmodes.len)
										return

{'fraction_non_alphanumeric': 0.11323003575685339, 'fraction_numerical': 0.05959475566150179, 'mean_word_length': 2.882035466461064, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6942729', 'n_tokens_mistral': 2860, 'n_tokens_neox': 2235, 'n_words': 386}