Merge pull request #1252 from ScrawnyRonnie/hack-timer

Config Set Hack Timer
This commit is contained in:
ScrawnyRonnie 2024-12-26 12:58:03 -05:00 committed by GitHub
commit 2b7648c1f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View file

@ -88,6 +88,9 @@ game {
# Purchases timers for the battleframe robotics vehicles all update at the same time when either of them would update # Purchases timers for the battleframe robotics vehicles all update at the same time when either of them would update
shared-bfr-cooldown = yes shared-bfr-cooldown = yes
# How long the countdown timer is when a facility (main overworld base) is hacked
facility-hack-time = 15.minutes
# HART system, shuttles and facilities # HART system, shuttles and facilities
hart { hart {
# How long the shuttle is not boarding passengers (going through the motions) # How long the shuttle is not boarding passengers (going through the motions)

View file

@ -19,6 +19,7 @@ import net.psforever.objects.vital.base.DamageType
import net.psforever.objects.vital.etc.ExplodingRadialDegrade import net.psforever.objects.vital.etc.ExplodingRadialDegrade
import net.psforever.objects.vital.prop.DamageWithPosition import net.psforever.objects.vital.prop.DamageWithPosition
import net.psforever.types.{ExoSuitType, Vector3} import net.psforever.types.{ExoSuitType, Vector3}
import net.psforever.util.Config
import scala.collection.mutable import scala.collection.mutable
import scala.concurrent.duration._ import scala.concurrent.duration._
@ -707,7 +708,7 @@ object GlobalDefinitionsMiscellaneous {
capture_terminal.Name = "capture_terminal" capture_terminal.Name = "capture_terminal"
capture_terminal.Damageable = false capture_terminal.Damageable = false
capture_terminal.Repairable = false capture_terminal.Repairable = false
capture_terminal.FacilityHackTime = 15.minutes capture_terminal.FacilityHackTime = Config.app.game.facilityHackTime
secondary_capture.Name = "secondary_capture" secondary_capture.Name = "secondary_capture"
secondary_capture.Damageable = false secondary_capture.Damageable = false

View file

@ -163,7 +163,8 @@ case class GameConfig(
doorsCanBeOpenedByMedAppFromThisDistance: Float, doorsCanBeOpenedByMedAppFromThisDistance: Float,
experience: Experience, experience: Experience,
maxBattleRank: Int, maxBattleRank: Int,
promotion: PromotionSystem promotion: PromotionSystem,
facilityHackTime: FiniteDuration
) )
case class InstantActionConfig( case class InstantActionConfig(