Грядка. Неготова. Надо чинить...

This commit is contained in:
Hero010h
2024-12-20 22:50:59 +03:00
parent 2368d53966
commit 9e2c8e9e28
7 changed files with 192 additions and 0 deletions

View File

@@ -296,3 +296,13 @@
cost: 2000
category: Security
group: market
- type: cargoProduct
id: cargoPackedSoil
icon:
sprite: White/Objects/Weapons/Guns/Shotguns/rubber_pump.rsi
state: icon
product: CratePackedSoil
cost: 2000
category: cargoproduct-category-name-hydroponics
group: market

View File

@@ -0,0 +1,9 @@
- type: entity
parent: CrateHydroponics
id: CratePackedSoil
name: ящик с почвой
components:
- type: StorageFill
contents:
- id: packedSoil
amount: 3

View File

@@ -0,0 +1,14 @@
- type: entity
name: упаковка почвы
description: Можно засыпать в каркас грядки.
id: packedSoil
parent: BaseItem
components:
- type: Item
size: Small
- type: Sprite
sprite: Clothing/OuterClothing/Misc/apronbar.rsi
state: icon
- type: Tag
tags:
- PackedSoil

View File

@@ -0,0 +1,84 @@
- type: entity
name: самодельная грядка
parent: [GrowingPotNoSoil, hydroponicsSoil]
id: GrowingPot
description: Позволяет выращивать различные культуры.
components:
- type: Transform
anchored: true
- type: Construction
graph: growingPot
node: GrowingPot
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank1:
min: 5
max: 10
- type: entity
id: GrowingPotEmpty
parent: GrowingPot
suffix: Empty
components:
- type: PlantHolder
waterLevel: 0
nutritionLevel: 0
- type: entity
name: каркас самодельной грядки
id: GrowingPotNoSoil
parent: BaseStructure
placement:
mode: SnapgridCenter
description: Позволяет выращивать различные культуры, однако не хватает земли...
components:
- type: Tag
tags:
- Structure
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.1"
density: 60
hard: true
mask:
- MachineMask
- type: Appearance
- type: Clickable
- type: Transform
noRot: true
- type: Sprite
sprite: Structures/Hydroponics/misc.rsi
state: soil
noRot: true
- type: Construction
graph: growingPot
node: GrowingPotNoSoil
- type: Anchorable
- type: Damageable
DamageContainer: StructuralInorganic
DamageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
collection: WoodDestroy
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank1:
min: 5
max: 10
- !type:DoActsBehavior
acts: [ "Destruction" ]

View File

@@ -0,0 +1,56 @@
- type: constructionGraph
id: growingPot
start: start
graph:
- node: start
actions:
- !type:DestroyEntity {}
edges:
- to: GrowingPotNoSoil
completed:
- !type:SnapToGrid
southRotation: true
steps:
- material: WoodPlank
amount: 15
doAfter: 1
- material: MetalRod
amount: 4
doAfter: 1
- node: GrowingPotNoSoil
entity: GrowingPotNoSoil
edges:
- to: GrowingPot
completed:
- !type:SnapToGrid
southRotation: true
steps:
- tag: PackedSoil
name: упаковка почвы
icon:
sprite: Structures/Piping/Atmospherics/pipe.rsi
state: pipeStraight
- to: start
completed:
- !type:SpawnPrototype
prototype: MaterialWoodPlank1
amount: 15
- !type:SpawnPrototype
prototype: PartRodMetal1
amount: 4
steps:
- tool: Screwing
doAfter: 1
- node: GrowingPot
entity: GrowingPotEmpty
edges:
- to: GrowingPotNoSoil
completed:
- !type:SpawnPrototype
prototype: packedSoil
amount: 1
steps:
- tool: Prying
doAfter: 1

View File

@@ -0,0 +1,16 @@
- type: construction
id: GrowingPot
name: самодельная грядка
description: Деревнянная грядка для выращивания.
graph: growingPot
startNode: start
targetNode: GrowingPot
category: construction-category-furniture
icon:
sprite: Structures/Furniture/furniture.rsi
state: bed
objectType: Structure
placementMode: SnapgridCenter
canBuildInImpassable: false
conditions:
- !type:TileNotBlocked

View File

@@ -948,6 +948,9 @@
- type: Tag
id: Ore
- type: Tag
id: PackedSoil # WD edit
- type: Tag
id: Packet