Нерф веществ
This commit is contained in:
@@ -2,7 +2,9 @@ using Content.Shared.Chemistry.Reagent;
|
||||
using Content.Shared.Damage;
|
||||
using Content.Shared.Damage.Prototypes;
|
||||
using Content.Shared.FixedPoint;
|
||||
using Content.Shared.Inventory;
|
||||
using Content.Shared.Localizations;
|
||||
using Content.Shared.Tag;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Shared.Prototypes;
|
||||
using System.Linq;
|
||||
@@ -35,6 +37,14 @@ namespace Content.Server.Chemistry.ReagentEffects
|
||||
[JsonPropertyName("ignoreResistances")]
|
||||
public bool IgnoreResistances = true;
|
||||
|
||||
/// <summary>
|
||||
/// WD.
|
||||
/// Whether this will work through hardsuits or not.
|
||||
/// </summary>
|
||||
[DataField]
|
||||
[JsonPropertyName("pierceHardsuit")]
|
||||
public bool PierceHardsuit = true;
|
||||
|
||||
protected override string ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
||||
{
|
||||
var damages = new List<string>();
|
||||
@@ -112,6 +122,11 @@ namespace Content.Server.Chemistry.ReagentEffects
|
||||
|
||||
public override void Effect(ReagentEffectArgs args)
|
||||
{
|
||||
if (!PierceHardsuit &&
|
||||
args.EntityManager.System<InventorySystem>().TryGetSlotEntity(args.SolutionEntity, "outerClothing", out var suit) &&
|
||||
args.EntityManager.System<TagSystem>().HasTag(suit.Value, "Hardsuit"))
|
||||
return; // WD
|
||||
|
||||
var scale = ScaleByQuantity ? args.Quantity : FixedPoint2.New(1);
|
||||
scale *= args.Scale;
|
||||
|
||||
|
||||
@@ -151,5 +151,5 @@ reagent-desc-psicodine = Подавляет тревогу и прочие фо
|
||||
reagent-name-potassium-iodide = йодистый калий
|
||||
reagent-desc-potassium-iodide = Снижает поражающее действие от радиации на 90%. Только профилактическое применение.
|
||||
|
||||
reagent-name-haloperidol = галоперидол
|
||||
reagent-desc-haloperidol = Выводит из организма большую часть стимулирующих или галлюцигенных химикатов. Вызывает сонливость.
|
||||
reagent-name-haloperidol = галоперидол
|
||||
reagent-desc-haloperidol = Выводит из организма большую часть стимулирующих или галлюцигенных химикатов. Вызывает сонливость.
|
||||
|
||||
@@ -1162,7 +1162,7 @@
|
||||
conditions:
|
||||
- !type:ReagentThreshold
|
||||
min: 12
|
||||
|
||||
|
||||
- type: reagent
|
||||
id: Opporozidone #Name based of an altered version of the startreck chem "Opporozine"
|
||||
name: reagent-name-opporozidone
|
||||
@@ -1249,6 +1249,7 @@
|
||||
effects:
|
||||
- !type:HealthChange
|
||||
scaleByQuantity: true
|
||||
pierceHardsuit: false
|
||||
damage:
|
||||
groups:
|
||||
Brute: -1.25
|
||||
@@ -1280,6 +1281,7 @@
|
||||
effects:
|
||||
- !type:HealthChange
|
||||
scaleByQuantity: true
|
||||
pierceHardsuit: false
|
||||
damage:
|
||||
types:
|
||||
Heat: -2
|
||||
@@ -1307,6 +1309,7 @@
|
||||
effects:
|
||||
- !type:HealthChange
|
||||
scaleByQuantity: true
|
||||
pierceHardsuit: false
|
||||
damage:
|
||||
groups:
|
||||
Brute: -2
|
||||
|
||||
Reference in New Issue
Block a user