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] Change how a station trait is declared abstract (#80268) #1636

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#390

ORIGINAL PR: tgstation/tgstation@659a343

@Fikou requested this and it seemed like a good idea. This change the pattern for "how we declare that we don't want a station trait to actually exist" from "it's a bitfield" to the other commonly-used pattern of "it's a var which points at a typepath". The purpose of doing this is that most of the station traits which have an abstract parent want the default trait_flags value of their grandparent and have to redeclare it for no reason, which becomes more tedious the more children there are. This means that you don't need to do that because the abstract_type var will only evaluate to true when checked on the specified abstract type, without needing to change its value on any children.

Makes extending traits marginally easier

not player facing

Change how a station trait is declared abstract (#80268)

@Fikou requested this and it seemed like a good idea.
This change the pattern for "how we declare that we don't want a station
trait to actually exist" from "it's a bitfield" to the other
commonly-used pattern of "it's a var which points at a typepath".
The purpose of doing this is that most of the station traits which have
an abstract parent want the default `trait_flags` value of their
grandparent and have to redeclare it for no reason, which becomes more
tedious the more children there are. This means that you don't need to
do that because the `abstract_type` var will only evaluate to true when
checked on the specified abstract type, without needing to change its
value on any children.

Makes extending traits marginally easier

not player facing

Co-authored-by: Jacquerel <[email protected]>
@Steals-The-PRs Steals-The-PRs added Mirroring conflict git cherry-pick во что-то уткнулся. Не ставить вручную, только для бота TG Mirror labels Jan 22, 2024
@Iajret Iajret merged commit 4ad3423 into master Jan 24, 2024
22 checks passed
@Iajret Iajret deleted the upstream-mirror-390 branch January 24, 2024 09:51
Iajret pushed a commit that referenced this pull request Mar 26, 2024
* Fix puzzlegrids not reporting their answer (#82213)

## About The Pull Request

`src` is a a datum, so `get_hearers_in_view` fails

## Changelog

:cl: Melbert
fix: Puzzlegrids now report their answers properly
/:cl:

* Fix puzzlegrids not reporting their answer

---------

Co-authored-by: MrMelbert <[email protected]>
ReezeBL pushed a commit that referenced this pull request Mar 26, 2024
* Fix puzzlegrids not reporting their answer (#82213)

## About The Pull Request

`src` is a a datum, so `get_hearers_in_view` fails

## Changelog

:cl: Melbert
fix: Puzzlegrids now report their answers properly
/:cl:

* Fix puzzlegrids not reporting their answer

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: MrMelbert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mirroring conflict git cherry-pick во что-то уткнулся. Не ставить вручную, только для бота TG Mirror
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants