From 53deec9f2aaf3916d6c869dcdde2a859e1c61f89 Mon Sep 17 00:00:00 2001 From: IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com> Date: Fri, 6 Sep 2024 19:27:51 -0400 Subject: [PATCH] fix: Snail event wasnt tabled (#31884) pest events reorganized and snails spawn --- Resources/Prototypes/GameRules/events.yml | 108 --------------- Resources/Prototypes/GameRules/pests.yml | 126 ++++++++++++++++++ Resources/Prototypes/GameRules/roundstart.yml | 5 + 3 files changed, 131 insertions(+), 108 deletions(-) create mode 100644 Resources/Prototypes/GameRules/pests.yml diff --git a/Resources/Prototypes/GameRules/events.yml b/Resources/Prototypes/GameRules/events.yml index a89f26ccd8..9a3026739e 100644 --- a/Resources/Prototypes/GameRules/events.yml +++ b/Resources/Prototypes/GameRules/events.yml @@ -271,114 +271,6 @@ duration: 240 - type: KudzuGrowthRule -- type: entity - id: MouseMigration - parent: BaseStationEventShortDelay - components: - - type: StationEvent - startAnnouncement: station-event-vent-creatures-start-announcement - startAudio: - path: /Audio/Announcements/attention.ogg - earliestStart: 15 - weight: 6 - duration: 50 - - type: VentCrittersRule - entries: - - id: MobMouse - prob: 0.02 - - id: MobMouse1 - prob: 0.02 - - id: MobMouse2 - prob: 0.02 - - id: MobMouseCancer - prob: 0.001 -# Events always spawn a critter regardless of Probability https://github.com/space-wizards/space-station-14/issues/28480 I added the Rat King to their own event with a player cap. - -- type: entity - id: KingRatMigration - parent: BaseStationEventShortDelay - components: - - type: StationEvent - startAnnouncement: station-event-vent-creatures-start-announcement - startAudio: - path: /Audio/Announcements/attention.ogg - earliestStart: 15 - weight: 6 - duration: 50 - minimumPlayers: 30 # Hopefully this is enough for the Rat King's potential Army (it was not, raised from 15 -> 30) - - type: VentCrittersRule - entries: - - id: MobMouse - prob: 0.02 - - id: MobMouse1 - prob: 0.02 - - id: MobMouse2 - prob: 0.02 - - id: MobMouseCancer - prob: 0.001 - specialEntries: - - id: SpawnPointGhostRatKing - prob: 0.001 - -- type: entity - id: CockroachMigration - parent: BaseStationEventShortDelay - components: - - type: StationEvent - startAnnouncement: station-event-vent-creatures-start-announcement - startAudio: - path: /Audio/Announcements/attention.ogg - weight: 6 - duration: 50 - - type: VentCrittersRule - entries: - - id: MobCockroach - prob: 0.03 - - id: MobMothroach - prob: 0.008 - -- type: entity - id: SnailMigrationLowPop - parent: BaseStationEventShortDelay - components: - - type: StationEvent - startAnnouncement: station-event-vent-creatures-start-announcement - startAudio: - path: /Audio/Announcements/attention.ogg - weight: 6 - duration: 50 - - type: VentCrittersRule - entries: - - id: MobSnail - prob: 0.02 - - id: MobSnailSpeed - prob: 0.002 - - id: MobSnailMoth - prob: 0.002 - -- type: entity - id: SnailMigration - parent: BaseStationEventShortDelay - components: - - type: StationEvent - startAnnouncement: station-event-vent-creatures-start-announcement - startAudio: - path: /Audio/Announcements/attention.ogg - earliestStart: 15 - weight: 6 - duration: 50 - minimumPlayers: 30 - - type: VentCrittersRule - entries: - - id: MobSnail - prob: 0.02 - - id: MobSnailSpeed - prob: 0.002 - - id: MobSnailMoth - prob: 0.002 - - id: MobSnailInstantDeath - prob: 0.00001 # ~ 1:2000 snails - - type: entity id: PowerGridCheck parent: BaseStationEventShortDelay diff --git a/Resources/Prototypes/GameRules/pests.yml b/Resources/Prototypes/GameRules/pests.yml new file mode 100644 index 0000000000..c0a746a138 --- /dev/null +++ b/Resources/Prototypes/GameRules/pests.yml @@ -0,0 +1,126 @@ +# tables + +- type: entityTable + id: CalmPestEventsTable + table: !type:AllSelector # we need to pass a list of rules, since rules have further restrictions to consider via StationEventComp + children: + - id: SnailMigrationLowPop + - id: CockroachMigration + - id: MouseMigration + +- type: entityTable + id: SpicyPestEventsTable + table: !type:AllSelector # we need to pass a list of rules, since rules have further restrictions to consider via StationEventComp + children: + - id: KingRatMigration + - id: SnailMigration + +# events + +- type: entity + id: MouseMigration + parent: BaseStationEventShortDelay + components: + - type: StationEvent + startAnnouncement: station-event-vent-creatures-start-announcement + startAudio: + path: /Audio/Announcements/attention.ogg + earliestStart: 15 + weight: 6 + duration: 50 + - type: VentCrittersRule + entries: + - id: MobMouse + prob: 0.02 + - id: MobMouse1 + prob: 0.02 + - id: MobMouse2 + prob: 0.02 + - id: MobMouseCancer + prob: 0.001 +# Events always spawn a critter regardless of Probability https://github.com/space-wizards/space-station-14/issues/28480 I added the Rat King to their own event with a player cap. + +- type: entity + id: KingRatMigration + parent: BaseStationEventShortDelay + components: + - type: StationEvent + startAnnouncement: station-event-vent-creatures-start-announcement + startAudio: + path: /Audio/Announcements/attention.ogg + earliestStart: 15 + weight: 6 + duration: 50 + minimumPlayers: 30 # Hopefully this is enough for the Rat King's potential Army (it was not, raised from 15 -> 30) + - type: VentCrittersRule + entries: + - id: MobMouse + prob: 0.02 + - id: MobMouse1 + prob: 0.02 + - id: MobMouse2 + prob: 0.02 + - id: MobMouseCancer + prob: 0.001 + specialEntries: + - id: SpawnPointGhostRatKing + prob: 0.001 + +- type: entity + id: CockroachMigration + parent: BaseStationEventShortDelay + components: + - type: StationEvent + startAnnouncement: station-event-vent-creatures-start-announcement + startAudio: + path: /Audio/Announcements/attention.ogg + weight: 6 + duration: 50 + - type: VentCrittersRule + entries: + - id: MobCockroach + prob: 0.03 + - id: MobMothroach + prob: 0.008 + +- type: entity + id: SnailMigrationLowPop + parent: BaseStationEventShortDelay + components: + - type: StationEvent + startAnnouncement: station-event-vent-creatures-start-announcement + startAudio: + path: /Audio/Announcements/attention.ogg + weight: 6 + duration: 50 + - type: VentCrittersRule + entries: + - id: MobSnail + prob: 0.02 + - id: MobSnailSpeed + prob: 0.002 + - id: MobSnailMoth + prob: 0.002 + +- type: entity + id: SnailMigration + parent: BaseStationEventShortDelay + components: + - type: StationEvent + startAnnouncement: station-event-vent-creatures-start-announcement + startAudio: + path: /Audio/Announcements/attention.ogg + earliestStart: 15 + weight: 6 + duration: 50 + minimumPlayers: 30 + - type: VentCrittersRule + entries: + - id: MobSnail + prob: 0.02 + - id: MobSnailSpeed + prob: 0.002 + - id: MobSnailMoth + prob: 0.002 + - id: MobSnailInstantDeath + prob: 0.00001 # ~ 1:2000 snails \ No newline at end of file diff --git a/Resources/Prototypes/GameRules/roundstart.yml b/Resources/Prototypes/GameRules/roundstart.yml index 8ef0db9658..f6feaa1449 100644 --- a/Resources/Prototypes/GameRules/roundstart.yml +++ b/Resources/Prototypes/GameRules/roundstart.yml @@ -273,6 +273,11 @@ tableId: BasicAntagEventsTable - !type:NestedSelector tableId: CargoGiftsTable + - !type:NestedSelector + tableId: CalmPestEventsTable + - !type:NestedSelector + tableId: SpicyPestEventsTable + - type: entityTable id: SpaceTrafficControlTable -- 2.51.2