<commit_before>function GrimDarkQuests(session){
	this.session = session;
	this.canRepeat = true;
	this.players = [];
	//grim dark players don't do their jobs. they try to crash the session.
	this.trigger = function(playerList){
		this.players = [];
		var living = findLivingPlayers(playerList);
		for (var i = 0; i<living.length; i++){
			var player = living[i];
			if(player.grimDark>2){
				 this.players.push(player)
			}else if(player.grimDark>1 && Math.seededRandom() > .5){
				this.players.push(player)
			}
		}

		return this.players.length>0;
	}

	//power of friendship defeats corruptions.
	this.checkSnapOutOfIt = function(player){
		var bestFriend = player.getBestFriend();
		if(bestFriend){
			var r = player.getRelationshipWith(bestFriend);
			if(r.value > 10){
				var ret =  "The " + player.htmlTitle() + " suddenly snaps out of it.  Their friendship with the " + bestFriend.htmlTitleBasic() + " has managed to free them of the Horrorterror's influence. ";
				if(bestFriend.grimDark > 1) ret += " The irony of this does not escape anyone. "
				player.grimDark = 1;
				return ret;
			}
		}
		return null;

	}

	this.workToCrashSession = function(player){
			var tasks = ["try to explode a gate using dark magicks. ", "try to destroy a temple meant to help them with their Quests.","search for the game disk for SBURB itself.","seek the counsel of the nobel circle of the Horrorterrors.","begin asking the local consorts VERY uncomfortable questsions.","meet with the Black Queen to discuss game destroying options.","attempt to use their powers to access the Game's source code.","exploit glitches to access areas of the game meant never to be seen by players.","seek forbidden knowledge hidden deep within the glitchiest parts of the Furthest Ring."];
			var quip = "";
			this.session.sessionHealth += -1* player.power; //more powerful the player, the more damage they do. get rid of grimDark bonus
			player.landLevel += -1; //if they manage to snap out of this, they are gonna still have a bad time. why did they think this was a good idea?
			if(player.power < 210){
				quip = "Luckily, they kind of suck at this game. "
			}else if(player.power > 250){
				quip = " They seem strong enough to do some serious damage. "
			}else if(player.power > 300){
				quip = " Oh shit. This looks bad. "
			}
			return "The "+ player.htmlTitle() + " is trying to break SBURB itself. They " + getRandomElementFromArray(tasks) + quip;<commit_msg>less irony<commit_after>function GrimDarkQuests(session){
	this.session = session;
	this.canRepeat = true;
	this.players = [];
	//grim dark players don't do their jobs. they try to crash the session.
	this.trigger = function(playerList){
		this.players = [];
		var living = findLivingPlayers(playerList);
		for (var i = 0; i<living.length; i++){
			var player = living[i];
			if(player.grimDark>2){
				 this.players.push(player)
			}else if(player.grimDark>1 && Math.seededRandom() > .5){
				this.players.push(player)
			}
		}

		return this.players.length>0;
	}

	//power of friendship defeats corruptions.
	this.checkSnapOutOfIt = function(player){
		var bestFriend = player.getBestFriend();
		if(bestFriend){
			var r = player.getRelationshipWith(bestFriend);
			if(r.value > 10){
				var ret =  "The " + player.htmlTitle() + " suddenly snaps out of it.  Their friendship with the " + bestFriend.htmlTitle() + " has managed to free them of the Horrorterror's influence. ";
				if(bestFriend.grimDark > 1) ret += " The irony of this does not escape anyone. "
				player.grimDark = 1;
				return ret;
			}
		}
		return null;

	}

	this.workToCrashSession = function(player){
			var tasks = ["try to explode a gate using dark magicks. ", "try to destroy a temple meant to help them with their Quests.","search for the game disk for SBURB itself.","seek the counsel of the nobel circle of the Horrorterrors.","begin asking the local consorts VERY uncomfortable questsions.","meet with the Black Queen to discuss game destroying options.","attempt to use their powers to access the Game's source code.","exploit glitches to access areas of the game meant never to be seen by players.","seek forbidden knowledge hidden deep within the glitchiest parts of the Furthest Ring."];
			var quip = "";
			this.session.sessionHealth += -1* player.power; //more powerful the player, the more damage they do. get rid of grimDark bonus
			player.landLevel += -1; //if they manage to snap out of this, they are gonna still have a bad time. why did they think this was a good idea?
			if(player.power < 210){
				quip = "Luckily, they kind of suck at this game. "
			}else if(player.power > 250){
				quip = " They seem strong enough to do some serious damage. "
			}else if(player.power > 300){
				quip = " Oh shit. This looks bad. "
			}
			return "The "+ player.htmlTitle() + " is trying to break SBURB itself. They " + getRandomElementFromArray(tasks) + quip;
{'fraction_non_alphanumeric': 0.10798696006519967, 'fraction_numerical': 0.008149959250203748, 'mean_word_length': 3.6398865784499055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '4874872', 'n_tokens_mistral': 1670, 'n_tokens_neox': 1449, 'n_words': 568}