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

craftable freezers #32277

Merged
merged 3 commits into from
Sep 24, 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
15 changes: 15 additions & 0 deletions Resources/Prototypes/Entities/Objects/Devices/Electronics/misc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
- type: entity
parent: BaseElectronics
id: FreezerElectronics
name: freezer electronics
description: An electronics board used in kitchen freezers.
components:
- type: Sprite
sprite: Objects/Misc/module.rsi
state: door_electronics
- type: Tag
tags:
- FreezerElectronics
- type: DoorElectronics
- type: StaticPrice
price: 55
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@
- ClothingHeadHatWelding
- WetFloorSign
- ClothingHeadHatCone
- FreezerElectronics
- Flare
- type: EmagLatheRecipes
emagStaticRecipes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,11 @@
- type: ExplosionResistance
damageCoefficient: 0.50
- type: AntiRottingContainer
- type: Construction
graph: ClosetFreezer
node: done
containers:
- entity_storage

- type: entity
id: LockerFreezer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
- type: AntiRottingContainer
- type: ExplosionResistance
damageCoefficient: 0.50
- type: Construction
graph: CrateFreezer
node: done
containers:
- entity_storage

- type: entity
parent: CratePlastic
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
- type: constructionGraph
id: CrateFreezer
start: start
graph:
- node: start
edges:
- to: done
steps:
- material: Steel
amount: 5
- material: Cable
amount: 2
doAfter: 5
- tag: FreezerElectronics
name: freezer electronics
icon:
sprite: Objects/Misc/module.rsi
state: door_electronics
- node: done
entity: CrateFreezer
edges:
- to: start
steps:
- tool: Screwing
doAfter: 5
conditions:
- !type:StorageWelded
welded: false
- !type:Locked
locked: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 5
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 2
- !type:SpawnPrototype
prototype: FreezerElectronics
amount: 1
- !type:EmptyAllContainers
- !type:DeleteEntity
43 changes: 43 additions & 0 deletions Resources/Prototypes/Recipes/Crafting/Graphs/storage/tallbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,49 @@
- !type:EmptyAllContainers
- !type:DeleteEntity

- type: constructionGraph
id: ClosetFreezer
start: start
graph:
- node: start
edges:
- to: done
steps:
- material: Steel
amount: 4
- material: Cable
amount: 2
doAfter: 5
- tag: FreezerElectronics
name: freezer electronics
icon:
sprite: Objects/Misc/module.rsi
state: door_electronics
- node: done
entity: LockerFreezerBase
edges:
- to: start
steps:
- tool: Screwing
doAfter: 5
conditions:
- !type:StorageWelded
welded: false
- !type:Locked
locked: false
completed:
- !type:SpawnPrototype
prototype: SheetSteel1
amount: 4
- !type:SpawnPrototype
prototype: CableApcStack1
amount: 2
- !type:SpawnPrototype
prototype: FreezerElectronics
amount: 1
- !type:EmptyAllContainers
- !type:DeleteEntity

- type: constructionGraph
id: ClosetWall
start: start
Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/Recipes/Crafting/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@
icon: { sprite: Structures/Storage/Crates/secure.rsi, state: icon }
objectType: Structure

- type: construction
name: freezer
id: CrateFreezer
graph: CrateFreezer
startNode: start
targetNode: done
category: construction-category-storage
description: A metal freezing crate for storing things.
icon: { sprite: Structures/Storage/Crates/freezer.rsi, state: icon }
objectType: Structure

- type: construction
name: plastic crate
id: CratePlastic
Expand Down
13 changes: 12 additions & 1 deletion Resources/Prototypes/Recipes/Crafting/tallbox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@
icon: { sprite: Structures/Storage/closet.rsi, state: secure_icon }
objectType: Structure

- type: construction
id: ClosetFreezer
name: freezer
graph: ClosetFreezer
startNode: start
targetNode: done
category: construction-category-storage
description: A tall steel box with freezing abilities.
icon: { sprite: Structures/Storage/closet.rsi, state: freezer_icon }
objectType: Structure

- type: construction
id: ClosetWall
name: wall closet
Expand All @@ -34,4 +45,4 @@
canRotate: true
canBuildInImpassable: true
conditions:
- !type:WallmountCondition
- !type:WallmountCondition
5 changes: 5 additions & 0 deletions Resources/Prototypes/Recipes/Lathes/electronics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
id: DoorElectronics
result: DoorElectronics

- type: latheRecipe
parent: BaseCheapElectronicsRecipe
id: FreezerElectronics
result: FreezerElectronics

- type: latheRecipe
parent: BaseElectronicsRecipe
id: AirAlarmElectronics
Expand Down
3 changes: 3 additions & 0 deletions Resources/Prototypes/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,9 @@
- type: Tag
id: ForceNoFixRotations # fixrotations command WON'T target this

- type: Tag
id: FreezerElectronics

- type: Tag
id: Fruit

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Resources/Textures/Structures/Storage/closet.rsi/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@
{
"name": "freezer"
},
{
"name": "freezer_icon"
},
{
"name": "freezer_door"
},
Expand Down
Loading