Replaces reagent-effect-guidebook-missing with more descriptive guidebook entries (#28817)

removes `reagent-effect-guidebook-missing`

Co-authored-by: John Doe <johndoe@gmail.com>
This commit is contained in:
Zonespace
2024-06-15 04:43:36 +02:00
committed by GitHub
parent 9e4d191189
commit 3cd740c32b
4 changed files with 15 additions and 7 deletions

View File

@@ -46,7 +46,9 @@ namespace Content.Server.Chemistry.ReactionEffects
public override bool ShouldLog => true;
protected override string ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("reagent-effect-guidebook-missing");
=> Loc.GetString("reagent-effect-guidebook-area-reaction",
("duration", _duration)
);
public override LogImpact LogImpact => LogImpact.High;

View File

@@ -26,6 +26,6 @@ namespace Content.Server.Chemistry.ReagentEffects
}
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) =>
Loc.GetString("reagent-effect-guidebook-missing", ("chance", Probability));
Loc.GetString("reagent-effect-guidebook-add-to-solution-reaction", ("chance", Probability));
}
}

View File

@@ -1,4 +1,4 @@
using System.Linq;
using System.Linq;
using System.Text.Json.Serialization;
using Content.Shared.Chemistry.Components;
using Content.Shared.Database;
@@ -28,7 +28,7 @@ namespace Content.Shared.Chemistry.Reagent
public virtual string ReagentEffectFormat => "guidebook-reagent-effect-description";
protected abstract string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys); // => Loc.GetString("reagent-effect-guidebook-missing", ("chance", Probability));
protected abstract string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys);
/// <summary>
/// What's the chance, from 0 to 1, that this effect will occur?

View File

@@ -1,4 +1,4 @@
-create-3rd-person =
-create-3rd-person =
{ $chance ->
[1] Creates
*[other] create
@@ -345,11 +345,17 @@ reagent-effect-guidebook-reduce-rotting =
*[other] regenerate
} {NATURALFIXED($time, 3)} {MANY("second", $time)} of rotting
reagent-effect-guidebook-missing =
reagent-effect-guidebook-area-reaction =
{ $chance ->
[1] Causes
*[other] cause
} an unknown effect as nobody has written this effect yet
} a smoke or foam reaction for {NATURALFIXED($duration, 3)} {MANY("second", $duration)}
reagent-effect-guidebook-add-to-solution-reaction =
{ $chance ->
[1] Causes
*[other] cause
} chemicals applied to an object to be added to its internal solution container
reagent-effect-guidebook-plant-attribute =
{ $chance ->