Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Gives roundstart prisoners a key memory of what their crime is #805

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions code/datums/memory/key_memories.dm
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,25 @@
"[protagonist_name] being implanted by a scientist.",
"[protagonist_name] having surgery done on them by a scientist.",
)

/datum/memory/key/permabrig_crimes
var/crimes

/datum/memory/key/permabrig_crimes/New(
datum/mind/memorizer_mind,
atom/protagonist,
atom/deuteragonist,
atom/antagonist,
crimes,
)
src.crimes = crimes
return ..()

/datum/memory/key/permabrig_crimes/get_names()
return list("[protagonist_name]'s crime of \"[crimes]\".")

/datum/memory/key/permabrig_crimes/get_starts()
return list(
"[protagonist_name] being arrested by security for [crimes].",
"[protagonist_name] committing the crimes of [crimes].",
)
2 changes: 1 addition & 1 deletion code/modules/jobs/job_types/prisoner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
var/datum/crime/past_crime = new(crime.name, crime.desc, "Central Command", "Indefinite.")
target_record.crimes += past_crime
to_chat(crewmember, span_warning("You are imprisoned for \"[crime_name]\"."))
crewmember.add_mob_memory(/datum/memory/key/permabrig_crimes, crimes = crime_name)

/datum/outfit/job/prisoner
name = "Prisoner"
Expand All @@ -69,7 +70,6 @@
if(!crime_name)
return
var/datum/prisoner_crime/crime = GLOB.prisoner_crimes[crime_name]

var/list/limbs_to_tat = new_prisoner.bodyparts.Copy()
for(var/i in 1 to crime.tattoos)
if(!length(SSpersistence.prison_tattoos_to_use) || visualsOnly)
Expand Down
Loading