Artifact glue reagent (#38670)
* a * Revert "a" This reverts commit 2b9ba4ea67a9395d30b7ab37c8065f627f1a961a. * f * dev it * a? * ad * forgor * Revert "f" This reverts commit 39228c7cbe4d28ba43b73580b55e01c3979eb869. * derandomisation! * reviv * flavor * fixe * dwwasdwasdwa * dwasdwasdwas * fuck you
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
using Content.Shared.Xenoarchaeology.Artifact.Components;
|
||||||
|
using Content.Shared.Xenoarchaeology.Artifact;
|
||||||
|
using Robust.Shared.Prototypes;
|
||||||
|
|
||||||
|
namespace Content.Shared.EntityEffects.Effects;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Restores durability in active artefact nodes.
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class ArtifactDurabilityRestore : EntityEffect
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// Amount of durability that will be restored per effect interaction.
|
||||||
|
/// </summary>
|
||||||
|
[DataField]
|
||||||
|
public int RestoredDurability = 1;
|
||||||
|
|
||||||
|
public override void Effect(EntityEffectBaseArgs args)
|
||||||
|
{
|
||||||
|
var entMan = args.EntityManager;
|
||||||
|
var xenoArtifactSys = entMan.System<SharedXenoArtifactSystem>();
|
||||||
|
|
||||||
|
if (!entMan.TryGetComponent<XenoArtifactComponent>(args.TargetEntity, out var xenoArtifact))
|
||||||
|
return;
|
||||||
|
|
||||||
|
foreach (var node in xenoArtifactSys.GetActiveNodes((args.TargetEntity, xenoArtifact)))
|
||||||
|
{
|
||||||
|
xenoArtifactSys.AdjustNodeDurability(node.Owner, RestoredDurability);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override string ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
||||||
|
{
|
||||||
|
return Loc.GetString("reagent-effect-guidebook-artifact-durability-restore", ("restored", RestoredDurability));
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -342,5 +342,6 @@ flavor-complex-bee = unbeelievable
|
|||||||
flavor-complex-sax = like jazz
|
flavor-complex-sax = like jazz
|
||||||
flavor-complex-bottledlightning = like lightning in a bottle
|
flavor-complex-bottledlightning = like lightning in a bottle
|
||||||
flavor-complex-punishment = like punishment
|
flavor-complex-punishment = like punishment
|
||||||
|
flavor-complex-artifact-glue = like crushed artifacts
|
||||||
flavor-weh = like weh
|
flavor-weh = like weh
|
||||||
flavor-hew = like hew
|
flavor-hew = like hew
|
||||||
|
|||||||
@@ -384,6 +384,9 @@ reagent-effect-guidebook-artifact-unlock =
|
|||||||
*[other] help
|
*[other] help
|
||||||
} unlock an alien artifact.
|
} unlock an alien artifact.
|
||||||
|
|
||||||
|
reagent-effect-guidebook-artifact-durability-restore =
|
||||||
|
Restores {$restored} durability in active alien artifact nodes.
|
||||||
|
|
||||||
reagent-effect-guidebook-plant-attribute =
|
reagent-effect-guidebook-plant-attribute =
|
||||||
{ $chance ->
|
{ $chance ->
|
||||||
[1] Adjusts
|
[1] Adjusts
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ reagent-desc-sodium-carbonate = A white, odorless, water-soluble salt that yield
|
|||||||
reagent-name-artifexium = artifexium
|
reagent-name-artifexium = artifexium
|
||||||
reagent-desc-artifexium = A lavender mixture of microscopic artifact fragments and a strong acid. It has the ability to activate artifacts.
|
reagent-desc-artifexium = A lavender mixture of microscopic artifact fragments and a strong acid. It has the ability to activate artifacts.
|
||||||
|
|
||||||
|
reagent-name-artifact-glue = artifact glue
|
||||||
|
reagent-desc-artifact-glue = Mixture of glue and artifexium. It can restore durability of nodes in artifact on touch.
|
||||||
|
|
||||||
reagent-name-benzene = benzene
|
reagent-name-benzene = benzene
|
||||||
reagent-desc-benzene = An aromatic, slightly carcinogenic, ring of carbon, forming a base for many organic compounds.
|
reagent-desc-benzene = An aromatic, slightly carcinogenic, ring of carbon, forming a base for many organic compounds.
|
||||||
|
|
||||||
|
|||||||
@@ -96,3 +96,4 @@ reagent-physical-desc-holy = holy
|
|||||||
reagent-physical-desc-slimy = slimy
|
reagent-physical-desc-slimy = slimy
|
||||||
reagent-physical-desc-neural = neural
|
reagent-physical-desc-neural = neural
|
||||||
reagent-physical-desc-unidentifiable = unidentifiable
|
reagent-physical-desc-unidentifiable = unidentifiable
|
||||||
|
reagent-physical-desc-non-newtonian = non-newtonian
|
||||||
|
|||||||
@@ -1479,3 +1479,7 @@
|
|||||||
flavorType: Base
|
flavorType: Base
|
||||||
description: flavor-base-trashy
|
description: flavor-base-trashy
|
||||||
|
|
||||||
|
- type: flavor
|
||||||
|
id: artifactglue
|
||||||
|
flavorType: Complex
|
||||||
|
description: flavor-complex-artifact-glue
|
||||||
|
|||||||
@@ -81,6 +81,23 @@
|
|||||||
- !type:ReagentThreshold
|
- !type:ReagentThreshold
|
||||||
min: 5
|
min: 5
|
||||||
|
|
||||||
|
- type: reagent
|
||||||
|
parent: Artifexium
|
||||||
|
id: ArtifactGlue
|
||||||
|
name: reagent-name-artifact-glue
|
||||||
|
desc: reagent-desc-artifact-glue
|
||||||
|
flavor: artifactglue
|
||||||
|
physicalDesc: reagent-physical-desc-non-newtonian
|
||||||
|
color: "#827394"
|
||||||
|
reactiveEffects:
|
||||||
|
Acidic:
|
||||||
|
methods: [ Touch ]
|
||||||
|
effects:
|
||||||
|
- !type:ArtifactDurabilityRestore
|
||||||
|
conditions:
|
||||||
|
- !type:ReagentThreshold
|
||||||
|
min: 5
|
||||||
|
|
||||||
- type: reagent
|
- type: reagent
|
||||||
id: Benzene
|
id: Benzene
|
||||||
name: reagent-name-benzene
|
name: reagent-name-benzene
|
||||||
|
|||||||
@@ -515,3 +515,13 @@
|
|||||||
amount: 1
|
amount: 1
|
||||||
products:
|
products:
|
||||||
Tazinide: 1
|
Tazinide: 1
|
||||||
|
|
||||||
|
- type: reaction
|
||||||
|
id: ArtifactGlue
|
||||||
|
reactants:
|
||||||
|
SpaceGlue:
|
||||||
|
amount: 1
|
||||||
|
Artifexium:
|
||||||
|
amount: 1
|
||||||
|
products:
|
||||||
|
ArtifactGlue: 2
|
||||||
|
|||||||
Reference in New Issue
Block a user