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

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

View File

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

View File

@@ -7,8 +7,8 @@
targetNode: growingPot
category: construction-category-furniture
icon:
sprite: Structures/Furniture/furniture.rsi
state: bed
sprite: Structures\Hydroponics\growingpot.rsi
state: pot_filled
objectType: Structure
placementMode: SnapgridCenter
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