]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Adding fungal soil (#36245)
authorMinty642 <42335609+Minty642@users.noreply.github.com>
Wed, 21 May 2025 04:59:51 +0000 (11:59 +0700)
committerGitHub <noreply@github.com>
Wed, 21 May 2025 04:59:51 +0000 (21:59 -0700)
Co-authored-by: aliser <20380250+murolem@users.noreply.github.com>
Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml
Resources/Prototypes/Entities/Objects/Misc/spaceshroom.yml
Resources/Prototypes/Entities/Structures/soil.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/soil.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Construction/structures.yml
Resources/Prototypes/tags.yml
Resources/Textures/Structures/Hydroponics/misc.rsi/fungal_soil.png [new file with mode: 0644]
Resources/Textures/Structures/Hydroponics/misc.rsi/meta.json

index 75a27c9754ab69306a332261683a34ee67422e7a..90a8e98af124c70f5e1a6472bcb6c0f03dd85a5c 100644 (file)
   - type: Extractable
     grindableSolutionName: food
   - type: DamageOnInteract
-    damage: 
+    damage:
       types:
         Heat: 4
         Caustic: 4
             volume: -5
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
-  - type: DamageOnHit 
+  - type: DamageOnHit
     damage:
       types:
         Blunt: 5 # The nettle will "wilt" after 5 hits.
   - type: Tag
     tags:
     - Vegetable
+    - Mushroom
 
 # Slices
 
     entries:
       Taco: Lingzhi
       Burger: Lingzhi
+  - type: Tag
+    tags:
+    - Mushroom
 
 - type: entity
   name: ambrosia vulgaris
     entries:
       Taco: FlyAmanita
       Burger: FlyAmanita
+  - type: Tag
+    tags:
+    - Mushroom
 
 - type: entity
   name: gatfruit
index 29e5e54d041b9931de4f727bd140972cdb1a87f8..e73d13e2cbec0f49f6d2d0119a54fb985ad4040a 100644 (file)
@@ -93,6 +93,9 @@
     thickness: 0.02
     area: 0.02
     conductivity: 0.43
+  - type: Tag
+    tags:
+    - Mushroom
 
 - type: weightedRandomFillSolution
   id: RandomFillSpaceshroom
index c5c8f2e61fe4307a5ab0601b2b686d8707c86ea1..53a8944856f9c30e6f92973ec9af1bb3478d2895 100644 (file)
         solution: soil
   - type: Appearance
   - type: PlantHolderVisuals
+
+- type: entity
+  name: fungal soil
+  parent: hydroponicsSoil
+  id: FungalSoil
+  components:
+  - type: Construction
+    graph: Soil
+    node: fungalSoil
+  - type: Sprite
+    sprite: Structures/Hydroponics/misc.rsi
+    state: fungal_soil
+    noRot: true
+  - type: PlantHolder
+    waterLevel: 0
+    nutritionLevel: 0
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/structures/soil.yml b/Resources/Prototypes/Recipes/Construction/Graphs/structures/soil.yml
new file mode 100644 (file)
index 0000000..923469a
--- /dev/null
@@ -0,0 +1,23 @@
+- type: constructionGraph
+  id: Soil
+  start: start
+  graph:
+  - node: start
+    actions:
+    - !type:DeleteEntity {}
+    edges:
+    - to: fungalSoil
+      completed:
+      - !type:SnapToGrid
+        southRotation: true
+      steps:
+      - material: WoodPlank
+        amount: 10
+        doAfter: 10
+      - tag: Mushroom
+        name: any Mushroom
+        icon:
+          sprite: Objects/Misc/spaceshroom.rsi
+          state: object
+  - node: fungalSoil
+    entity: FungalSoil
index 2ea7641bd84b3b9d13f719b9fa39c332a6bfe424..7f3e0b6212ff1372fac7b15f06a162e8aabc30e8 100644 (file)
   canBuildInImpassable: false
   conditions:
     - !type:TileNotBlocked
+
+- type: construction
+  name: fungal soil
+  id: FungalSoil
+  graph: Soil
+  startNode: start
+  targetNode: fungalSoil
+  category: construction-category-structures
+  description: A mix of organic matter and fungal root creating a soil to grow your plant in space. Seems to be dry.
+  icon:
+    sprite: Structures/Hydroponics/misc.rsi
+    state: fungal_soil
+  objectType: Structure
+  placementMode: SnapgridCenter
+  canBuildInImpassable: false
+  conditions:
+    - !type:TileNotBlocked
index 04e3be9827b2b27ad7b808d38b8123bac992b4fc..50220afe6bf4a22108de1b7747aeca82e1aa0b87 100644 (file)
 - type: Tag
   id: Multitool
 
+- type: Tag
+  id: Mushroom
+
 - type: Tag
   id: NoBlockAnchoring
 
diff --git a/Resources/Textures/Structures/Hydroponics/misc.rsi/fungal_soil.png b/Resources/Textures/Structures/Hydroponics/misc.rsi/fungal_soil.png
new file mode 100644 (file)
index 0000000..cf6bfc0
Binary files /dev/null and b/Resources/Textures/Structures/Hydroponics/misc.rsi/fungal_soil.png differ
index 35b9d13cfa8b8c9dc3dbd571f66ddfd793daf63e..f4f0e3fb49b0d94dd7d22514e777721f529fa874 100644 (file)
@@ -7,6 +7,9 @@
     "y": 32
   },
   "states": [
+    {
+      "name": "fungal_soil"
+    },
     {
       "name": "moldcreep0"
     },