Add new potion images for Recklessness and Silvermoon City Health Potions

- Added 'recklessness-potion.jpg' to the Assets/Spell directory.
- Added 'silvermoon-city-health-potion.png' to the Assets/Spell directory.
This commit is contained in:
waynebian01
2026-08-22 14:30:14 +08:00
parent 6fe636cd03
commit fc0ae0d433
14 changed files with 83 additions and 12 deletions

View File

@@ -1928,6 +1928,13 @@ public sealed class ModuleEditorControl : UserControl
var columnName = _rulesGrid.Columns[e.ColumnIndex].Name;
var row = _rulesGrid.Rows[e.RowIndex];
if (columnName == "SpellIcon" && row.IsNewRow)
{
e.Value = SpellIconCatalog.GetLastRuleRowIcon();
e.FormattingApplied = true;
return;
}
if (!row.IsNewRow && GetMissingConditionFields(row).Count > 0)
{
// 缺失字段会让条件静默不命中;用整行红色状态在保存前就提醒用户修复配置。