Delta-v/Content.Server/Power/Generator
nikthechampiongr 362d56981f
Simplify DoAfterArgs behavior for movement and distance checks (#25226)
* Merge BreakOnWeightlessMove and BreakOnMove. Provide different theshold for weightless movement.

* Adjust WeightlessMovementThresholds. Put a thing I forgot to put in the doafterargs.

* Make DoAfterArgs only use OnMove to determine whether to check for
movement and MoveThreshold to determine the threshold regardless of
weightlessness. Gave DistanceThreshold a default value which will always
be checked now.

* Fix issue introduced by merge.

* Use interaction system for determining whether a distance is within range

* Fix incorrect doafter args introduced by previous merge.
Forgor to commit these.

* Exorcise ghost.

The execution system should have been deleted when I merged previously.
For a reason I cannot comprehend it came back, but only the execution
system.

* Exorcise ghost Pt. 2

* Allow for movement check to be overriden in zero g and adjust doafter args where needed.

You can now override checking for movement in zero g with the BreakOnWeightlessMove bool. By default it will check.
The following doafters were made to ignore the movement check in zero g:
- Healing yourself with healing items,
- Removing embedded projectiles,
- Using tools like welders and crowbars

* Adjust distance for cuffing/uncuffing to work. Make injections not break on weightless movement.

* Fix evil incorrect and uneeded comments
2024-03-19 21:09:00 +11:00
..
ChemicalFuelGeneratorAdapterComponent.cs Allow chemical-fueled generators to use multiple reagents (#24258) 2024-01-20 17:25:52 -08:00
ChemicalFuelGeneratorDirectSourceComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
GasPowerReceiverComponent.cs Refactor serialization copying to use source generators (#19412) 2023-08-22 18:14:33 -07:00
GasPowerReceiverSystem.cs Convert atmos device events to ref events (#22843) 2023-12-21 17:48:18 -08:00
GeneratorExhaustGasSystem.cs Portable Generator Rework (#19302) 2023-08-25 11:40:42 -07:00
GeneratorSignalControlComponent.cs Adds signal control to portable generators (#24157) 2024-01-29 15:56:29 +01:00
GeneratorSignalControlSystem.cs Adds signal control to portable generators (#24157) 2024-01-29 15:56:29 +01:00
GeneratorSystem.cs Fix chemical fuel generator division by zero (#24793) 2024-02-01 14:36:41 +11:00
PortableGeneratorSystem.cs Simplify DoAfterArgs behavior for movement and distance checks (#25226) 2024-03-19 21:09:00 +11:00
PowerSwitchableSystem.cs UseDelay + ItemCooldown merge (#22502) 2024-01-03 21:33:09 -04:00
SolidFuelGeneratorAdapterComponent.cs Portable Generator Rework (#19302) 2023-08-25 11:40:42 -07:00