Fase 11 — Decisioni solo matematiche (#186)
News, the economic calendar and earnings dates no longer change any decision (ADR 0023, choices in ADR 0027). The outside rules are measured in the shadow; a switch in the settings turns them back on. refs #116, refs #117 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #186.
This commit is contained in:
1 parent
ed22d1c8b5
commit
93cdf7850d
47 files changed
+1743
-169
No files matched your search
@@ -50,9 +50,13 @@ internal sealed record PanoramaView(
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(board);
|
||||
ArgumentNullException.ThrowIfNull(shell);
|
||||
// With the rules only measured nothing is in force: the tile says what the rule would have done (ADR 0027 point 23).
|
||||
return [.. board.Rows.Where(r => r.Active || r.OnPositions).Take(3).Select(r => new PanoramaNews(
|
||||
Format.ShortDate(r.At, shell.Now, shell.Zone), "su " + r.About, r.Title,
|
||||
r.Active ? $"{r.Tone.Split(',')[0]}: {char.ToLowerInvariant(r.Action[0])}{r.Action[1..].TrimEnd('.')}" : "Nessun effetto: non cambio nulla", r.Active))];
|
||||
r.Active && board.Measured && r.Action.StartsWith("Con le regole attive", StringComparison.Ordinal)
|
||||
? $"Evento in arrivo: {char.ToLowerInvariant(r.Action[0])}{r.Action[1..].Replace(". Solo registrato.", ", solo registrato", StringComparison.Ordinal)}"
|
||||
: r.Active && board.Measured ? $"{r.Tone.Split(',')[0]}: la regola l'avrebbe fermata, solo registrato"
|
||||
: r.Active ? $"{r.Tone.Split(',')[0]}: {char.ToLowerInvariant(r.Action[0])}{r.Action[1..].TrimEnd('.')}" : "Nessun effetto: non cambio nulla", r.Active && !board.Measured))];
|
||||
}
|
||||
|
||||
public static async Task<PanoramaView> LoadAsync(AnubisHost host, ShellData shell, Overview overview, CancellationToken cancellationToken)
|
||||
|
||||
Reference in new issue
Block a user