- add: Nitrium works & BZ knocks down lings. (#167)
This commit is contained in:
23
Content.Shared/_White/Chemistry/HasComponentCondition.cs
Normal file
23
Content.Shared/_White/Chemistry/HasComponentCondition.cs
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
using Content.Shared.Chemistry.Reagent;
|
||||||
|
using JetBrains.Annotations;
|
||||||
|
using Robust.Shared.Prototypes;
|
||||||
|
|
||||||
|
namespace Content.Shared._White.Chemistry;
|
||||||
|
|
||||||
|
[UsedImplicitly]
|
||||||
|
public sealed partial class HasComponent : ReagentEffectCondition
|
||||||
|
{
|
||||||
|
[DataField]
|
||||||
|
public string Component = default!;
|
||||||
|
|
||||||
|
public override bool Condition(ReagentEffectArgs args)
|
||||||
|
{
|
||||||
|
return args.EntityManager.HasComponent(args.SolutionEntity,
|
||||||
|
args.EntityManager.ComponentFactory.GetRegistration(Component).Type);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override string GuidebookExplanation(IPrototypeManager prototype)
|
||||||
|
{
|
||||||
|
return string.Empty;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -248,6 +248,7 @@
|
|||||||
- !type:OrganType
|
- !type:OrganType
|
||||||
type: Slime
|
type: Slime
|
||||||
shouldHave: false
|
shouldHave: false
|
||||||
|
statusLifetime: 4
|
||||||
walkSpeedModifier: 0.65
|
walkSpeedModifier: 0.65
|
||||||
sprintSpeedModifier: 0.65
|
sprintSpeedModifier: 0.65
|
||||||
- !type:GenericStatusEffect
|
- !type:GenericStatusEffect
|
||||||
@@ -361,7 +362,7 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
reagent: BZ
|
reagent: BZ
|
||||||
min: 1
|
min: 0.1
|
||||||
- !type:OrganType
|
- !type:OrganType
|
||||||
type: Slime
|
type: Slime
|
||||||
type: Local
|
type: Local
|
||||||
@@ -372,9 +373,10 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
reagent: BZ
|
reagent: BZ
|
||||||
min: 1
|
min: 0.5
|
||||||
- !type:OrganType
|
- !type:OrganType
|
||||||
type: Slime
|
type: Slime
|
||||||
|
statusLifetime: 4
|
||||||
walkSpeedModifier: 0.65
|
walkSpeedModifier: 0.65
|
||||||
sprintSpeedModifier: 0.65
|
sprintSpeedModifier: 0.65
|
||||||
- !type:GenericStatusEffect
|
- !type:GenericStatusEffect
|
||||||
@@ -388,6 +390,38 @@
|
|||||||
component: ForcedSleeping
|
component: ForcedSleeping
|
||||||
time: 3
|
time: 3
|
||||||
type: Add
|
type: Add
|
||||||
|
- !type:PopupMessage
|
||||||
|
conditions:
|
||||||
|
- !type:ReagentThreshold
|
||||||
|
reagent: BZ
|
||||||
|
min: 0.1
|
||||||
|
- !type:HasComponent
|
||||||
|
component: Changeling
|
||||||
|
type: Local
|
||||||
|
visualType: Medium
|
||||||
|
messages: [ "effect-sleepy" ]
|
||||||
|
probability: 0.1
|
||||||
|
- !type:MovespeedModifier
|
||||||
|
conditions:
|
||||||
|
- !type:ReagentThreshold
|
||||||
|
reagent: BZ
|
||||||
|
min: 0.5
|
||||||
|
- !type:HasComponent
|
||||||
|
component: Changeling
|
||||||
|
statusLifetime: 4
|
||||||
|
walkSpeedModifier: 0.65
|
||||||
|
sprintSpeedModifier: 0.65
|
||||||
|
- !type:GenericStatusEffect
|
||||||
|
conditions:
|
||||||
|
- !type:ReagentThreshold
|
||||||
|
reagent: BZ
|
||||||
|
min: 1
|
||||||
|
- !type:HasComponent
|
||||||
|
component: Changeling
|
||||||
|
key: ForcedSleep
|
||||||
|
component: ForcedSleeping
|
||||||
|
time: 3
|
||||||
|
type: Add
|
||||||
|
|
||||||
- type: reagent
|
- type: reagent
|
||||||
id: Pluoxium
|
id: Pluoxium
|
||||||
@@ -456,28 +490,28 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
reagent: Nitrium
|
reagent: Nitrium
|
||||||
min: 3
|
min: 0.5
|
||||||
statusLifetime: 0.25
|
statusLifetime: 32
|
||||||
walkSpeedModifier: 1.5
|
walkSpeedModifier: 1.5
|
||||||
sprintSpeedModifier: 1.5
|
sprintSpeedModifier: 1.5
|
||||||
- !type:GenericStatusEffect
|
- !type:GenericStatusEffect
|
||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
min: 6
|
min: 0.5
|
||||||
key: Stun
|
key: Stun
|
||||||
time: 1
|
time: 1
|
||||||
type: Remove
|
type: Remove
|
||||||
- !type:GenericStatusEffect
|
- !type:GenericStatusEffect
|
||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
min: 6
|
min: 0.5
|
||||||
key: KnockedDown
|
key: KnockedDown
|
||||||
time: 5
|
time: 1
|
||||||
type: Remove
|
type: Remove
|
||||||
- !type:GenericStatusEffect
|
- !type:GenericStatusEffect
|
||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
min: 6
|
min: 0.5
|
||||||
key: ForcedSleep
|
key: ForcedSleep
|
||||||
component: ForcedSleeping
|
component: ForcedSleeping
|
||||||
time: 15
|
time: 15
|
||||||
@@ -486,12 +520,12 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
reagent: Nitrium
|
reagent: Nitrium
|
||||||
min: 9
|
min: 10
|
||||||
scaleByQuantity: true
|
scaleByQuantity: true
|
||||||
ignoreResistances: true
|
ignoreResistances: true
|
||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Poison: 0.05
|
Poison: 0.5
|
||||||
|
|
||||||
- type: reagent
|
- type: reagent
|
||||||
id: Healium
|
id: Healium
|
||||||
|
|||||||
Reference in New Issue
Block a user