Adds a stun chemical (uplink only) (#7258)

This commit is contained in:
areit
2022-03-28 23:53:27 +03:00
committed by GitHub
parent 3cc0eb5f33
commit 356186c33f
4 changed files with 75 additions and 0 deletions

View 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);
}
}

View File

@@ -306,3 +306,10 @@
listingName: Ultragigacancer Health Analyzer listingName: Ultragigacancer Health Analyzer
description: Works like a normal health analyzer, other than giving everyone it scans ultragigacancer. description: Works like a normal health analyzer, other than giving everyone it scans ultragigacancer.
price: 5 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

View File

@@ -139,4 +139,18 @@
reagents: reagents:
- ReagentId: RobustHarvest - ReagentId: RobustHarvest
Quantity: 30 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

View File

@@ -124,3 +124,31 @@
desc: An illegal compound which induces a number of effects such as loss of balance and visual artefacts. desc: An illegal compound which induces a number of effects such as loss of balance and visual artefacts.
physicalDesc: syrupy physicalDesc: syrupy
color: "#63806e" 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