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