fix inverse effect
This commit is contained in:
@@ -198,7 +198,7 @@ namespace Content.Shared.Chemistry.Reaction
|
||||
|
||||
private void OnReaction(Entity<SolutionComponent> soln, ReactionPrototype reaction, ReagentPrototype? reagent, FixedPoint2 unitReactions)
|
||||
{
|
||||
var args = new EntityEffectReagentArgs(soln, EntityManager, null, soln.Comp.Solution, unitReactions, reagent, null, 1f);
|
||||
var args = new EntityEffectReagentArgs(soln, EntityManager, null, soln.Comp.Solution, unitReactions, reagent, null, 1f, soln); //CP14 soln add
|
||||
|
||||
var posFound = _transformSystem.TryGetMapOrGridCoordinates(soln, out var gridPos);
|
||||
|
||||
|
||||
@@ -120,7 +120,9 @@ public record class EntityEffectReagentArgs : EntityEffectBaseArgs
|
||||
|
||||
public FixedPoint2 Scale;
|
||||
|
||||
public EntityEffectReagentArgs(EntityUid targetEntity, IEntityManager entityManager, EntityUid? organEntity, Solution? source, FixedPoint2 quantity, ReagentPrototype? reagent, ReactionMethod? method, FixedPoint2 scale) : base(targetEntity, entityManager)
|
||||
public Entity<SolutionComponent>? SolutionEntity; //CP14
|
||||
|
||||
public EntityEffectReagentArgs(EntityUid targetEntity, IEntityManager entityManager, EntityUid? organEntity, Solution? source, FixedPoint2 quantity, ReagentPrototype? reagent, ReactionMethod? method, FixedPoint2 scale, Entity<SolutionComponent>? solutionEntity = null) : base(targetEntity, entityManager)
|
||||
{
|
||||
OrganEntity = organEntity;
|
||||
Source = source;
|
||||
@@ -128,5 +130,6 @@ public record class EntityEffectReagentArgs : EntityEffectBaseArgs
|
||||
Reagent = reagent;
|
||||
Method = method;
|
||||
Scale = scale;
|
||||
SolutionEntity = solutionEntity; //CP14
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user