]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Straw hat. (#24997)
authorAdrian16199 <144424013+Adrian16199@users.noreply.github.com>
Thu, 8 Feb 2024 23:17:00 +0000 (00:17 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Feb 2024 23:17:00 +0000 (18:17 -0500)
* Straw hat.

A craftable, flammable straw hat.

Thats it.

* seems to made it go in flames!

Resources/Prototypes/Entities/Clothing/Head/hats.yml
Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml
Resources/Prototypes/Recipes/Crafting/Graphs/strawhat.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Crafting/improvised.yml
Resources/Prototypes/tags.yml
Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET-hamster.png [new file with mode: 0644]
Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET.png [new file with mode: 0644]
Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/meta.json [new file with mode: 0644]

index dd8af5eb583905b81bf46195d2ecb8a35c43e895..fb839149ea212f28442fb511c86951a7f60c800d 100644 (file)
     - type: Sprite
       sprite: Clothing/Head/Hats/cowboyhatbountyhunter.rsi
     - type: Clothing
-      sprite: Clothing/Head/Hats/cowboyhatbountyhunter.rsi
\ No newline at end of file
+      sprite: Clothing/Head/Hats/cowboyhatbountyhunter.rsi
+
+- type: entity
+  parent: ClothingHeadBase
+  id: ClothingHeadHatStrawHat
+  name: straw hat
+  description: A fancy hat for hot days! Not recommended to wear near fires.
+  components:
+  - type: Sprite
+    sprite: Clothing/Head/Hats/straw_hat.rsi
+  - type: Clothing
+    sprite: Clothing/Head/Hats/straw_hat.rsi
+  - type: Construction
+    graph: StrawHat
+    node: strawhat
+  - type: Tag
+    tags:
+    - HamsterWearable
+  - type: Flammable
+    fireSpread: true
+    canResistFire: false
+    alwaysCombustible: true
+    canExtinguish: true
+    damage:
+      types:
+        Heat: 1
+  - type: Damageable
+    damageModifierSet: Wood
+  - type: Appearance
+  - type: FireVisuals
+    sprite: Effects/fire.rsi
+    normalState: fire
+  - type: Destructible
+    thresholds:
+    - trigger:
+        !type:DamageTrigger
+        damage: 15
+      behaviors:
+      - !type:SpawnEntitiesBehavior
+        spawn:
+            Ash:
+              min: 1
+              max: 1
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+
index b137cadae0d5eb26795a1b4faf74a7db6ebac04a..cabeba7dfe290a24ed051d1edcf18615e55e3132 100644 (file)
@@ -52,6 +52,9 @@
           Quantity: 10
   - type: Produce
     seedId: wheat
+  - type: Tag
+    tags:
+    - Wheat 
 
 - type: entity
   name: oat bushel
diff --git a/Resources/Prototypes/Recipes/Crafting/Graphs/strawhat.yml b/Resources/Prototypes/Recipes/Crafting/Graphs/strawhat.yml
new file mode 100644 (file)
index 0000000..7203a4f
--- /dev/null
@@ -0,0 +1,31 @@
+- type: constructionGraph
+  id: StrawHat
+  start: start
+  graph:
+    - node: start
+      edges:
+        - to: strawhat
+          steps:
+            - tag: Wheat
+              name: Wheat Bushel
+              icon:
+                sprite: Objects/Specific/Hydroponics/wheat.rsi
+                state: produce
+            - tag: Wheat
+              name: Wheat Bushel
+              icon:
+                sprite: Objects/Specific/Hydroponics/wheat.rsi
+                state: produce
+            - tag: Wheat
+              name: Wheat Bushel
+              icon:
+                sprite: Objects/Specific/Hydroponics/wheat.rsi
+                state: produce
+            - tag: Wheat
+              name: Wheat Bushel
+              icon:
+                sprite: Objects/Specific/Hydroponics/wheat.rsi
+                state: produce
+              doAfter: 10
+    - node: strawhat
+      entity: ClothingHeadHatStrawHat
index ba4eab57c944275d0ca9f86f7c93210aabf1a8df..12fbe97e28fc18fa476269a7a881317348de7aa5 100644 (file)
     sprite: Objects/Materials/materials.rsi
     state: cloth_3
   objectType: Item
+
+- type: construction
+  name: straw hat
+  id: strawHat
+  graph: StrawHat
+  startNode: start
+  targetNode: strawhat
+  category: construction-category-clothing
+  description: A fancy hat for hot days! Not recommended to wear near fires.
+  icon:
+    sprite: Clothing/Head/Hats/straw_hat.rsi
+    state: icon
+  objectType: Item
index f9b207ba6ec0337005fcea8595511a63c9cfd903..4d85f488a141dc95ea4a46dbb0d95d2fdf5e0d30 100644 (file)
 - type: Tag
   id: WetFloorSign
 
+- type: Tag
+  id: Wheat
+
 - type: Tag
   id: WhitelistChameleon
 
diff --git a/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET-hamster.png b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET-hamster.png
new file mode 100644 (file)
index 0000000..10a56e3
Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET-hamster.png differ
diff --git a/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET.png b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET.png
new file mode 100644 (file)
index 0000000..2ddd8f3
Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/equipped-HELMET.png differ
diff --git a/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/icon.png b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/icon.png
new file mode 100644 (file)
index 0000000..bf9e367
Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/icon.png differ
diff --git a/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-left.png b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..5cd89c0
Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-right.png b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..8ad5764
Binary files /dev/null and b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/meta.json b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/meta.json
new file mode 100644 (file)
index 0000000..a3cde84
--- /dev/null
@@ -0,0 +1,30 @@
+{
+    "version": 1,
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Made by Adrian16199",
+    "size": {
+      "x": 32,
+      "y": 32
+    },
+    "states": [
+    {
+    "name": "icon"
+    },
+    {
+    "name": "equipped-HELMET",
+    "directions": 4
+    },
+    {
+    "name": "equipped-HELMET-hamster",
+    "directions": 4
+    },
+    {
+    "name": "inhand-left",
+    "directions": 4
+    },
+    {
+    "name": "inhand-right",
+    "directions": 4
+    }
+  ]
+}