]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
[Hotfix] Fix Phalanx (#41170)
authorPrincess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com>
Tue, 28 Oct 2025 18:33:46 +0000 (11:33 -0700)
committerGitHub <noreply@github.com>
Tue, 28 Oct 2025 18:33:46 +0000 (14:33 -0400)
feex

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
Content.Server/Botany/Systems/PlantHolderSystem.cs
Resources/Prototypes/Reagents/medicine.yml

index 2554f95455efed4c911ddd7e168948d79ff2f99d..1e992f9cd25eebe6643831dad586ca3e3361ce62 100644 (file)
@@ -886,12 +886,13 @@ public sealed class PlantHolderSystem : EntitySystem
 
         if (solution.Volume > 0 && component.MutationLevel < 25)
         {
-            var amt = FixedPoint2.New(1);
-            foreach (var entry in _solutionContainerSystem.RemoveEachReagent(component.SoilSolution.Value, amt))
+            foreach (var entry in component.SoilSolution.Value.Comp.Solution.Contents)
             {
                 var reagentProto = _prototype.Index<ReagentPrototype>(entry.Reagent.Prototype);
-                _entityEffects.ApplyEffects(uid, reagentProto.PlantMetabolisms.ToArray());
+                _entityEffects.ApplyEffects(uid, reagentProto.PlantMetabolisms.ToArray(), entry.Quantity.Float());
             }
+
+            _solutionContainerSystem.RemoveEachReagent(component.SoilSolution.Value, FixedPoint2.New(1));
         }
 
         CheckLevelSanity(uid, component);
index 998f508b61af910da2f03b9ba0929cd779f130ef..17c4dfcd5ca50652b1f77243f314e51603b85331 100644 (file)
     - !type:PlantAdjustToxins
       amount: 6
     - !type:PlantPhalanximine
-      conditions:
-      - !type:ReagentCondition
-        reagent: Phalanximine
-        min: 4
+      minScale: 4
   metabolisms:
     Medicine:
       metabolismRate: 0.1