(fix/Prototypes) fix specs not localised, ruRU localisation

Special Thanks to 𒆜𝕲𝖔𝖔𝖉𝕲𝖚𝖞𒆜
This commit is contained in:
NoM0Re
2025-02-24 11:19:23 +01:00
parent ae4241a045
commit 0e0c49ec70
3 changed files with 64 additions and 46 deletions
+5 -5
View File
@@ -1508,15 +1508,15 @@ L["Zul'Gurub"] = "Зул'Гуруб"
L["Affliction"] = "Колдовство" L["Affliction"] = "Колдовство"
L["Arcane"] = "Тайная магия" L["Arcane"] = "Тайная магия"
L["Arms"] = "Оружие" L["Arms"] = "Оружие"
L["Assassination"] = "Убийство" L["Assassination"] = "Ликвидация"
L["Balance"] = "Баланс" L["Balance"] = "Баланс"
L["Beast Mastery"] = "Чувство зверя" L["Beast Mastery"] = "Повелитель зверей"
L["Blood"] = "Кровь" L["Blood"] = "Кровь"
L["Combat"] = "Бой" L["Combat"] = "Бой"
L["Demonology"] = "Демонология" L["Demonology"] = "Демонология"
L["Destruction"] = "Разрушение" L["Destruction"] = "Разрушение"
L["Discipline"] = "Послушание" L["Discipline"] = "Послушание"
L["Elemental"] = "Укрощение стихии" L["Elemental"] = "Стихии"
L["Enhancement"] = "Совершенствование" L["Enhancement"] = "Совершенствование"
L["Feral Combat"] = "Сила зверя" L["Feral Combat"] = "Сила зверя"
L["Fire"] = "Огонь" L["Fire"] = "Огонь"
@@ -1527,8 +1527,8 @@ L["Hybrid"] = "Гибрид"
L["Marksmanship"] = "Стрельба" L["Marksmanship"] = "Стрельба"
L["Protection"] = "Защита" L["Protection"] = "Защита"
L["Restoration"] = "Исцеление" L["Restoration"] = "Исцеление"
L["Retribution"] = "Возмездие" L["Retribution"] = "Воздаяние"
L["Shadow"] = "Темная магия" L["Shadow"] = "Тьма"
L["Subtlety"] = "Скрытность" L["Subtlety"] = "Скрытность"
L["Survival"] = "Выживание" L["Survival"] = "Выживание"
L["Unholy"] = "Нечестивость" L["Unholy"] = "Нечестивость"
+28 -10
View File
@@ -5606,7 +5606,7 @@ Private.event_prototypes = {
timedrequired = true, timedrequired = true,
progressType = "timed" progressType = "timed"
}, },
--[[ --[==[
["Spell Cast Succeeded"] = { ["Spell Cast Succeeded"] = {
type = "event", type = "event",
events = function(trigger) events = function(trigger)
@@ -5616,11 +5616,13 @@ Private.event_prototypes = {
return result return result
end, end,
init = function(trigger) init = function(trigger)
local ret = local ret = [[
local _, rankId = GetSpellInfo(%d)
local spellRank = %d local spellRank = %d
local rank = tonumber(spellRank:match("Rank (%d+)")) or nil rankId = (rankId and tonumber(rankId:match("Rank (%d+)"))) or 0
; local rank = (spellRank and tonumber(spellRank:match("Rank (%d+)"))) or 0
return ret:format(trigger.spellRank or nil); ]];
return ret:format(trigger.spellId or 0, trigger.spellRank or nil);
end, end,
name = L["Spell Cast Succeeded"], name = L["Spell Cast Succeeded"],
statesParameter = "unit", statesParameter = "unit",
@@ -5656,9 +5658,9 @@ Private.event_prototypes = {
name = "spellRank", name = "spellRank",
hidden = true, hidden = true,
init = "arg", init = "arg",
type = "string", type = "number",
store = true, store = true,
test = "true" test = "true",
}, },
{ {
name = "rank", name = "rank",
@@ -5672,17 +5674,33 @@ Private.event_prototypes = {
limit = 2 limit = 2
}, },
}, },
{
name = "spellId",
display = L["Exact Spell ID(s)"],
type = "spell",
init = "spellNames",
store = true,
multiEntry = {
operator = "preamble",
preambleAdd = "spellChecker:AddName(%q)"
},
preamble = "local spellChecker = Private.ExecEnv.CreateSpellChecker()",
preambleGroup = "spell",
test = "spellChecker:Check(spellId)",
conditionType = "number",
noProgressSource = true
},
{ {
name = "icon", name = "icon",
hidden = true, hidden = true,
init = "GetSpellIcon(spellNames or 0)", init = "GetSpellInfo(spellId or spellNames or 0)",
store = true, store = true,
test = "true" test = "true"
}, },
{ {
name = "name", name = "name",
hidden = true, hidden = true,
init = "GetSpellInfo(spellNames or 0)", init = "GetSpellInfo(spellId or spellNames or 0)",
store = true, store = true,
test = "true" test = "true"
}, },
@@ -5692,7 +5710,7 @@ Private.event_prototypes = {
timedrequired = true, timedrequired = true,
progressType = "timed" progressType = "timed"
}, },
]] ]==]
["Ready Check"] = { ["Ready Check"] = {
type = "event", type = "event",
events = { events = {
+31 -31
View File
@@ -3287,82 +3287,82 @@ do
DEATHKNIGHT = { DEATHKNIGHT = {
icon = "Interface\\Icons\\Spell_Deathknight_ClassIcon", icon = "Interface\\Icons\\Spell_Deathknight_ClassIcon",
specs = { specs = {
Unholy = "Interface\\Icons\\Spell_Deathknight_UnholyPresence", [L["Unholy"]] = "Interface\\Icons\\Spell_Deathknight_UnholyPresence",
Frost = "Interface\\Icons\\Spell_Deathknight_FrostPresence", [L["Frost"]] = "Interface\\Icons\\Spell_Deathknight_FrostPresence",
Blood = "Interface\\Icons\\Spell_Deathknight_BloodPresence", [L["Blood"]] = "Interface\\Icons\\Spell_Deathknight_BloodPresence",
} }
}, },
DRUID = { DRUID = {
icon = "Interface\\Icons\\Ability_Druid_Maul", icon = "Interface\\Icons\\Ability_Druid_Maul",
specs = { specs = {
Balance = "Interface\\Icons\\Spell_Nature_StarFall", [L["Balance"]] = "Interface\\Icons\\Spell_Nature_StarFall",
Restoration = "Interface\\Icons\\Spell_Nature_HealingTouch", [L["Restoration"]] = "Interface\\Icons\\Spell_Nature_HealingTouch",
["Feral Combat"] = "Interface\\Icons\\Ability_Racial_BearForm", [L["Feral Combat"]] = "Interface\\Icons\\Ability_Racial_BearForm",
Guardian = "Interface\\Icons\\Ability_Racial_BearForm", [L["Guardian"]] = "Interface\\Icons\\Ability_Racial_BearForm",
} }
}, },
HUNTER = { HUNTER = {
icon = "Interface\\Icons\\INV_Weapon_Bow_07", icon = "Interface\\Icons\\INV_Weapon_Bow_07",
specs = { specs = {
Marksmanship = "Interface\\Icons\\Ability_Marksmanship", [L["Marksmanship"]] = "Interface\\Icons\\Ability_Marksmanship",
["Beast Mastery"] = "Interface\\Icons\\Ability_Hunter_BeastTaming", [L["Beast Mastery"]] = "Interface\\Icons\\Ability_Hunter_BeastTaming",
Survival = "Interface\\Icons\\Ability_Hunter_SwiftStrike", [L["Survival"]] = "Interface\\Icons\\Ability_Hunter_SwiftStrike",
} }
}, },
MAGE = { MAGE = {
icon = "Interface\\Icons\\INV_Staff_13", icon = "Interface\\Icons\\INV_Staff_13",
specs = { specs = {
Fire = "Interface\\Icons\\Spell_Fire_FireBolt02", [L["Fire"]] = "Interface\\Icons\\Spell_Fire_FireBolt02",
Frost = "Interface\\Icons\\Spell_Frost_FrostBolt02", [L["Frost"]] = "Interface\\Icons\\Spell_Frost_FrostBolt02",
Arcane = "Interface\\Icons\\Spell_Holy_MagicalSentry", [L["Arcane"]] = "Interface\\Icons\\Spell_Holy_MagicalSentry",
} }
}, },
PALADIN = { PALADIN = {
icon = "Interface\\Icons\\INV_Hammer_01", icon = "Interface\\Icons\\INV_Hammer_01",
specs = { specs = {
Protection = "Interface\\Icons\\Spell_Holy_DevotionAura", [L["Protection"]] = "Interface\\Icons\\Spell_Holy_DevotionAura",
Holy = "Interface\\Icons\\Spell_Holy_HolyBolt", [L["Holy"]] = "Interface\\Icons\\Spell_Holy_HolyBolt",
Retribution = "Interface\\Icons\\Spell_Holy_AuraOfLight", [L["Retribution"]] = "Interface\\Icons\\Spell_Holy_AuraOfLight",
} }
}, },
PRIEST = { PRIEST = {
icon = "Interface\\Icons\\INV_Staff_30", icon = "Interface\\Icons\\INV_Staff_30",
specs = { specs = {
Discipline = "Interface\\Icons\\Spell_Holy_WordFortitude", [L["Discipline"]] = "Interface\\Icons\\Spell_Holy_WordFortitude",
Holy = "Interface\\Icons\\Spell_Holy_GuardianSpirit", [L["Holy"]] = "Interface\\Icons\\Spell_Holy_GuardianSpirit",
Shadow = "Interface\\Icons\\Spell_Shadow_ShadowWordPain", [L["Shadow"]] = "Interface\\Icons\\Spell_Shadow_ShadowWordPain",
} }
}, },
ROGUE = { ROGUE = {
icon = "Interface\\Icons\\INV_ThrowingKnife_04", icon = "Interface\\Icons\\INV_ThrowingKnife_04",
specs = { specs = {
Subtlety = "Interface\\Icons\\Ability_Stealth", [L["Subtlety"]] = "Interface\\Icons\\Ability_Stealth",
Combat = "Interface\\Icons\\Ability_BackStab", [L["Combat"]] = "Interface\\Icons\\Ability_BackStab",
Assassination = "Interface\\Icons\\Ability_Rogue_Eviscerate", [L["Assassination"]] = "Interface\\Icons\\Ability_Rogue_Eviscerate",
} }
}, },
SHAMAN = { SHAMAN = {
icon = "Interface\\Icons\\Spell_Nature_BloodLust", icon = "Interface\\Icons\\Spell_Nature_BloodLust",
specs = { specs = {
Enhancement = "Interface\\Icons\\Spell_Nature_LightningShield", [L["Enhancement"]] = "Interface\\Icons\\Spell_Nature_LightningShield",
Elemental = "Interface\\Icons\\Spell_Nature_Lightning", [L["Elemental"]] = "Interface\\Icons\\Spell_Nature_Lightning",
Restoration = "Interface\\Icons\\Spell_Nature_MagicImmunity", [L["Restoration"]] = "Interface\\Icons\\Spell_Nature_MagicImmunity",
} }
}, },
WARLOCK = { WARLOCK = {
icon = "Interface\\Icons\\Spell_Nature_FaerieFire", icon = "Interface\\Icons\\Spell_Nature_FaerieFire",
specs = { specs = {
Demonology = "Interface\\Icons\\Spell_Shadow_Metamorphosis", [L["Demonology"]] = "Interface\\Icons\\Spell_Shadow_Metamorphosis",
Affliction = "Interface\\Icons\\Spell_Shadow_DeathCoil", [L["Affliction"]] = "Interface\\Icons\\Spell_Shadow_DeathCoil",
Destruction = "Interface\\Icons\\Spell_Shadow_RainOfFire", [L["Destruction"]] = "Interface\\Icons\\Spell_Shadow_RainOfFire",
} }
}, },
WARRIOR = { WARRIOR = {
icon = "Interface\\Icons\\INV_Sword_27", icon = "Interface\\Icons\\INV_Sword_27",
specs = { specs = {
Arms = "Interface\\Icons\\Ability_Rogue_Eviscerate", [L["Arms"]] = "Interface\\Icons\\Ability_Rogue_Eviscerate",
Protection = "Interface\\Icons\\INV_Shield_06", [L["Protection"]] = "Interface\\Icons\\INV_Shield_06",
Fury = "Interface\\Icons\\Ability_Warrior_InnerRage", [L["Fury"]] = "Interface\\Icons\\Ability_Warrior_InnerRage",
} }
}, },
} }