Skip to content
Merged
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
35 changes: 26 additions & 9 deletions code/modules/jobs/job_types/peasants/prisoner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title = "Prisoner"
tutorial = "For a crime, or false allegation; as a hostage against another, \
or held for ransom: your fate until this day has been ill-starred save its first. \
You are of noble birth. Perhaps your story, which none but you recall, \
Perhaps your story, which none but you recall, \
will move some pity from callous hearts or promises of riches parole your release. \
Maybe your old associates conspire now to release you in a daring rescue. \
Yet it is far surer that your tears will rust this cursed mask \
Expand All @@ -17,19 +17,18 @@
banned_leprosy = FALSE
bypass_lastclass = TRUE

allowed_races = RACES_PLAYER_FOREIGNNOBLE
allowed_races = RACES_PLAYER_ALL

outfit = /datum/outfit/prisoner
give_bank_account = 173

cmode_music = 'sound/music/cmode/towner/CombatPrisoner.ogg'
can_have_apprentices = FALSE
antag_role = /datum/antagonist/prisoner

jobstats = list(
STATKEY_STR = -1,
STATKEY_PER = 2,
STATKEY_INT = 2,
STATKEY_PER = -1,
STATKEY_INT = -1,
STATKEY_SPD = -1,
STATKEY_CON = -1,
STATKEY_END = -1
Expand All @@ -38,16 +37,12 @@
skills = list(
/datum/skill/combat/wrestling = 1,
/datum/skill/combat/knives = 1,
/datum/skill/combat/swords = 2,
/datum/skill/combat/unarmed = 1,
/datum/skill/misc/swimming = 2,
/datum/skill/misc/athletics = 1,
/datum/skill/misc/reading = 2,
/datum/skill/misc/climbing = 2,
/datum/skill/misc/sneaking = 3,
/datum/skill/misc/lockpicking = 2,
/datum/skill/misc/riding = 1,
/datum/skill/labor/mathematics = 3
)

traits = list(
Expand All @@ -57,6 +52,28 @@

/datum/job/prisoner/after_spawn(mob/living/carbon/human/spawned, client/player_client)
. = ..()
var/prisonertype = "Commoner" //If you're Tiefling, Hollowkin, or Medicator, this is your only option.
if(spawned.dna?.species?.id in RACES_PLAYER_FOREIGNNOBLE)
prisonertype = browser_input_list(player_client, "What kind of prisoner are you?", "Filthy Criminal", list("Noble", "Commoner"))
if(prisonertype == "Noble")
SStreasury.create_bank_account(spawned, 173)
spawned.adjust_skillrank(/datum/skill/combat/swords, 2, TRUE)
spawned.adjust_skillrank(/datum/skill/misc/reading, 2, TRUE)
spawned.adjust_skillrank(/datum/skill/misc/riding, 1, TRUE)
spawned.adjust_skillrank(/datum/skill/labor/mathematics, 3, TRUE)
spawned.adjust_stat_modifier(STATMOD_JOB, STATKEY_PER, 3)
spawned.adjust_stat_modifier(STATMOD_JOB, STATKEY_INT, 3)
ADD_TRAIT(spawned, TRAIT_NOBLE_BLOOD, TRAIT_GENERIC)
else
spawned.adjust_skillrank(/datum/skill/combat/wrestling, 1, TRUE)
spawned.adjust_skillrank(/datum/skill/combat/knives, 1, TRUE)
spawned.adjust_skillrank(/datum/skill/misc/stealing, 3, TRUE)
spawned.adjust_skillrank(/datum/skill/misc/lockpicking, 1, TRUE)
spawned.adjust_skillrank(/datum/skill/craft/sewing, 2, TRUE) //so they're slightly better at the three things they can do while incarcerated.
spawned.adjust_skillrank(/datum/skill/labor/farming, 2, TRUE)
spawned.adjust_skillrank(/datum/skill/labor/fishing, 2, TRUE)
spawned.adjust_stat_modifier(STATMOD_JOB, STATKEY_SPD, 2)
spawned.adjust_stat_modifier(STATMOD_JOB, STATKEY_END, 2)
if(spawned.wear_mask)
var/obj/I = spawned.wear_mask
spawned.dropItemToGround(spawned.wear_mask, TRUE)
Expand Down
Loading