Facility Hack Timer #1314 from ScrawnyRonnie/hack-timer

Different LLU Facility Hack Timer
This commit is contained in:
ScrawnyRonnie 2025-11-19 08:35:46 -05:00 committed by GitHub
commit 9646b3f99e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -833,7 +833,7 @@ class GeneralLogic(val ops: GeneralOperations, implicit val context: ActorContex
pkt match {
case OutfitRequest(_, OutfitRequestAction.Motd(message)) =>
SessionOutfitHandlers.HandleOutfitMotd(zones, message, player)
//SessionOutfitHandlers.HandleOutfitMotd(zones, message, player)
case OutfitRequest(_, OutfitRequestAction.Ranks(List(r1, r2, r3, r4, r5, r6, r7, r8))) =>
SessionOutfitHandlers.HandleOutfitRank(zones, List(r1, r2, r3, r4, r5, r6, r7, r8), player)

View file

@ -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 =>
15.minutes
case _ =>
target.Definition.FacilityHackTime
}
target.HackedBy.map {
hackInfo => target.HackedBy = hackInfo.Duration(duration.toMillis)
}