]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
artifact effect fauna and flora spawn (#23295)
authoricekot8 <93311212+icekot8@users.noreply.github.com>
Mon, 1 Jan 2024 06:40:49 +0000 (09:40 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Jan 2024 06:40:49 +0000 (22:40 -0800)
* adding EffectFaunaSpawn

* add spawn flora effect, blood trigger

* fix

removed the bloody trigger

* fix

oh, I hope this solves the problem.

* I added an icon sprite..

* fix

I'm stupid..

* final touch...

Resources/Prototypes/Entities/Markers/Spawners/Random/flora.yml [new file with mode: 0644]
Resources/Prototypes/XenoArch/Effects/normal_effects.yml
Resources/Textures/Objects/Decoration/Flora/flora_trees.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Decoration/Flora/flora_trees.rsi/meta.json

diff --git a/Resources/Prototypes/Entities/Markers/Spawners/Random/flora.yml b/Resources/Prototypes/Entities/Markers/Spawners/Random/flora.yml
new file mode 100644 (file)
index 0000000..9abd35a
--- /dev/null
@@ -0,0 +1,42 @@
+- type: entity
+  id: RandomFloraTree
+  name: random tree spawner
+  parent: MarkerBase
+  components:
+  - type: Sprite
+    layers:
+      - state: red
+      - sprite: Objects/Decoration/Flora/flora_trees.rsi
+        state: icon
+  - type: RandomSpawner
+    prototypes:
+      - FloraTreeLarge01
+      - FloraTreeLarge02
+      - FloraTreeLarge03
+      - FloraTreeLarge04
+      - FloraTreeLarge05
+      - FloraTreeLarge06
+      - FloraTreeConifer01
+      - FloraTreeConifer02
+      - FloraTreeConifer03
+      - FloraTreeSnow01
+      - FloraTreeSnow02
+      - FloraTreeSnow03
+      - FloraTreeSnow04
+      - FloraTreeSnow05
+      - FloraTreeSnow06
+      - FloraTree01
+      - FloraTree02
+      - FloraTree03
+      - FloraTree04
+      - FloraTree05
+      - FloraTree06
+    chance: 0.95
+    rarePrototypes:
+      - ShadowTree01
+      - ShadowTree02
+      - ShadowTree03
+      - ShadowTree04
+      - ShadowTree05
+      - ShadowTree06
+    rareChance: 0.05
index cf6bdd4fc5518b8ca87c65e0dc5da51e74e8c003..5fe619bd4f440e3b59f6d6f6b9385fd4ee55acea 100644 (file)
     possibleChemicals:
     - Potassium
 
+- type: artifactEffect
+  id: EffectFloraSpawn
+  targetDepth: 1
+  effectHint: artifact-effect-hint-creation
+  components:
+  - type: SpawnArtifact
+    maxSpawns: 3
+    spawns:
+    - id: RandomFloraTree
+
 - type: artifactEffect
   id: EffectThrow
   targetDepth: 0
     - id: MobCarpMagic
       orGroup: carp
 
+- type: artifactEffect
+  id: EffectFaunaSpawn
+  targetDepth: 2
+  effectHint: artifact-effect-hint-creation
+  components:
+  - type: SpawnArtifact
+    maxSpawns: 5
+    spawns:
+    - id: MobAdultSlimesYellowAngry
+      orGroup: fauna
+    - id: MobAngryBee
+      orGroup: fauna
+    - id: MobBearSpace
+      orGroup: fauna
+    - id: MobBee
+      orGroup: fauna
+      maxAmount: 5
+    - id: MobCat
+      orGroup: fauna
+      maxAmount: 2
+    - id: MobCatKitten
+      orGroup: fauna
+      maxAmount: 2
+    - id: MobCorgiPuppy
+      orGroup: fauna
+      maxAmount: 2
+    - id: MobFox
+      orGroup: fauna
+      maxAmount: 1
+    - id: MobGoat
+      orGroup: fauna
+      maxAmount: 3
+    - id: MobKangaroo
+      orGroup: fauna
+      maxAmount: 1
+    - id: MobKangarooSpace
+      orGroup: fauna
+    - id: MobMothroach
+      orGroup: fauna
+      maxAmount: 2
+    - id: MobMonkeySyndicateAgent #so lucky
+      orGroup: fauna
+      maxAmount: 1
+      prob: 0.03
+    - id: MobMouse 
+      orGroup: fauna 
+    - id: MobParrot
+      orGroup: fauna
+      maxAmount: 1
+    - id: MobPenguin
+      orGroup: fauna
+      maxAmount: 2
+    - id: MobPig
+      orGroup: fauna
+      maxAmount: 1
+    - id: MobPurpleSnake
+      orGroup: fauna
+    - id: MobSpiderSpace
+      orGroup: fauna
+    - id: MobTick
+      orGroup: fauna
+    - id: MobXenoRavager
+      orGroup: fauna
+
 - type: artifactEffect
   id: EffectCashSpawn
   targetDepth: 2
   - type: SpawnArtifact
     maxSpawns: 1
     spawns:
-    - id: Singularity
+    - id: Singularity
\ No newline at end of file
diff --git a/Resources/Textures/Objects/Decoration/Flora/flora_trees.rsi/icon.png b/Resources/Textures/Objects/Decoration/Flora/flora_trees.rsi/icon.png
new file mode 100644 (file)
index 0000000..41499b6
Binary files /dev/null and b/Resources/Textures/Objects/Decoration/Flora/flora_trees.rsi/icon.png differ
index af84abf130c6d29a18c254d0aa17e037bb5598a0..9242d06bd71177bfe55b617b59ead49b95aa4a95 100644 (file)
@@ -7,6 +7,9 @@
         "y": 96
     },
     "states": [
+        {
+           "name": "icon"
+        },
         {
             "name": "tree01"
         },