mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
[Hotfix] Fix Phalanx (#41170)
feex Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
This commit is contained in:
parent
222aaa9b59
commit
5c09eed080
2 changed files with 5 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -589,10 +589,7 @@
|
|||
- !type:PlantAdjustToxins
|
||||
amount: 6
|
||||
- !type:PlantPhalanximine
|
||||
conditions:
|
||||
- !type:ReagentCondition
|
||||
reagent: Phalanximine
|
||||
min: 4
|
||||
minScale: 4
|
||||
metabolisms:
|
||||
Medicine:
|
||||
metabolismRate: 0.1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue