From: Adrian16199 <144424013+Adrian16199@users.noreply.github.com> Date: Thu, 8 Feb 2024 23:17:00 +0000 (+0100) Subject: Straw hat. (#24997) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=007adfc8a6660daf923891b873399d6061642ce7;p=space-station-14.git Straw hat. (#24997) * Straw hat. A craftable, flammable straw hat. Thats it. * seems to made it go in flames! --- diff --git a/Resources/Prototypes/Entities/Clothing/Head/hats.yml b/Resources/Prototypes/Entities/Clothing/Head/hats.yml index dd8af5eb58..fb839149ea 100644 --- a/Resources/Prototypes/Entities/Clothing/Head/hats.yml +++ b/Resources/Prototypes/Entities/Clothing/Head/hats.yml @@ -963,4 +963,49 @@ - 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" ] + diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml index b137cadae0..cabeba7dfe 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Food/produce.yml @@ -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 index 0000000000..7203a4fdfb --- /dev/null +++ b/Resources/Prototypes/Recipes/Crafting/Graphs/strawhat.yml @@ -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 diff --git a/Resources/Prototypes/Recipes/Crafting/improvised.yml b/Resources/Prototypes/Recipes/Crafting/improvised.yml index ba4eab57c9..12fbe97e28 100644 --- a/Resources/Prototypes/Recipes/Crafting/improvised.yml +++ b/Resources/Prototypes/Recipes/Crafting/improvised.yml @@ -201,3 +201,16 @@ 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 diff --git a/Resources/Prototypes/tags.yml b/Resources/Prototypes/tags.yml index f9b207ba6e..4d85f488a1 100644 --- a/Resources/Prototypes/tags.yml +++ b/Resources/Prototypes/tags.yml @@ -1169,6 +1169,9 @@ - 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 index 0000000000..10a56e316b 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 index 0000000000..2ddd8f3209 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 index 0000000000..bf9e3673d6 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 index 0000000000..5cd89c082b 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 index 0000000000..8ad5764d3c 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 index 0000000000..a3cde84524 --- /dev/null +++ b/Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/meta.json @@ -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 + } + ] +}