Delta-v/Content.Server/Nutrition/Components
Tayrtahn 794302839d
Add ability to shake fizzy drinks so they spray in peoples' faces (#25574)
* Implemented Shakeable

* Prevent shaking open Openables

* Prevent shaking empty drinks. Moved part of DrinkSystem to Shared.

* DrinkSystem can have a little more prediction, as a treat

* Cleanup

* Overhauled PressurizedDrink

* Make soda cans/bottles and champagne shakeable. The drink shaker too, for fun.

* We do a little refactoring.
PressurizedDrink is now PressurizedSolution, and fizziness now only works on solutions containing a reagent marked as fizzy.

* Documentation, cleanup, and tweaks.

* Changed fizziness calculation to use a cubic-out easing curve.

* Removed broken YAML that has avoid the linter's wrath for far too long

* Changed reagent fizzy bool to fizziness float.
Solution fizzability now scales with reagent proportion.

* Rename file to match changed class name

* DoAfter improvements. Cancel if the user moves away; block if no hands.

* Match these filenames too

* And this one

* guh

* Updated to use Shared puddle methods

* Various fixes and improvements.

* Made AttemptShakeEvent a struct

* AttemptAddFizzinessEvent too

(cherry picked from commit cfa94be4c2044146298d07c703f3b71bc377ca63)
2024-04-21 22:08:21 +02:00
..
BadDrinkComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
BadFoodComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
CigarComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
FatExtractorComponent.cs Use new ComponentPauseGenerator (#25183) 2024-03-07 00:57:05 +01:00
FlavorProfileComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
FoodComponent.cs Fix clientside storage Whitelists (#24063) 2024-02-08 12:22:58 +01:00
IgnoreBadFoodComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
IngestionBlockerComponent.cs Move MaskComponent to shared and add toggle events (#22395) 2023-12-16 20:15:24 +01:00
SliceableFoodComponent.cs small food slicing cleanup (#22291) 2023-12-16 19:39:24 +01:00
SmokingPipeComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
TrashOnSolutionEmptyComponent.cs Soapy Water & Edible Soap (#20364) 2023-11-12 20:26:09 +01:00
VapeComponent.cs Allow solutions to store extra reagent data (#19323) 2023-09-05 07:55:10 +10:00