mirror of
https://github.com/waynebian01/Shigure.git
synced 2026-09-03 07:15:24 +08:00
添加驱散魔法和十字军打击的图标及相关信息
This commit is contained in:
BIN
Assets/Spell/crusader-strike.png
Normal file
BIN
Assets/Spell/crusader-strike.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.2 KiB |
BIN
Assets/Spell/spell-528.jpg
Normal file
BIN
Assets/Spell/spell-528.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
@@ -102,14 +102,20 @@
|
||||
"icon": "spell_nature_removecurse",
|
||||
"target": "Spell/spell-475.jpg"
|
||||
},
|
||||
{
|
||||
"spellId": 527,
|
||||
"name": "纯净术",
|
||||
"icon": "spell_holy_dispelmagic",
|
||||
"target": "Spell/spell-527.jpg"
|
||||
},
|
||||
{
|
||||
"spellId": 585,
|
||||
{
|
||||
"spellId": 527,
|
||||
"name": "纯净术",
|
||||
"icon": "spell_holy_dispelmagic",
|
||||
"target": "Spell/spell-527.jpg"
|
||||
},
|
||||
{
|
||||
"spellId": 528,
|
||||
"name": "驱散魔法",
|
||||
"icon": "spell_nature_nullifydisease",
|
||||
"target": "Spell/spell-528.jpg"
|
||||
},
|
||||
{
|
||||
"spellId": 585,
|
||||
"name": "惩击",
|
||||
"icon": "spell_holy_holysmite",
|
||||
"target": "Spell/spell-585.jpg"
|
||||
|
||||
@@ -352,4 +352,5 @@ Fuyutsui.spellsList = {
|
||||
[6940] = { index = 27, name = "牺牲祝福" },
|
||||
[391054] = { index = 28, name = "代祷" },
|
||||
[633] = { index = 29, name = "圣疗术" },
|
||||
[35395] = { index = 30, name = "十字军打击" }
|
||||
}
|
||||
|
||||
@@ -385,4 +385,5 @@ Fuyutsui.spellsList = {
|
||||
[1262763] = { index = 33, name = "祈福" },
|
||||
[186263] = { index = 34, name = "暗影愈合" },
|
||||
[472433] = { index = 35, name = "福音" },
|
||||
[528] = { index = 36, name = "驱散魔法" },
|
||||
}
|
||||
|
||||
@@ -13,6 +13,10 @@ internal static class SpellIconCatalog
|
||||
private static readonly Dictionary<long, Image?> Icons = new();
|
||||
private static readonly Dictionary<string, Image?> NamedIcons = new(StringComparer.Ordinal);
|
||||
private static readonly Dictionary<string, long> SpellIdsByName = LoadSpellIdsByName();
|
||||
private static readonly Dictionary<long, string> SpellIdIconResources = new()
|
||||
{
|
||||
[35395] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.crusader-strike.png"
|
||||
};
|
||||
private static readonly Dictionary<string, string> NamedIconResources = new(StringComparer.Ordinal)
|
||||
{
|
||||
["银月城生命药水"] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.silvermoon-city-health-potion.png",
|
||||
@@ -21,7 +25,8 @@ internal static class SpellIconCatalog
|
||||
[ModuleSpecialActions.FailedSpell] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.auto-insert-spell.png",
|
||||
["鲁莽药水"] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.recklessness-potion.jpg",
|
||||
["圣光潜力"] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.lights-potential.jpg",
|
||||
["光注法力药水"] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.light-infused-mana-potion.jpg"
|
||||
["光注法力药水"] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.light-infused-mana-potion.jpg",
|
||||
["十字军打击"] = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.crusader-strike.png"
|
||||
};
|
||||
private static readonly string LastRuleRowIconResource =
|
||||
$"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.last-rule-row.png";
|
||||
@@ -33,7 +38,8 @@ internal static class SpellIconCatalog
|
||||
return cached;
|
||||
}
|
||||
|
||||
var resourceName = $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.spell-{spellId}.jpg";
|
||||
var resourceName = SpellIdIconResources.GetValueOrDefault(spellId)
|
||||
?? $"{typeof(SpellIconCatalog).Namespace}.Assets.Spell.spell-{spellId}.jpg";
|
||||
using var stream = typeof(SpellIconCatalog).Assembly.GetManifestResourceStream(resourceName);
|
||||
if (stream is null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user