fix(diag): stat-chain probe string builds (FormattableString concatenation)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
f6e895c06c
commit
76776aaff8
2 changed files with 8 additions and 7 deletions
|
|
@ -109,11 +109,12 @@ public static class EnchantmentMath
|
|||
// Bucket-4 branch above the table lookup.)
|
||||
if (ench.Bucket == 4)
|
||||
{
|
||||
string droppedValue = ench.StatModValue is float dv
|
||||
? dv.ToString("F4", System.Globalization.CultureInfo.InvariantCulture)
|
||||
: "NULL";
|
||||
System.Console.WriteLine(
|
||||
System.FormattableString.Invariant(
|
||||
$"[stat-chain] VITAE DROPPED by spell-table lookup: "
|
||||
+ $"spell={ench.SpellId} value="
|
||||
+ $"{(ench.StatModValue is float dv ? dv.ToString("F4") : "NULL")}"));
|
||||
$"[stat-chain] VITAE DROPPED by spell-table lookup: spell={ench.SpellId} value={droppedValue}"));
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -389,12 +389,12 @@ public sealed class Spellbook
|
|||
// decidable from one log. Bucket 4 = vitae singleton class.
|
||||
if (enchantment.Bucket == 4)
|
||||
{
|
||||
string vitaeValue = enchantment.StatModValue is float v
|
||||
? v.ToString("F4", System.Globalization.CultureInfo.InvariantCulture)
|
||||
: "NULL";
|
||||
System.Console.WriteLine(
|
||||
System.FormattableString.Invariant(
|
||||
$"[stat-chain] login vitae installed: spell={enchantment.SpellId} "
|
||||
+ $"statModType=0x{enchantment.StatModType ?? 0:X} "
|
||||
+ $"key={enchantment.StatModKey ?? 0} "
|
||||
+ $"value={(enchantment.StatModValue is float v ? v.ToString("F4") : "NULL")}"));
|
||||
$"[stat-chain] login vitae installed: spell={enchantment.SpellId} statModType=0x{enchantment.StatModType ?? 0:X} key={enchantment.StatModKey ?? 0} value={vitaeValue}"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue