Skip to content

Commit

Permalink
Corporate aide fixes. (#20157)
Browse files Browse the repository at this point in the history
- Fixed the Corporate Aide slot not being opened.
- Fixed the Open Aide Slot verb not being removed upon use.

Co-authored-by: Matt Atlas <[email protected]>
  • Loading branch information
NonQueueingMatt and Matt Atlas authored Nov 11, 2024
1 parent b6235a0 commit fe9501e
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions code/game/jobs/job/job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
// Now that the blacklists are applied, open the job.
J.total_positions++
to_chat(representative, SPAN_NOTICE("A slot for a [aide_job] has been opened."))
return TRUE

/**
* This proc is called when a job opens an aide slot. It MUST be called manually.
Expand Down
1 change: 1 addition & 0 deletions code/game/jobs/job/outsider/representative.dm
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
if(species.type in rep_faction.allowed_species_types)
continue
LAZYDISTINCTADD(aide.blacklisted_species, species.name)
LAZYDISTINCTADD(rep_faction.allowed_role_types, aide.type)

/datum/job/representative/close_aide_slot(mob/living/carbon/human/representative, datum/job/aide)
aide.blacklisted_species = null
Expand Down
59 changes: 59 additions & 0 deletions html/changelogs/mattatlas-repfixes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
################################
# 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
# - (fixes bugs)
# wip
# - (work in progress)
# qol
# - (quality of life)
# soundadd
# - (adds a sound)
# sounddel
# - (removes a sound)
# rscadd
# - (adds a feature)
# rscdel
# - (removes a feature)
# imageadd
# - (adds an image or sprite)
# imagedel
# - (removes an image or sprite)
# spellcheck
# - (fixes spelling or grammar)
# experiment
# - (experimental change)
# balance
# - (balance changes)
# code_imp
# - (misc internal code change)
# refactor
# - (refactors code)
# config
# - (makes a change to the config files)
# admin
# - (makes changes to administrator tools)
# server
# - (miscellaneous changes to server)
#################################

# Your name.
author: MattAtlas

# 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, this gets changed to [] after reading. Just remove the brackets when you add new shit.
# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog.
changes:
- bugfix: "Fixed the Corporate Aide slot not being opened."
- bugfix: "Fixed the Open Aide Slot verb not being removed upon use."

0 comments on commit fe9501e

Please sign in to comment.