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:
@@ -46,7 +46,9 @@ namespace Content.Server.Chemistry.ReactionEffects
|
|||||||
public override bool ShouldLog => true;
|
public override bool ShouldLog => true;
|
||||||
|
|
||||||
protected override string ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
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;
|
public override LogImpact LogImpact => LogImpact.High;
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,6 @@ namespace Content.Server.Chemistry.ReagentEffects
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) =>
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text.Json.Serialization;
|
using System.Text.Json.Serialization;
|
||||||
using Content.Shared.Chemistry.Components;
|
using Content.Shared.Chemistry.Components;
|
||||||
using Content.Shared.Database;
|
using Content.Shared.Database;
|
||||||
@@ -28,7 +28,7 @@ namespace Content.Shared.Chemistry.Reagent
|
|||||||
|
|
||||||
public virtual string ReagentEffectFormat => "guidebook-reagent-effect-description";
|
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>
|
/// <summary>
|
||||||
/// What's the chance, from 0 to 1, that this effect will occur?
|
/// What's the chance, from 0 to 1, that this effect will occur?
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
-create-3rd-person =
|
-create-3rd-person =
|
||||||
{ $chance ->
|
{ $chance ->
|
||||||
[1] Creates
|
[1] Creates
|
||||||
*[other] create
|
*[other] create
|
||||||
@@ -345,11 +345,17 @@ reagent-effect-guidebook-reduce-rotting =
|
|||||||
*[other] regenerate
|
*[other] regenerate
|
||||||
} {NATURALFIXED($time, 3)} {MANY("second", $time)} of rotting
|
} {NATURALFIXED($time, 3)} {MANY("second", $time)} of rotting
|
||||||
|
|
||||||
reagent-effect-guidebook-missing =
|
reagent-effect-guidebook-area-reaction =
|
||||||
{ $chance ->
|
{ $chance ->
|
||||||
[1] Causes
|
[1] Causes
|
||||||
*[other] cause
|
*[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 =
|
reagent-effect-guidebook-plant-attribute =
|
||||||
{ $chance ->
|
{ $chance ->
|
||||||
|
|||||||
Reference in New Issue
Block a user