Centralize Hunter interface strings and verify mobile HUD
This commit is contained in:
1 parent
16a359d4af
commit
c88c3501b3
21 files changed
+752
-336
No files matched your search
@@ -1,4 +1,6 @@
|
||||
--!strict
|
||||
local Text = require(game:GetService("ReplicatedStorage"):WaitForChild("Hunter"):WaitForChild("Strings") :: ModuleScript).interface.HotPoint
|
||||
|
||||
local Diagnostics = require(script.Parent.ModeRuntime.ZoneDiagnostics)
|
||||
local Credit = require(script.Parent.ModeRuntime.HotPointCredit)
|
||||
local Sites = require(script.Parent:WaitForChild("ArenaObjectiveSites") :: ModuleScript)
|
||||
@@ -155,10 +157,10 @@ function HotPoint.start(config: Config): Capture
|
||||
local since = now - capturedAt
|
||||
if since >= COLLAPSE_SECONDS + CAPTURE_NOTICE_SECONDS then
|
||||
publish(nil, 0, nil)
|
||||
config.status("Скоро появится новая точка")
|
||||
config.status(Text.skoroPoyavitsyaNovayaTochka)
|
||||
elseif since >= COLLAPSE_SECONDS then
|
||||
publish(capturedSide, 100, "Captured")
|
||||
config.status("Точка захвачена")
|
||||
config.status(Text.tochkaZakhvachena)
|
||||
end
|
||||
return
|
||||
end
|
||||
@@ -173,7 +175,7 @@ function HotPoint.start(config: Config): Capture
|
||||
if fighter.side == "Blue" then blue += 1 else orange += 1 end
|
||||
end
|
||||
local remaining = math.ceil(movesAt - now)
|
||||
config.status(site.name .. " · Смена точки через " .. remaining .. " с")
|
||||
config.status(site.name .. Text.smenaTochkiCherez .. remaining .. Text.s)
|
||||
local soleSide: Side? = if blue > 0 and orange == 0 then "Blue" elseif orange > 0 and blue == 0 then "Orange" else nil
|
||||
local isContested = blue > 0 and orange > 0
|
||||
if soleSide then
|
||||
|
||||
Reference in new issue
Block a user