-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into DungeonMobsTweaks
- Loading branch information
Showing
395 changed files
with
32,283 additions
and
23,091 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
Content.Server/Chemistry/ReagentEffects/DisintegrateArtifact.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Content.Server.Xenoarchaeology.XenoArtifacts; | ||
using Content.Shared.Chemistry.Reagent; | ||
using Robust.Shared.Prototypes; | ||
|
||
namespace Content.Server.Chemistry.ReagentEffects; | ||
|
||
public sealed partial class DisintegrateArtifact : ReagentEffect | ||
{ | ||
|
||
/// <summary> | ||
/// Disintegrate chance | ||
/// </summary> | ||
[DataField("probabilityMin"), ViewVariables(VVAccess.ReadWrite)] | ||
public float ProbabilityMax = 0.05f; | ||
|
||
/// <summary> | ||
/// Disintegrate chance | ||
/// </summary> | ||
[DataField("probabilityMax"), ViewVariables(VVAccess.ReadWrite)] | ||
public float ProbabilityMin = 0.15f; | ||
|
||
/// <summary> | ||
/// The range around the artifact that it will spawn the entity | ||
/// </summary> | ||
[DataField("range")] | ||
public float Range = 0.5f; | ||
|
||
public override void Effect(ReagentEffectArgs args) | ||
{ | ||
var artifact = args.EntityManager.EntitySysManager.GetEntitySystem<ArtifactSystem>(); | ||
artifact.DisintegrateArtifact(args.SolutionEntity, ProbabilityMin, ProbabilityMax, Range); | ||
} | ||
|
||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) => | ||
null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.