Adds a stun chemical (uplink only) (#7258)
This commit is contained in:
26
Content.Server/Chemistry/ReagentEffects/Paralyze.cs
Normal file
26
Content.Server/Chemistry/ReagentEffects/Paralyze.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Server.Stunnable;
|
||||
|
||||
namespace Content.Server.Chemistry.ReagentEffects;
|
||||
|
||||
public sealed class Paralyze : ReagentEffect
|
||||
{
|
||||
[DataField("paralyzeTime")] public double ParalyzeTime = 2;
|
||||
|
||||
/// <remarks>
|
||||
/// true - refresh paralyze time, false - accumulate paralyze time
|
||||
/// </remarks>
|
||||
[DataField("refresh")] public bool Refresh = true;
|
||||
|
||||
public override void Effect(ReagentEffectArgs args)
|
||||
{
|
||||
EntitySystem.Get<StunSystem>().TryParalyze(args.SolutionEntity, TimeSpan.FromSeconds(ParalyzeTime), Refresh);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,3 +306,10 @@
|
||||
listingName: Ultragigacancer Health Analyzer
|
||||
description: Works like a normal health analyzer, other than giving everyone it scans ultragigacancer.
|
||||
price: 5
|
||||
|
||||
- type: uplinkListing
|
||||
id: UplinkNocturineChemistryBottle
|
||||
category: Misc
|
||||
itemId: NocturineChemistryBottle
|
||||
description: A chemical that makes it very hard for your target to stand up.
|
||||
price: 5
|
||||
|
||||
@@ -139,4 +139,18 @@
|
||||
reagents:
|
||||
- ReagentId: RobustHarvest
|
||||
Quantity: 30
|
||||
|
||||
- type: entity
|
||||
id: NocturineChemistryBottle
|
||||
name: nocturine bottle
|
||||
description: This will make someone fall down almost immediately. Hard to overdose on.
|
||||
parent: BaseChemistryEmptyBottle
|
||||
components:
|
||||
- type: SolutionContainerManager
|
||||
solutions:
|
||||
drink:
|
||||
maxVol: 30
|
||||
reagents:
|
||||
- ReagentId: Nocturine
|
||||
Quantity: 30
|
||||
|
||||
|
||||
@@ -124,3 +124,31 @@
|
||||
desc: An illegal compound which induces a number of effects such as loss of balance and visual artefacts.
|
||||
physicalDesc: syrupy
|
||||
color: "#63806e"
|
||||
|
||||
# Probably replace this one with sleeping chem when putting someone in a comatose state is easier
|
||||
- type: reagent
|
||||
id: Nocturine
|
||||
name: nocturine
|
||||
group: Narcotics
|
||||
desc: Makes you feel very tired and unable to stand up. Basically, it's bone hurting juice.
|
||||
physicalDesc: powdery
|
||||
color: "#128e80"
|
||||
boilingPoint: 444.0
|
||||
meltingPoint: 128.0
|
||||
metabolisms:
|
||||
Narcotic:
|
||||
effects:
|
||||
- !type:HealthChange
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
min: 60
|
||||
damage:
|
||||
types:
|
||||
Poison: 1
|
||||
- !type:Paralyze
|
||||
paralyzeTime: 1.2
|
||||
refresh: false
|
||||
- !type:GenericStatusEffect
|
||||
key: Stutter
|
||||
time: 1
|
||||
component: StutteringAccent
|
||||
|
||||
Reference in New Issue
Block a user