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

[MIRROR] wew lad: variable defined but not used #2201

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1213
Original PR: tgstation/tgstation#81703

About The Pull Request

Thanks Floofies for the PR title.

This removes a warning that flew under the radar, passed the CI without me taking a deeper look basically.

Why It's Good For The Game

Removing an unused variable.

Changelog

N/A

wew `lad: variable defined but not used`

Co-authored-by: Ghom <[email protected]>
@Iajret Iajret merged commit 37b7e66 into master Mar 1, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1213 branch March 1, 2024 14:03
Iajret pushed a commit that referenced this pull request Apr 27, 2024
…ed ghost roles (#2201)

* Fix malf AI being unable to trigger because AIs are considered ghost roles (#82893)

## About The Pull Request

Fix #82891 

PR #82030 added this job flag check to dynamic candidate trimming


https://github.com/tgstation/tgstation/blob/cd29b123eff035fff7da10d21f8d55e1c898670f/code/controllers/subsystem/dynamic/dynamic_rulesets_midround.dm#L77-L79

Problem: AIs do not have `JOB_CREW_MEMBER`!

This meant that all AI mobs were trimmed out of the candidate list for
midround malf, so no it always failed

This PR fixes this by flipping `restrict_ghost_roles` to `FALSE` for
midround malf and then tightening up some of the checks to ensure off
station AIs don't roll malf.

## Changelog

:cl: Melbert
fix: Midround malf can roll again
/:cl:

* Fix malf AI being unable to trigger because AIs are considered ghost roles

---------

Co-authored-by: MrMelbert <[email protected]>
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.

3 participants