Predict InjectorSystem (#39976)

* predict injectors

* hide verbs if no options
This commit is contained in:
slarticodefast
2025-09-01 17:24:37 +02:00
committed by GitHub
parent feb0fac20f
commit 86e77f05ce
11 changed files with 512 additions and 503 deletions

View File

@@ -60,6 +60,8 @@ public abstract partial class SharedPuddleSystem
var puddleSolution = _solutionContainerSystem.SplitSolution(soln.Value, solution.Volume);
TrySpillAt(Transform(target).Coordinates, puddleSolution, out _);
// TODO: Make this an event subscription once spilling puddles is predicted.
// Injectors should not be hardcoded here.
if (TryComp<InjectorComponent>(entity, out var injectorComp))
{
injectorComp.ToggleState = InjectorToggleMode.Draw;