- fix: Holy water mixing fix. (#105)
This commit is contained in:
@@ -5,6 +5,7 @@ using Content.Shared.FixedPoint;
|
|||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using Content.Shared._White.Chemistry;
|
||||||
|
|
||||||
namespace Content.Shared.Chemistry.EntitySystems;
|
namespace Content.Shared.Chemistry.EntitySystems;
|
||||||
|
|
||||||
@@ -94,7 +95,9 @@ public abstract partial class SharedSolutionContainerSystem
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var tryGetSolution = EnumerateSolutions(container).FirstOrNull(x => x.Solution.Comp.Solution.CanMix);
|
var ignoreMixing = HasComp<MixableComponent>(container); // WD EDIT
|
||||||
|
|
||||||
|
var tryGetSolution = EnumerateSolutions(container).FirstOrNull(x => x.Solution.Comp.Solution.CanMix || ignoreMixing); // WD EDIT
|
||||||
if (tryGetSolution.HasValue)
|
if (tryGetSolution.HasValue)
|
||||||
{
|
{
|
||||||
solution = tryGetSolution.Value.Solution;
|
solution = tryGetSolution.Value.Solution;
|
||||||
|
|||||||
6
Content.Shared/_White/Chemistry/MixableComponent.cs
Normal file
6
Content.Shared/_White/Chemistry/MixableComponent.cs
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
namespace Content.Shared._White.Chemistry;
|
||||||
|
|
||||||
|
[RegisterComponent]
|
||||||
|
public sealed partial class MixableComponent : Component
|
||||||
|
{
|
||||||
|
}
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
- type: Clickable
|
- type: Clickable
|
||||||
- type: InteractionOutline
|
- type: InteractionOutline
|
||||||
- type: MovedByPressure
|
- type: MovedByPressure
|
||||||
|
- type: Mixable
|
||||||
# WD edit sounds start
|
# WD edit sounds start
|
||||||
- type: MeleeSound
|
- type: MeleeSound
|
||||||
soundGroups:
|
soundGroups:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
id: StorageTank
|
id: StorageTank
|
||||||
parent: BaseStructureDynamic
|
parent: BaseStructureDynamic
|
||||||
name: storage tank
|
name: storage tank
|
||||||
@@ -65,3 +65,4 @@
|
|||||||
- type: ReagentTank
|
- type: ReagentTank
|
||||||
- type: Transform
|
- type: Transform
|
||||||
noRot: true
|
noRot: true
|
||||||
|
- type: Mixable
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
- type: reaction
|
- type: reaction
|
||||||
id: BloodToWine
|
id: BloodToWine
|
||||||
|
sound: /Audio/Effects/holy.ogg
|
||||||
impact: Low
|
impact: Low
|
||||||
requiredMixerCategories:
|
requiredMixerCategories:
|
||||||
- Holy
|
- Holy
|
||||||
@@ -35,6 +36,7 @@
|
|||||||
|
|
||||||
- type: reaction
|
- type: reaction
|
||||||
id: WatertoHolyWater
|
id: WatertoHolyWater
|
||||||
|
sound: /Audio/Effects/holy.ogg
|
||||||
impact: Low
|
impact: Low
|
||||||
requiredMixerCategories:
|
requiredMixerCategories:
|
||||||
- Holy
|
- Holy
|
||||||
|
|||||||
Reference in New Issue
Block a user