Polish Hot Point progress and guidance

This commit is contained in:
Leshyi committed 2026-11-29 23:56:23 +05:00
1 parent d3648c485b
commit 522344e34b
9 files changed
+88 -16

No files matched your search

+3 -5
View File
@@ -1,5 +1,6 @@
--!strict
local TweenService = game:GetService("TweenService")
local Credit = require(script.Parent.ModeRuntime.HotPointCredit)
local Sites = require(script.Parent:WaitForChild("ArenaObjectiveSites") :: ModuleScript)
type Side = "Blue" | "Orange"
@@ -248,11 +249,8 @@ function HotPoint.start(config: Config): Capture
end
local underFire = now < hitUntil
local damageTime = math.max(0, math.min(now, hitUntil) - math.max(now - dt, hitSince))
if damageTime > 0 then credit = math.max(0, credit - damageTime * HIT_DECAY) end
if not isContested then
local count = if side == "Blue" then blue else orange
credit += (dt - damageTime) * (if count >= 2 then TEAM_SPEED else 1)
end
local count = if side == "Blue" then blue else orange
credit = Credit.advance(credit, dt, damageTime, HIT_DECAY, if count >= 2 then TEAM_SPEED else 1, isContested)
if credit >= CAPTURE_SECONDS then
capturedSide, capturedAt = side, now
movesAt = now + COLLAPSE_SECONDS + CAPTURE_NOTICE_SECONDS + NEXT_POINT_WARNING_SECONDS