<commit_before>/datum/mutiny_fluff
	var/datum/game_mode/mutiny/mode

	New(datum/game_mode/mutiny/M)
		mode = M

	proc/announce_directives()
		for (var/obj/machinery/faxmachine/fax in world)
			if (fax.department == "Captain's Office")
				var/obj/item/weapon/paper/directive_x = new(fax.loc)
				directive_x.name = "emergency action message"
				directive_x.info = get_fax_body()

	proc/get_fax_body()
		return {"
			<center><h5>NOT A DRILL . . . EMERGENCY DIRECTIVE . . . NOT A DRILL</h5></center>
			<p>
				<b>TO:</b> Captain [mode.head_loyalist], Commanding Officer, [station_name()]<br>
				<b>FROM:</b> NanoTrasen Emergency Messaging Relay<br>
				<b>DATE:</b> [time2text(world.realtime, "MM/DD")]/[game_year]<br>
				<b>SUBJECT:</b> Directive X<br>
			</p>

			[mode.current_directive.get_description()]

			<hr>
			<h5><b>Emergency Authentication Protocol</b></h5>
			<p>
				A member of your Command Staff is this shift's designated Emergency Secondary Authenticator.<br>
				This Emergency Secondary Authenticator is uniquely aware of their role and possesses the Emergency Secondary Authentication Key.<br>
				As Captain, you possess the Captain's Authentication Key.<br>
				The Emergency Authentication Device is located in the vault of your station, and requires simultaneous activation of the Authentication Keys.<br>
				An <b>Authentication Key Pinpointer</b> can be delivered via Cargo Bay to assist recovery of the Authentication Keys should they be lost aboard the station.<br>
				A key's destruction or removal from the station's perimeter will automatically and irreversibly activate the Emergency Authentication Device.
			</p>
			<br>

			<h5><b>Orders</b></h5>
			<p>
				Captain [mode.head_loyalist], you are to immediately initiate the following procedure; codenamed Directive X:
			</p>
			<ol>
				[get_orders()]
			</ol>
			<br>

			<h5><b>Authentication</b></h5>

			<b>Encoded Authentication String:</b> <small>T0JCJUwoIVFDQA==</small><br>
			<b>Emergency Action Code:</b> O B B _ L _ _ Q C _<br>
			<font color='red'><u>ERROR: DECODING INCOMPLETE (40% LOSS)</u></font>
			<br>
			<br>
			<br>

			<center><h5>NOT A DRILL . . . EMERGENCY DIRECTIVE . . . NOT A DRILL</h5></center>
		"}

	proc/get_orders()
		var/text = "<li>Immediate external transmission and signals silence. Evacuation and Cargo services will remain available. All ERT teams are engaged elsewhere. Do not communicate with Central Command under any circumstances.</li>"
		for(var/order in mode.current_directive.special_orders)
			text += "<li>[order]</li>"

		text += "<li>Upon completion of this Directive, Captain [mode.head_loyalist] and the Emergency Secondary Authenticator must utilise the Captain's Authentication Key and the Emergency Secondary Authentication Key to activate the Emergency Authentication Device.</li>"
		return text

	proc/get_pda_body()
		return {"<b>&larr; From Anonymous Channel:</b> <p>\"You must read this! NanoTrasen Chain of Command COMPROMISED. Command Encryptions BROKEN. [station_name()] Captain [mode.head_loyalist] will receive orders that must NOT BE BROUGHT TO FRUITION!

They don't care about us they only care about WEALTH and POWER... Share this message with people you trust.

Be safe, friend.\" (Unable to Reply)</p>"}

	proc/announce()
		world << "<B>The current game mode is - Mutiny!</B>"
		world << {"
<p>The crew will be divided by their sense of ethics when a morally turbulent emergency directive arrives with an incomplete command validation code.<br><br>
The [loyalist_tag("Head Loyalist")] is the Captain, who carries the [loyalist_tag("Captain's Authentication Key")] at all times.<br>
The [mutineer_tag("Head Mutineer")] is a random Head of Staff who carries the [mutineer_tag("Emergency Secondary Authentication Key")].</p>
Both keys are required to activate the <b>Emergency Authentication Device (EAD)</b> in the vault, signalling to NanoTrasen that the directive is complete.
<hr>
<p>
<b>Loyalists</b> - Follow the Head Loyalist in carrying out [loyalist_tag("NanoTrasen's directives")] then activate the <b>EAD</b>.<br>
<b>Mutineers</b> - Prevent the completion of the [mutineer_tag("improperly validated directives")] and the activation of the <b>EAD</b>.
</p>
		"}

	proc/loyalist_tag(text)
		return "<font color='blue'><b>[text]</b></font>"

	proc/mutineer_tag(text)
		return "<font color='#FFA500'><b>[text]</b></font>"

	proc/their(datum/mind/head)
		if (head.current.gender == MALE)
			return "his"
		else if (head.current.gender == FEMALE)
			return "her"

		return "their"

	proc/loyalist_major_victory()
		return {"
NanoTrasen has praised the efforts of Captain [mode.head_loyalist] and loyal members of [their(mode.head_loyalist)] crew, who recently managed to put down a mutiny--amid a local interstellar crisis--aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
Despite the mutiny, the crew was successful in implementing the directive and activating their on-board emergency authentication device.
[mode.mutineers.len] members of the station's personnel were charged with terrorist action against the Company and, if found guilty by a Sol magistrate, will be sentenced to life incarceration.NanoTrasen will be awarding [mode.loyalists.len] members of the crew with the [loyalist_tag("Star of Loyalty")], following their successful efforts, at a ceremony this coming Thursday.
[mode.body_count.len] are believed to have died during the coup.
<p>NanoTrasen's image will forever be haunted by the fact that a mutiny took place on one of its own stations.</p>
		"}

	proc/loyalist_minor_victory()
		return {"
NanoTrasen has praised the efforts of Captain [mode.head_loyalist] and loyal members of [their(mode.head_loyalist)] crew, who recently managed to put down a mutiny--amid a local interstellar crisis--aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
Despite the mutiny, the crew was successful in implementing the directive. Unfortunately, they failed to notify Central Command of their successes due to a breach in the chain of command.
[mode.mutineers.len] members of the station's personnel were charged with terrorist action against the Company and, if found guilty by a Sol magistrate, will be sentenced to life incarceration.
NanoTrasen will be awarding [mode.loyalists.len] members of the crew with the [loyalist_tag("Star of Loyalty")], following their mostly successful efforts, at a ceremony this coming Thursday.
[mode.body_count.len] are believed to have died during the coup.
<p>NanoTrasen's image will forever be haunted by the fact that a mutiny took place on one of its own stations.</p>
		"}

	proc/no_victory()
		return {"
NanoTrasen has been thrust into turmoil following an apparent mutiny by key personnel aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
No further information has yet emerged from the station or its crew, who are presumed to be in holding with NanoTrasen investigators.
NanoTrasen officials refuse to comment.
Sources indicate that [mode.mutineers.len] members of the station's personnel are currently under investigation for terrorist activity, and [mode.loyalists.len] crew are currently providing evidence to investigators, believed to be the 'loyal' station personnel.
[mode.body_count.len] are believed to have died during the coup.
<p>NanoTrasen's image will forever be haunted by the fact that a mutiny took place on one of its own stations.</p>
		"}

	proc/mutineer_minor_victory()
		return {"
Reports have emerged that an impromptu mutiny has taken place, amid a local interstellar crisis, aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
Information at present indicates that the top-secret directive--which has since been retracted--was invalid due to a broken authentication code. Members of the crew, including an unidentified Head of Staff, prevented the directive from being accomplished.<commit_msg>Missed a linebreak.<commit_after>/datum/mutiny_fluff
	var/datum/game_mode/mutiny/mode

	New(datum/game_mode/mutiny/M)
		mode = M

	proc/announce_directives()
		for (var/obj/machinery/faxmachine/fax in world)
			if (fax.department == "Captain's Office")
				var/obj/item/weapon/paper/directive_x = new(fax.loc)
				directive_x.name = "emergency action message"
				directive_x.info = get_fax_body()

	proc/get_fax_body()
		return {"
			<center><h5>NOT A DRILL . . . EMERGENCY DIRECTIVE . . . NOT A DRILL</h5></center>
			<p>
				<b>TO:</b> Captain [mode.head_loyalist], Commanding Officer, [station_name()]<br>
				<b>FROM:</b> NanoTrasen Emergency Messaging Relay<br>
				<b>DATE:</b> [time2text(world.realtime, "MM/DD")]/[game_year]<br>
				<b>SUBJECT:</b> Directive X<br>
			</p>

			[mode.current_directive.get_description()]

			<hr>
			<h5><b>Emergency Authentication Protocol</b></h5>
			<p>
				A member of your Command Staff is this shift's designated Emergency Secondary Authenticator.<br>
				This Emergency Secondary Authenticator is uniquely aware of their role and possesses the Emergency Secondary Authentication Key.<br>
				As Captain, you possess the Captain's Authentication Key.<br>
				The Emergency Authentication Device is located in the vault of your station, and requires simultaneous activation of the Authentication Keys.<br>
				An <b>Authentication Key Pinpointer</b> can be delivered via Cargo Bay to assist recovery of the Authentication Keys should they be lost aboard the station.<br>
				A key's destruction or removal from the station's perimeter will automatically and irreversibly activate the Emergency Authentication Device.
			</p>
			<br>

			<h5><b>Orders</b></h5>
			<p>
				Captain [mode.head_loyalist], you are to immediately initiate the following procedure; codenamed Directive X:
			</p>
			<ol>
				[get_orders()]
			</ol>
			<br>

			<h5><b>Authentication</b></h5>

			<b>Encoded Authentication String:</b> <small>T0JCJUwoIVFDQA==</small><br>
			<b>Emergency Action Code:</b> O B B _ L _ _ Q C _<br>
			<font color='red'><u>ERROR: DECODING INCOMPLETE (40% LOSS)</u></font>
			<br>
			<br>
			<br>

			<center><h5>NOT A DRILL . . . EMERGENCY DIRECTIVE . . . NOT A DRILL</h5></center>
		"}

	proc/get_orders()
		var/text = "<li>Immediate external transmission and signals silence. Evacuation and Cargo services will remain available. All ERT teams are engaged elsewhere. Do not communicate with Central Command under any circumstances.</li>"
		for(var/order in mode.current_directive.special_orders)
			text += "<li>[order]</li>"

		text += "<li>Upon completion of this Directive, Captain [mode.head_loyalist] and the Emergency Secondary Authenticator must utilise the Captain's Authentication Key and the Emergency Secondary Authentication Key to activate the Emergency Authentication Device.</li>"
		return text

	proc/get_pda_body()
		return {"<b>&larr; From Anonymous Channel:</b> <p>\"You must read this! NanoTrasen Chain of Command COMPROMISED. Command Encryptions BROKEN. [station_name()] Captain [mode.head_loyalist] will receive orders that must NOT BE BROUGHT TO FRUITION!

They don't care about us they only care about WEALTH and POWER... Share this message with people you trust.

Be safe, friend.\" (Unable to Reply)</p>"}

	proc/announce()
		world << "<B>The current game mode is - Mutiny!</B>"
		world << {"
<p>The crew will be divided by their sense of ethics when a morally turbulent emergency directive arrives with an incomplete command validation code.<br><br>
The [loyalist_tag("Head Loyalist")] is the Captain, who carries the [loyalist_tag("Captain's Authentication Key")] at all times.<br>
The [mutineer_tag("Head Mutineer")] is a random Head of Staff who carries the [mutineer_tag("Emergency Secondary Authentication Key")].</p>
Both keys are required to activate the <b>Emergency Authentication Device (EAD)</b> in the vault, signalling to NanoTrasen that the directive is complete.
<hr>
<p>
<b>Loyalists</b> - Follow the Head Loyalist in carrying out [loyalist_tag("NanoTrasen's directives")] then activate the <b>EAD</b>.<br>
<b>Mutineers</b> - Prevent the completion of the [mutineer_tag("improperly validated directives")] and the activation of the <b>EAD</b>.
</p>
		"}

	proc/loyalist_tag(text)
		return "<font color='blue'><b>[text]</b></font>"

	proc/mutineer_tag(text)
		return "<font color='#FFA500'><b>[text]</b></font>"

	proc/their(datum/mind/head)
		if (head.current.gender == MALE)
			return "his"
		else if (head.current.gender == FEMALE)
			return "her"

		return "their"

	proc/loyalist_major_victory()
		return {"
NanoTrasen has praised the efforts of Captain [mode.head_loyalist] and loyal members of [their(mode.head_loyalist)] crew, who recently managed to put down a mutiny--amid a local interstellar crisis--aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
Despite the mutiny, the crew was successful in implementing the directive and activating their on-board emergency authentication device.
[mode.mutineers.len] members of the station's personnel were charged with terrorist action against the Company and, if found guilty by a Sol magistrate, will be sentenced to life incarceration.
NanoTrasen will be awarding [mode.loyalists.len] members of the crew with the [loyalist_tag("Star of Loyalty")], following their successful efforts, at a ceremony this coming Thursday.
[mode.body_count.len] are believed to have died during the coup.
<p>NanoTrasen's image will forever be haunted by the fact that a mutiny took place on one of its own stations.</p>
		"}

	proc/loyalist_minor_victory()
		return {"
NanoTrasen has praised the efforts of Captain [mode.head_loyalist] and loyal members of [their(mode.head_loyalist)] crew, who recently managed to put down a mutiny--amid a local interstellar crisis--aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
Despite the mutiny, the crew was successful in implementing the directive. Unfortunately, they failed to notify Central Command of their successes due to a breach in the chain of command.
[mode.mutineers.len] members of the station's personnel were charged with terrorist action against the Company and, if found guilty by a Sol magistrate, will be sentenced to life incarceration.
NanoTrasen will be awarding [mode.loyalists.len] members of the crew with the [loyalist_tag("Star of Loyalty")], following their mostly successful efforts, at a ceremony this coming Thursday.
[mode.body_count.len] are believed to have died during the coup.
<p>NanoTrasen's image will forever be haunted by the fact that a mutiny took place on one of its own stations.</p>
		"}

	proc/no_victory()
		return {"
NanoTrasen has been thrust into turmoil following an apparent mutiny by key personnel aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
No further information has yet emerged from the station or its crew, who are presumed to be in holding with NanoTrasen investigators.
NanoTrasen officials refuse to comment.
Sources indicate that [mode.mutineers.len] members of the station's personnel are currently under investigation for terrorist activity, and [mode.loyalists.len] crew are currently providing evidence to investigators, believed to be the 'loyal' station personnel.
[mode.body_count.len] are believed to have died during the coup.
<p>NanoTrasen's image will forever be haunted by the fact that a mutiny took place on one of its own stations.</p>
		"}

	proc/mutineer_minor_victory()
		return {"
Reports have emerged that an impromptu mutiny has taken place, amid a local interstellar crisis, aboard the <b>[station_name()]</b>, a research station in [system_name()].
The mutiny was spurred by a top secret directive sent to the station, presumably in response to the crisis within the system.
Information at present indicates that the top-secret directive--which has since been retracted--was invalid due to a broken authentication code. Members of the crew, including an unidentified Head of Staff, prevented the directive from being accomplished.
{'fraction_non_alphanumeric': 0.09349280596838179, 'fraction_numerical': 0.0020131446503641424, 'mean_word_length': 4.684954560753955, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 239, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5888826', 'n_tokens_mistral': 5373, 'n_tokens_neox': 4808, 'n_words': 2028}