[MIRROR] "What are you in for?" Prisoners can now select their capital offense. [MDB IGNORE] (#15918)

* "What are you in for?" Prisoners can now select their capital offense. (#69446)

New preference, like security department, but for prisoners. They can pick why they're in prison, and they'll get a record about it roundstart.
Classified and Other are for people who want to build their own background, that none of the options currently fit.

Current options:

    Abhorrent Criminal Negligence = Incompetently risked numerous lives.
    Attempted Development of Cloning = Attempted illegal research in the cloning sphere. Cloning, cloning construction, and cloning-related R&D was outlawed in 2560.
    Attempted Murder = Attempted to maliciously kill someone.
    Classified = Consult Legal.
    Corporate Espionage = Conducted espionage against Nanotrasen for commercial purposes.
    Counterfeiting = Engaged in widespread fraud.
    Enemy of the Corporation = Acted as or knowingly aided an enemy of Nanotrasen.
    Grand Sabotage = Engaged in malicious destructive actions seriously threatening Nanotrasen employees and or infrastructure.
    Grand Theft = Stole items of high value or sensitive nature.
    Identity Theft of High-Ranking Figure = Impersonated a high-ranking figure.
    Murder = Maliciously killed someone.
    Mutiny = Attempted to overthrow/subvert Chain of Command.
    Other = Consult Legal.
    Tampering of Artificial Intelligence = Uploaded malicious negligent or otherwise blacklisted directives to an Artificial Intelligence.
    Worship of Blacklisted Deities = Practiced worship of blacklisted deities.

* "What are you in for?" Prisoners can now select their capital offense.

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-08-29 19:08:39 -04:00
committed by GitHub
co-authored by tralezab
parent 12a6409e07
commit 4a9573b0fc
6 changed files with 72 additions and 1 deletions
@@ -0,0 +1,20 @@
/// Which crime is the prisoner permabrigged for. For fluff!
/datum/preference/choiced/prisoner_crime
category = PREFERENCE_CATEGORY_NON_CONTEXTUAL
savefile_identifier = PREFERENCE_CHARACTER
savefile_key = "prisoner_crime"
/datum/preference/choiced/prisoner_crime/init_possible_values()
return assoc_to_keys(GLOB.prisoner_crimes) + "Random"
/datum/preference/choiced/prisoner_crime/apply_to_human(mob/living/carbon/human/target, value)
return
/datum/preference/choiced/prisoner_crime/create_default_value()
return "Random"
/datum/preference/choiced/prisoner_crime/is_accessible(datum/preferences/preferences)
if (!..(preferences))
return FALSE
return istype(preferences.get_highest_priority_job(), /datum/job/prisoner)