mirror of
https://github.com/psforever/PSF-LoginServer.git
synced 2026-01-19 18:44:45 +00:00
different llu facility time
This commit is contained in:
parent
a0ddec6872
commit
79d66bbc19
|
|
@ -41,7 +41,13 @@ class HackCaptureActor extends Actor {
|
|||
|
||||
case HackCaptureActor.StartCaptureTerminalHack(target, zone, unk1, unk2, startTime) =>
|
||||
log.trace(s"StartCaptureTerminalHack: ${target.GUID} is hacked")
|
||||
val duration = target.Definition.FacilityHackTime
|
||||
val hackingFaction = HackCaptureActor.GetHackingFaction(target).get
|
||||
val duration = target.Owner match {
|
||||
case b: Building if b.IsCtfBase && b.Neighbours(hackingFaction).nonEmpty =>
|
||||
10.minutes
|
||||
case _ =>
|
||||
target.Definition.FacilityHackTime
|
||||
}
|
||||
target.HackedBy.map {
|
||||
hackInfo => target.HackedBy = hackInfo.Duration(duration.toMillis)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue