Ждём текстуры грядок

This commit is contained in:
Hero010h
2024-12-28 01:24:24 +03:00
parent fb93ea4ecc
commit 7f20dd1b5a
6 changed files with 34 additions and 13 deletions

View File

@@ -4,11 +4,14 @@
id: GrowingPot id: GrowingPot
description: Позволяет выращивать различные культуры. description: Позволяет выращивать различные культуры.
components: components:
- type: Sprite
sprite: Structures/Hydroponics/growingpot.rsi
state: pot_filled
- type: Transform - type: Transform
anchored: true anchored: true
- type: Construction - type: Construction
graph: growingPot graph: growingPot
node: GrowingPot node: growingPot
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger: - trigger:
@@ -38,6 +41,11 @@
mode: SnapgridCenter mode: SnapgridCenter
description: Позволяет выращивать различные культуры, однако не хватает земли... description: Позволяет выращивать различные культуры, однако не хватает земли...
components: components:
- type: InteractionOutline
- type: Sprite
sprite: Structures/Hydroponics/growingpot.rsi
state: pot_empty
noRot: true
- type: Tag - type: Tag
tags: tags:
- Structure - Structure
@@ -55,13 +63,9 @@
- type: Clickable - type: Clickable
- type: Transform - type: Transform
noRot: true noRot: true
- type: Sprite
sprite: Structures/Hydroponics/misc.rsi
state: soil
noRot: true
- type: Construction - type: Construction
graph: growingPot graph: growingPot
node: GrowingPotNoSoil node: growingPotNoSoil
- type: Anchorable - type: Anchorable
- type: Damageable - type: Damageable
DamageContainer: StructuralInorganic DamageContainer: StructuralInorganic

View File

@@ -6,7 +6,7 @@
actions: actions:
- !type:DestroyEntity {} - !type:DestroyEntity {}
edges: edges:
- to: GrowingPotNoSoil - to: growingPotNoSoil
completed: completed:
- !type:SnapToGrid - !type:SnapToGrid
southRotation: true southRotation: true
@@ -18,10 +18,10 @@
amount: 4 amount: 4
doAfter: 1 doAfter: 1
- node: GrowingPotNoSoil - node: growingPotNoSoil
entity: GrowingPotNoSoil entity: GrowingPotNoSoil
edges: edges:
- to: GrowingPot - to: growingPot
completed: completed:
- !type:SnapToGrid - !type:SnapToGrid
southRotation: true southRotation: true
@@ -43,10 +43,10 @@
- tool: Screwing - tool: Screwing
doAfter: 1 doAfter: 1
- node: GrowingPot - node: growingPot
entity: GrowingPotEmpty entity: GrowingPotEmpty
edges: edges:
- to: GrowingPotNoSoil - to: growingPotNoSoil
completed: completed:
- !type:SpawnPrototype - !type:SpawnPrototype
prototype: packedSoil prototype: packedSoil

View File

@@ -7,8 +7,8 @@
targetNode: growingPot targetNode: growingPot
category: construction-category-furniture category: construction-category-furniture
icon: icon:
sprite: Structures/Furniture/furniture.rsi sprite: Structures\Hydroponics\growingpot.rsi
state: bed state: pot_filled
objectType: Structure objectType: Structure
placementMode: SnapgridCenter placementMode: SnapgridCenter
canBuildInImpassable: false canBuildInImpassable: false

View File

@@ -0,0 +1,17 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "dosharus",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "pot_filled"
},
{
"name": "pot_empty"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 687 B