Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Fix Bluespace Events (new-frontiers-14#2011)
Browse files Browse the repository at this point in the history
* FrontierEventScheduler

* Fix bluespace events, remove centdrobe

* Minor bluespace events to calm table, fix timers

* FalseAlarm: less weight, longer reoccurence, nomax

* fix YAML spacing
  • Loading branch information
whatston3 authored Sep 14, 2024
1 parent 30feef8 commit e5eddc6
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 46 deletions.
7 changes: 0 additions & 7 deletions Resources/Maps/_NF/Bluespace/vault.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7594,13 +7594,6 @@ entities:
- type: Transform
pos: -5.5,-13.5
parent: 1
- proto: VendingMachineCentDrobe
entities:
- uid: 1162
components:
- type: Transform
pos: 6.5,3.5
parent: 1
- proto: WallPlastitanium
entities:
- uid: 3
Expand Down
8 changes: 5 additions & 3 deletions Resources/Prototypes/_NF/Events/events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# - id: SpiderClownSpawn
# - id: SpiderSpawn
- id: VentClog
- id: BluespaceMcCargoCrate # Frontier
- id: BluespaceSyndicateCrate # Frontier
- id: BluespaceBrokenMcDelivery # Frontier

- type: entityTable
id: BasicAntagEventsTable
Expand Down Expand Up @@ -245,11 +248,10 @@
parent: BaseGameRule
components:
- type: StationEvent
weight: 15
weight: 2 # Frontier: 15<2
earliestStart: 15
duration: 1
reoccurrenceDelay: 180 # Frontier
maxOccurrences: 2 # Frontier - People dont like too many false alarms
reoccurrenceDelay: 240 # Frontier: 4 hours
- type: FalseAlarmRule

- type: entity
Expand Down
6 changes: 2 additions & 4 deletions Resources/Prototypes/_NF/Events/nf_events.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
- type: entity
id: BluespaceCargoCrate
parent: BaseStationEventNFModerateDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: bluespace-cargo-event-announcement
weight: 5
duration: 35
reoccurrenceDelay: 120
- type: BluespaceCargoRule
spawnerPrototype: RandomCargoSpawner
requireSafeAtmosphere: true
Expand All @@ -26,7 +26,6 @@
- type: entity
id: BluespaceMcCargoCrate
parent: BaseStationEventNFModerateDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: bluespace-cargo-event-announcement
Expand All @@ -43,7 +42,6 @@
- type: entity
id: BluespaceSyndicateCrate
parent: BaseStationEventNFModerateDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: bluespace-syndicate-crate-event-announcement
Expand All @@ -53,7 +51,7 @@
duration: 35
earliestStart: 90
minimumPlayers: 20
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceCargoRule
spawnerPrototype: CrateSyndicateLightSurplusBundle
maximumSpawns: 2
46 changes: 14 additions & 32 deletions Resources/Prototypes/_NF/Events/nf_events_bluespace.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
- type: entity
id: BluespaceCacheError
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-cache-start-announcement
Expand All @@ -13,16 +12,15 @@
weight: 5
duration: 1350
maxDuration: 1560
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/cache.yml
rewardFactor: 3.3
rewardFactor: 1

- type: entity
id: BluespaceVaultError
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-vault-start-announcement
Expand All @@ -34,16 +32,15 @@
weight: 5
duration: 1020
maxDuration: 1350
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/vault.yml
rewardFactor: 0.7
rewardFactor: 1

- type: entity
id: BluespaceVaultSmallError
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-vault-start-announcement
Expand All @@ -56,16 +53,15 @@
weight: 5
duration: 590
maxDuration: 780
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/vaultsmall.yml
rewardFactor: 3
rewardFactor: 1

# - type: entity # Need rework
# id: BluespaceAsteroid
# parent: BaseStationEventShortDelay
# categories: [ HideSpawnMenu ]
# components:
# - type: StationEvent
# startAnnouncement: station-event-bluespace-asteroid-start-announcement
Expand All @@ -77,15 +73,13 @@
# weight: 2
# duration: 1500
# maxDuration: 1800
# maxOccurrences: 1 # Only once per shift possible
# reoccurrenceDelay: 480 # 8 hours
# - type: BluespaceErrorRule
# gridPath: /Maps/_NF/Bluespace/asteroidvault.yml
# rewardFactor: 0.5 # Filler to make the bank go up

# - type: entity # Need rework
# id: BluespaceAsteroidBunker
# parent: BaseStationEventShortDelay
# categories: [ HideSpawnMenu ]
# components:
# - type: StationEvent
# startAnnouncement: station-event-bluespace-asteroid-start-announcement
Expand All @@ -97,15 +91,13 @@
# weight: 2
# duration: 2100
# maxDuration: 2400
# maxOccurrences: 1 # Only once per shift possible
# reoccurrenceDelay: 480 # 8 hours
# - type: BluespaceErrorRule
# gridPath: /Maps/_NF/Bluespace/asteroidbunker.yml
# rewardFactor: 0.5 # Filler to make the bank go up

# - type: entity # Need rework
# id: BluespaceCargoniaShip
# parent: BaseStationEventShortDelay
# categories: [ HideSpawnMenu ]
# components:
# - type: StationEvent
# startAnnouncement: station-event-bluespace-generic-ftl-start-announcement
Expand All @@ -117,15 +109,13 @@
# weight: 2
# duration: 900
# maxDuration: 1200
# maxOccurrences: 1 # Only once per shift possible
# reoccurrenceDelay: 480 # 8 hours
# - type: BluespaceErrorRule
# gridPath: /Maps/_NF/Bluespace/cargoniaship.yml
# rewardFactor: 0.5 # Filler to make the bank go up

- type: entity
id: BluespaceDataCarrier
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-generic-ftl-start-announcement
Expand All @@ -137,16 +127,14 @@
weight: 2
duration: 2100
maxDuration: 2400
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/datacarrier.yml
rewardFactor: 0.5 # Filler to make the bank go up

- type: entity
id: BluespaceSyndicateFTLInterception
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-generic-ftl-start-announcement
Expand All @@ -158,16 +146,14 @@
weight: 1
duration: 1800
maxDuration: 2400
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # Only once per shift possible
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/syndieftlintercept.yml
rewardFactor: 0.5 # Filler to make the bank go up

- type: entity
id: BluespaceWizardFederationScout
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-generic-ftl-start-announcement
Expand All @@ -179,16 +165,14 @@
weight: 1
duration: 900
maxDuration: 1200
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/wizardprobealt.yml
rewardFactor: 0.5 # Filler to make the bank go up

- type: entity
id: BluespaceBloodMoon
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-generic-ftl-start-announcement
Expand All @@ -200,16 +184,14 @@
weight: 1
duration: 1800
maxDuration: 2400
maxOccurrences: 1 # Only once per shift possible
reoccurrenceDelay: 480 # 8 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/bloodmoon.yml
rewardFactor: 0.5 # Filler to make the bank go up

- type: entity
id: BluespaceBrokenMcDelivery
parent: BaseStationEventShortDelay
categories: [ HideSpawnMenu ]
components:
- type: StationEvent
startAnnouncement: station-event-bluespace-generic-ftl-start-announcement
Expand All @@ -221,7 +203,7 @@
weight: 5
duration: 900
maxDuration: 1800
reoccurrenceDelay: 180
reoccurrenceDelay: 240 # once per 4 hours
- type: BluespaceErrorRule
gridPaths:
- /Maps/_NF/Bluespace/mcevent.yml
27 changes: 27 additions & 0 deletions Resources/Prototypes/_NF/GameRules/roundstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,30 @@
categories: [ HideSpawnMenu ]
components:
- type: AdventureRule

- type: entity
id: BluespaceEventScheduler
parent: BaseGameRule
components:
- type: BasicStationEventScheduler
scheduledGameRules: !type:NestedSelector
tableId: MajorBluespaceEventsTable
minimumTimeUntilFirstEvent: 2700 # 45 minutes
minMaxEventTiming:
min: 2700 # 45 minutes between events
max: 4500 # 75 minutes between events

- type: entityTable
id: MajorBluespaceEventsTable
table: !type:AllSelector # we need to pass a list of rules, since rules have further restrictions to consider via StationEventComp
children:
- id: BluespaceCacheError
- id: BluespaceVaultError
- id: BluespaceVaultSmallError
# - id: BluespaceAsteroid
# - id: BluespaceAsteroidBunker
# - id: BluespaceCargoniaShip
# - id: BluespaceDataCarrier
- id: BluespaceSyndicateFTLInterception
- id: BluespaceWizardFederationScout
- id: BluespaceBloodMoon
1 change: 1 addition & 0 deletions Resources/Prototypes/_NF/game_presets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
rules:
- Adventure
- BasicStationEventScheduler
- BluespaceEventScheduler
- BasicRoundstartVariation

0 comments on commit e5eddc6

Please sign in to comment.