CatStation/Content.Shared
moneyl 3ab8036363 De-hardcode chemical metabolism of StomachComponent (#437)
* Move chemical reaction effects into Chemistry/ReactionEffects/ subfolder

* Replace hardcoded StomachComponent metabolism with IMetabolizable

The benefits of this approach are that reagent metabolism effects are not hardcoded into StomachComponent, and metabolism effects can be more easily chained together in yaml prototypes, and reagents can have different metabolism rates. One problem with this approach is that getting metabolism rates slower than 1u / second is impossible. Implementing #377 should resolve that problem.

* Fix DefaultFood and DefaultDrink so they remove reagent regardless of Hunger/ThirstComponent presence

Previously if neither of those were present the reagents wouldn't be removed from the stomach. This fixes that.

* Additional comment on function

* Make metabolizer interface implementations explicit

Also removed some unused using statements

* Make StomachComponent._reagentDeltas readonly

* Fix misleading variable names and docs for metabolizables

Changes one of the arguments for `IMetabolizable.Metabolize()` to be called `tickTime` instead of `frameTime` to more accurately reflect it's purpose. It's not really the frametime, but the time since the last metabolism tick. Also updated and expanded the docs to reflect this and to be more clear.
2019-11-21 23:24:19 +01:00
..
Access ID card console (#324) 2019-09-06 08:12:44 +02:00
Audio Rename toolbox references from ss14 to robust 2019-04-15 21:11:38 -06:00
Chat Rider static analysis (#433) 2019-11-13 23:37:46 +01:00
Chemistry De-hardcode chemical metabolism of StomachComponent (#437) 2019-11-21 23:24:19 +01:00
Construction Rename toolbox references from ss14 to robust 2019-04-15 21:11:38 -06:00
GameObjects Rider static analysis (#433) 2019-11-13 23:37:46 +01:00
Input Refactored input system 2019-08-04 16:03:51 -07:00
Interfaces De-hardcode chemical metabolism of StomachComponent (#437) 2019-11-21 23:24:19 +01:00
Jobs Basis for the job system (#434) 2019-11-17 17:18:39 +01:00
Maps Explosions and Grenades, Triggers, OnDestroy, OnExAct, Fueltanks and destructible tables (#247) 2019-06-07 13:15:20 +02:00
Materials Lathes (#207) 2019-04-26 15:51:05 +02:00
Maths Urist's damage and health thing. (#10) 2017-10-07 15:15:29 +02:00
Physics Physics Shapes (#306) 2019-09-03 22:14:04 +02:00
Research Rider static analysis (#433) 2019-11-13 23:37:46 +01:00
Sandbox Sandbox panel 2019-10-02 21:47:32 +02:00
Utility Add more dakka (#307) 2019-08-22 11:08:32 +02:00
VendingMachines Rider static analysis (#433) 2019-11-13 23:37:46 +01:00
app.config Updates submodule (#56) 2018-04-12 23:56:43 +02:00
Content.Shared.csproj Update all the NuGet packages & submodule. 2019-08-27 22:39:32 +02:00
EntryPoint.cs Rider static analysis (#433) 2019-11-13 23:37:46 +01:00
SharedGameTicker.cs Rider static analysis (#433) 2019-11-13 23:37:46 +01:00
SharedModuleTestingCallbacks.cs Improve integration testing 2019-06-29 01:58:16 +02:00
SharedNotifyManager.cs Rider static analysis (#433) 2019-11-13 23:37:46 +01:00