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] Adds loot blacklist, creates a maintenance spawner with decals blacklisted #2108

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1109
Original PR: tgstation/tgstation#81611

About The Pull Request

Is anyone else sick of this? Because I am. tgstation/tgstation#81520 missed one. But I think being able to spawn randomized loot over a chasm should be a valid thing to do in general so here is an alternate way of doing it.

image

Maintenance spawners can creates ashes, as was happening on this chasm turf, which would cause NeverShouldHaveComeHere() to fail. Cue the rng based CI failures.

This PR adds a blacklist feature to spawners, allowing custom blacklist behavior to be defined by overriding the new can_spawn() proc.

Also adds back the spawner that was removed by tgstation/tgstation#81520, replacing it with the new decal-free variety.

Why It's Good For The Game

Less CI failures. NeverShouldHaveComeHere() is a mess to keep adding exceptions to for things like this so having a way to blacklist certain types from spawning in the first place allows for greater flexibility when it comes to mapping.

Changelog

🆑 vinylspiders
fix: fixes spurious CI failure in museum
code: adds a blacklist feature to spawners
/:cl:

…ls blacklisted (#1109)

* Adds loot blacklist, creates a maintenance spawner with decals blacklisted (#81611)

* Adds loot blacklist, creates a maintenance spawner with decals blacklisted

* Why is this here

---------

Co-authored-by: Bloop <[email protected]>
@Iajret Iajret merged commit e5b9072 into master Feb 24, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1109 branch February 24, 2024 22:55
AnywayFarus added a commit that referenced this pull request Feb 25, 2024
Iajret pushed a commit that referenced this pull request Apr 21, 2024
* Adds `ALLOW_RESTING` to a bunch of items (#82761)

## About The Pull Request

Allows you to alt-click a bunch of items while resting. 

Fixes #82788

## Why It's Good For The Game

Some of these, such as storage, are bugfixes. You shouldn't need to be
standing up to configure a spray can, or change the direction of your
bedsheet

Others are just sensible changes. 

## Changelog

:cl: Melbert
fix: You can open bags with alt click while resting again
qol: Many items which previously required you to stand to alt-click now
don't, such as bedsheets and spray cans
/:cl:

* Adds `ALLOW_RESTING` to a bunch of items

---------

Co-authored-by: MrMelbert <[email protected]>
ReezeBL pushed a commit that referenced this pull request Apr 21, 2024
* Adds `ALLOW_RESTING` to a bunch of items (#82761)

## About The Pull Request

Allows you to alt-click a bunch of items while resting. 

Fixes #82788

## Why It's Good For The Game

Some of these, such as storage, are bugfixes. You shouldn't need to be
standing up to configure a spray can, or change the direction of your
bedsheet

Others are just sensible changes. 

## Changelog

:cl: Melbert
fix: You can open bags with alt click while resting again
qol: Many items which previously required you to stand to alt-click now
don't, such as bedsheets and spray cans
/:cl:

* Adds `ALLOW_RESTING` to a bunch of items

---------

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants