DeltaV-Station / Delta-v

A fork of Space Station 14, embracing a mixture of classic SS13 chaos and experimentation only possible with the new engine
https://delta-v.org
GNU Affero General Public License v3.0
46 stars 203 forks source link

Senior ID cards get a custom job name: Attempt 3 #1425

Open WarMechanic opened 1 week ago

WarMechanic commented 1 week ago

About the PR

Taking the Senior ID card for jobs that support it will change your job title and icon to match that of the senior role.

My advice to heads of staff: Treat your seniors like they have 60 hours of playtime. Delegate them to teach recruits properly, do things that are hard and condemn them harshly for incompetence.

Why / Balance

Fixes https://github.com/DeltaV-Station/Delta-v/issues/1263

Technical details

This solution reverts https://github.com/DeltaV-Station/Delta-v/pull/1218 and moves most of the job name changing logic to take place in C.S/.../GameTicker.Spawning to catch when the player spawns both at round-start and the middle of the round. Various overrides in a few scripts check for VirtualJobName/Icon in a JobComponent. No longer uses job prototypes like in Attempt 2.

Media

https://youtu.be/_YaD1ESBiwA

Breaking changes

Changelog

:cl: