]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Flower wreaths (#23662)
authorUbaser <134914314+UbaserB@users.noreply.github.com>
Sun, 7 Jan 2024 07:03:46 +0000 (18:03 +1100)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 07:03:46 +0000 (00:03 -0700)
* add

* fix

Resources/Prototypes/Entities/Clothing/Neck/misc.yml
Resources/Prototypes/Recipes/Crafting/Graphs/improvised/flowerwreath.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Crafting/improvised.yml
Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/equipped-NECK.png [new file with mode: 0644]
Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/meta.json [new file with mode: 0644]

index f5dc5e110bc3bab8758b1c8511717eb43bfe3999..6516bd4729cf65690ecfd3c9d405327d776f4c55 100644 (file)
     event: !type:StethoscopeActionEvent
     checkCanInteract: false
     priority: -1
+
+- type: entity
+  parent: ClothingNeckBase
+  id: ClothingNeckFlowerWreath
+  name: flower wreath
+  description: A wreath of colourful flowers.
+  components:
+  - type: Sprite
+    sprite: Clothing/Neck/Misc/flower-wreath.rsi
+  - type: Clothing
+    sprite: Clothing/Neck/Misc/flower-wreath.rsi
+  - type: Construction
+    graph: flowerwreath
+    node: flowerwreath
diff --git a/Resources/Prototypes/Recipes/Crafting/Graphs/improvised/flowerwreath.yml b/Resources/Prototypes/Recipes/Crafting/Graphs/improvised/flowerwreath.yml
new file mode 100644 (file)
index 0000000..a0a87a1
--- /dev/null
@@ -0,0 +1,26 @@
+- type: constructionGraph
+  id: flowerwreath
+  start: start
+  graph:
+    - node: start
+      edges:
+        - to: flowerwreath
+          steps:
+            - tag: Flower
+              name: flower
+              icon:
+                sprite: Objects/Specific/Hydroponics/poppy.rsi
+                state: produce
+            - tag: Flower
+              name: flower
+              icon:
+                sprite: Objects/Specific/Hydroponics/poppy.rsi
+                state: produce
+            - tag: Ambrosia
+              name: ambrosia
+              icon:
+                sprite: Objects/Specific/Hydroponics/ambrosia_vulgaris.rsi
+                state: produce
+              doAfter: 10
+    - node: flowerwreath
+      entity: ClothingNeckFlowerWreath
index 9fb10b741d1ec6cd325392899239b3c42e764dd4..ba4eab57c944275d0ca9f86f7c93210aabf1a8df 100644 (file)
@@ -1,4 +1,4 @@
-- type: construction
+- type: construction
   name: baseball bat
   id: bat
   graph: WoodenBat
     state: icon
   objectType: Item
 
+- type: construction
+  name: flower wreath
+  id: flowerwreath
+  graph: flowerwreath
+  startNode: start
+  targetNode: flowerwreath
+  category: construction-category-clothing
+  description: "A wreath of colourful flowers."
+  icon:
+    sprite: Clothing/Neck/Misc/flower-wreath.rsi
+    state: icon
+  objectType: Item
+
 - type: construction
   name: damp rag
   id: rag
diff --git a/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/equipped-NECK.png b/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/equipped-NECK.png
new file mode 100644 (file)
index 0000000..1975679
Binary files /dev/null and b/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/equipped-NECK.png differ
diff --git a/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/icon.png b/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/icon.png
new file mode 100644 (file)
index 0000000..4797bd0
Binary files /dev/null and b/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/icon.png differ
diff --git a/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/meta.json b/Resources/Textures/Clothing/Neck/Misc/flower-wreath.rsi/meta.json
new file mode 100644 (file)
index 0000000..71f798f
--- /dev/null
@@ -0,0 +1,19 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "Drawn by Ubaser.",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+
+  "states": [
+    {
+      "name": "equipped-NECK",
+      "directions": 4
+    },
+    {
+      "name": "icon"
+    }
+  ]
+}