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

Bring back the prisoner role #511

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

luringens
Copy link
Contributor

@luringens luringens commented Dec 3, 2023

About the PR

Prisoners now spawn in the prison again, even when late-joining. Re-enabled prisoner role selection.

Gladiators and Prison Guards use the same system, and as such now also always spawn on their job spawner as they used to.

Why / Balance

Fixes #261.

Technical details

Fixes alwaysUseSpawner by adding a desiredSpawnPointType argument to SpawnPlayerCharacterOnStation and PlayerSpawningEvent. This is checked in SpawnPointSystem.OnSpawnPlayer(...) to force them to spawn at their job spawner.

Media

  • I have added screenshots/videos to this PR showcasing its changes ingame, or this PR does not require an ingame showcase

Breaking changes

N/A

Changelog
🆑

  • add: Prisoners are back!
  • fix: Gladiators, prisoners and prison guards start the shift at their predesignated locations.

@VMSolidus
Copy link
Contributor

Can you make sure to also do this for Gladiators, to make sure they correctly spawn in the Arena brig? It's been awkward on Arena for the gladiators not correctly spawning in the prison, and just being left to wander the station.

@luringens
Copy link
Contributor Author

luringens commented Dec 3, 2023

@evilexecutive This is tested and works for Gladiators too - I've updated the PR description to mention that 🙂

@Colin-Tel
Copy link
Contributor

Exciting! There's more maps than just Edge and Tortuga that should have prisoner roles, though.

@luringens
Copy link
Contributor Author

@Colin-Tel I've only reverted the commit I saw that commented the role numbers out, which happens to only be the two maps that were available initially on rebase. I'm not familiar enough with the role or the maps to know which ones should have prisoner roles, how many, and if they have spawners set up for them already. I figured I'd play it safe and leave that decision for the mappers to tune their maps as they see fit.

@Colin-Tel
Copy link
Contributor

One moment, I can make the changes to the map prototypes for you.

Yaaay, we love confinement!
Add a drain to the cell area :trollface:
Copy link
Contributor

@Colin-Tel Colin-Tel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, all maps that should have prisoner roles have them now.

@luringens
Copy link
Contributor Author

Ah, they were (almost) all there already! I should have checked 😅

@Colin-Tel
Copy link
Contributor

@DebugOk this should be ready for your review, looks concise enough to me 🥴

@IamVelcroboy
Copy link
Member

One moment, I can make the changes to the map prototypes for you.

Do you mind making corpsman on Hive [ 1, 1] as well? I guess I don't see the reason in restricting it any longer.

@DebugOk DebugOk merged commit 003f262 into DeltaV-Station:master Dec 6, 2023
10 checks passed
DeltaV-Bot pushed a commit that referenced this pull request Dec 6, 2023
DebugOk pushed a commit to DebugOk/Delta-v that referenced this pull request Jan 20, 2024
* Revert "Removes Prisoner selection from maps (#262)"

This reverts commit d73f485.

* Fix alwaysUseSpawner, add DesiredSpawnPointType

Prisoners are now forced to spawn in the prison again.

* Updated map prototypes for prisoner

Yaaay, we love confinement!

* Update asterisk.yml

Add a drain to the cell area :trollface:

---------

Co-authored-by: Colin-Tel <[email protected]>
(cherry picked from commit 003f262)
DebugOk pushed a commit to DebugOk/Delta-v that referenced this pull request Jan 20, 2024
LaryNevesPR pushed a commit to LaryNevesPR/Estacao-Andromeda that referenced this pull request Jan 3, 2025
# Description
Fixes job requirements using wrong locales

Happened because one function had role-timer- as its default locale
prefix and the other that called the first had null as the default.

---

<details><summary><h1>Media</h1></summary><p>


![image](https://github.com/Simple-Station/Einstein-Engines/assets/69920617/0d02c40a-a58f-4b48-89f5-e0a6b4ff75b9)


![image](https://github.com/Simple-Station/Einstein-Engines/assets/69920617/f3b651dd-492e-47c0-aa9f-74998c78f792)

</p></details>

---

# Changelog

<!--
You can add an author after the `:cl:` to change the name that appears
in the changelog (ex: `:cl: Death`)
Leaving it blank will default to your GitHub display name
This includes all available types for the changelog
-->

:cl:
- fix: Job requirements are now displayed correctly.
LaryNevesPR pushed a commit to LaryNevesPR/Estacao-Andromeda that referenced this pull request Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prisoners spawn at latejoin points
5 participants