]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix spray nozzle not cleaning reagents properly (#35950)
authorArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com>
Sun, 20 Apr 2025 02:41:24 +0000 (19:41 -0700)
committerGitHub <noreply@github.com>
Sun, 20 Apr 2025 02:41:24 +0000 (22:41 -0400)
commit44925b9be7b5d9b48013b63fceb33335c60ddbc3
tree5c92570a184ee8502e9d724623777e674f25ec69
parenta90c16b8d110d51bcc3b848ee82e02162bd21be7
Fix spray nozzle not cleaning reagents properly (#35950)

* init, god help us all

* further refining

* final round of bugfixes

* whoopsies

* To file scoped namespace

* first review

* oopsie

* oopsie woopsie

* pie is on my face

* persistence

* datafieldn't

* make PreviousTileRef nullable

* change component to file scoped namespace

* Minor tweaks:

- We clamp the reaction amount to a minimum value because when working with percentages and dividing, we approach numbers like 0.01 and never actually properly delete the entity (because we check for zero). This allows us to react with a minimum amount and cleans things up nicely.
- Minor clarification to comments.
- Rebalancing of the spray nozzle projectile.

* the scug lies!!!!

* undo file scoped namespace in system

* kid named warning

---------

Co-authored-by: ScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Content.Server/Chemistry/Components/VaporComponent.cs
Content.Server/Chemistry/EntitySystems/VaporSystem.cs
Resources/Prototypes/Entities/Objects/Specific/Janitorial/spray.yml
Resources/Prototypes/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml