RynthSuite as of 2026-12-02 (internal a58302e): hotfix 2026.12.2.1

This commit is contained in:
Tom Bohar 2026-12-02 08:38:40 -05:00
commit ba4ea691fe
18 changed files with 263 additions and 148 deletions

View file

@ -121,7 +121,8 @@ internal sealed class DefSettings
/// The Day/Night timer's dark box (2026-12-01: a clear background, so it takes no
/// room of its own). Off (the default, and what a file from before reads as): the timer
/// is drawn on a clear background, its sun or moon and text shadowed so they read over the radar,
/// the arrow or the world. On: the dark box as before. /rdef daynight clear | box.
/// the arrow or the world. On: the dark box as before. Unused since 2026-12-02: the timer is RynthAi's
/// (its own DayNightBox); kept so a settings file from before still loads.
/// </summary>
public bool DayNightBox;
/// <summary>

View file

@ -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