Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Straw hat. #24997

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 46 additions & 1 deletion Resources/Prototypes/Entities/Clothing/Head/hats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -963,4 +963,49 @@
- type: Sprite
sprite: Clothing/Head/Hats/cowboyhatbountyhunter.rsi
- type: Clothing
sprite: Clothing/Head/Hats/cowboyhatbountyhunter.rsi
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" ]

Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
Quantity: 10
- type: Produce
seedId: wheat
- type: Tag
tags:
- Wheat

- type: entity
name: oat bushel
Expand Down
31 changes: 31 additions & 0 deletions Resources/Prototypes/Recipes/Crafting/Graphs/strawhat.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions Resources/Prototypes/Recipes/Crafting/improvised.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions Resources/Prototypes/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,9 @@
- type: Tag
id: WetFloorSign

- type: Tag
id: Wheat

- type: Tag
id: WhitelistChameleon

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions Resources/Textures/Clothing/Head/Hats/straw_hat.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
Loading