turtle-wow: add zhCN support for trueshot

This commit is contained in:
shagu
2024-02-26 18:04:06 +01:00
parent 1365368ecf
commit 24097d7d21
+7 -2
View File
@@ -29,7 +29,12 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
-- add trueshot to pfUI's custom casts -- add trueshot to pfUI's custom casts
local player = UnitName("player") local player = UnitName("player")
libcast.customcast["trueshot"] = function(begin, duration) -- add locales
pfUI_locale["enUS"]["customcast"]["TRUESHOT"] = "Trueshot"
pfUI_locale["zhCN"]["customcast"]["TRUESHOT"] = "稳固射击"
local trueshot = L["customcast"]["TRUESHOT"]
libcast.customcast[strlower(trueshot)] = function(begin, duration)
if begin then if begin then
local duration = duration or 1000 local duration = duration or 1000
@@ -53,7 +58,7 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
local start = GetTime() + lag/1000 local start = GetTime() + lag/1000
-- add cast action to the database -- add cast action to the database
libcast.db[player].cast = "Trueshot" libcast.db[player].cast = trueshot
libcast.db[player].rank = lastrank libcast.db[player].rank = lastrank
libcast.db[player].start = start libcast.db[player].start = start
libcast.db[player].casttime = duration libcast.db[player].casttime = duration