]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Prevent freindly fauna node from spawning hostile mobs (#40979)
authorQuasr <182430031+quasr-9@users.noreply.github.com>
Tue, 21 Oct 2025 10:13:37 +0000 (05:13 -0500)
committerGitHub <noreply@github.com>
Tue, 21 Oct 2025 10:13:37 +0000 (10:13 +0000)
* "friendly"

* remove hostile mobs

* completely remove hostiles

* add hostile fauna

---------

Co-authored-by: Quasr <~182430031+quasr-9@users.noreply.github.com>
Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Resources/Prototypes/XenoArch/effects.yml

index 1506d94aa04bd7a6417116fcd7ace9a9915a8f1a..649232edbf7098c2cfb1bff89586c2a17093d441 100644 (file)
@@ -65,6 +65,8 @@
       weight: 4.0
     - id: XenoArtifactFaunaSpawn
       weight: 10.0
+    - id: XenoArtifactHostileFaunaSpawn
+      weight: 10.0
     - id: XenoArtifactCashSpawn
       weight: 10.0
     - id: XenoArtifactShatterWindows
       deleteSpawnerAfterSpawn: false
       table: !type:GroupSelector
         children:
-        - id: MobAdultSlimesYellowAngry
-        - id: MobAngryBee
-        - id: MobBearSpace
-        - id: MobXenoRavager
-        - id: MobTick
-        - id: MobSpiderSpace
-        - id: MobPurpleSnake
         - id: MobMouse
-        - id: MobKangarooSpace
         - id: MobPig
         - id: MobParrot
         - id: MobKangaroo
         - id: MobMonkeySyndicateAgent #so lucky
           prob: 0.03
 
+- type: entity
+  id: XenoArtifactHostileFaunaSpawn
+  parent: BaseXenoArtifactEffect
+  description: Create hostile fauna
+  components:
+  - type: XenoArtifactNode
+    maxDurability: 4
+    maxDurabilityCanDecreaseBy:
+      min: 0
+      max: 3
+  - type: XAEApplyComponents
+    applyIfAlreadyHave: true
+    refreshOnReactivate: true
+    components:
+    - type: EntityTableSpawner
+      deleteSpawnerAfterSpawn: false
+      table: !type:GroupSelector
+        children:
+        - id: MobAdultSlimesYellowAngry
+        - id: MobAngryBee
+        - id: MobBearSpace
+        - id: MobXenoRavager
+        - id: MobTick
+        - id: MobSpiderSpace
+        - id: MobPurpleSnake
+        - id: MobKangarooSpace
+
 - type: entity
   id: XenoArtifactCashSpawn
   parent: BaseXenoArtifactEffect