Some Corporate Liaison alt titles (#14581)

This commit is contained in:
Wowzewow (Wezzy)
2022-09-06 18:35:44 +08:00
committed by GitHub
parent 6d68221d80
commit 3913b4f26d
3 changed files with 48 additions and 1 deletions

View File

@@ -18,6 +18,11 @@
access = list(access_lawyer, access_maint_tunnels) access = list(access_lawyer, access_maint_tunnels)
minimal_access = list(access_lawyer) minimal_access = list(access_lawyer)
alt_titles = list(
"Workplace Liaison",
"Corporate Representative",
"Corporate Executive"
)
outfit = /datum/outfit/job/representative outfit = /datum/outfit/job/representative
blacklisted_species = list(SPECIES_VAURCA_BULWARK, SPECIES_VAURCA_BREEDER) blacklisted_species = list(SPECIES_VAURCA_BULWARK, SPECIES_VAURCA_BREEDER)

View File

@@ -262,7 +262,7 @@
var/list/choices = pref.GetValidTitles(job) var/list/choices = pref.GetValidTitles(job)
if(!LAZYLEN(choices)) if(!LAZYLEN(choices))
return ..()// should never happen return ..()// should never happen
var/choice = input("Choose an title for [job.title].", "Choose Title", pref.GetPlayerAltTitle(job)) as anything in choices|null var/choice = input("Choose a title for [job.title].", "Choose Title", pref.GetPlayerAltTitle(job)) as anything in choices|null
if(choice && CanUseTopic(user)) if(choice && CanUseTopic(user))
SetPlayerAltTitle(job, choice) SetPlayerAltTitle(job, choice)
return TOPIC_REFRESH_UPDATE_PREVIEW return TOPIC_REFRESH_UPDATE_PREVIEW

View File

@@ -0,0 +1,42 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: Wowzewow (Wezzy)
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- rscadd: "Added some alt titles for Corporate Liaisons."
- bugfix: "Fixes a typo when setting alt titles."