RynthSuite as of 2026-12-02 (internal a58302e): hotfix 2026.12.2.1
This commit is contained in:
parent
6b5a9c7e99
commit
ba4ea691fe
18 changed files with 263 additions and 148 deletions
|
|
@ -26,25 +26,8 @@ internal static class DefReplies
|
|||
_ => (false, $"The {title} isn't open: open it first (/rdef appraisal), then pop it out."),
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// /rdef daynight [show|hide]: the Day/Night timer after it (<paramref name="state"/> as <see cref="Window"/>),
|
||||
/// then the time now when the clock can be read (null = not in world): "Day/Night timer shown. Night now
|
||||
/// (Evensong); day in 23m of real time."
|
||||
/// </summary>
|
||||
public static (bool Ok, string Text) DayNight(int state, DerethNow? now)
|
||||
{
|
||||
string time = now is { } n
|
||||
? $" {(n.IsDay ? "Day" : "Night")} now ({n.HourName}); {n.Next.ToLowerInvariant()} in {DerethClock.Countdown(n.SecondsToChange)} of real time."
|
||||
: "";
|
||||
return state < 0
|
||||
? (false, "This RynthCore has no Day/Night timer window (it needs plugin API v90)." + time)
|
||||
: (true, CommandReply.Shown("Day/Night timer", state == 1) + time);
|
||||
}
|
||||
|
||||
/// <summary>/rdef daynight clear | box: the timer's background after it.</summary>
|
||||
public static (bool Ok, string Text) DayNightLook(bool box) => (true, box
|
||||
? "Day/Night timer: on its dark box (/rdef daynight clear for no background)."
|
||||
: "Day/Night timer: on a clear background (/rdef daynight box brings the dark box back).");
|
||||
/// <summary>/rdef daynight when RynthAi can't take it: the timer is RynthAi's since 2026-12-02.</summary>
|
||||
public const string DayNightMoved = "The Day/Night timer is part of RynthAi now: load RynthAi, then /ra daynight [show|hide|clear|box].";
|
||||
|
||||
/// <summary>A slot's use started (the result shows on the bar; a problem is said in chat).</summary>
|
||||
public static string UseSlot(DefSlot slot, int number) => slot.IsSpell
|
||||
|
|
|
|||
Loading…
Reference in a new issue