Грядка. Неготова. Надо чинить...
This commit is contained in:
@@ -296,3 +296,13 @@
|
|||||||
cost: 2000
|
cost: 2000
|
||||||
category: Security
|
category: Security
|
||||||
group: market
|
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
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
- type: entity
|
||||||
|
parent: CrateHydroponics
|
||||||
|
id: CratePackedSoil
|
||||||
|
name: ящик с почвой
|
||||||
|
components:
|
||||||
|
- type: StorageFill
|
||||||
|
contents:
|
||||||
|
- id: packedSoil
|
||||||
|
amount: 3
|
||||||
@@ -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
|
||||||
@@ -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" ]
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
@@ -948,6 +948,9 @@
|
|||||||
- type: Tag
|
- type: Tag
|
||||||
id: Ore
|
id: Ore
|
||||||
|
|
||||||
|
- type: Tag
|
||||||
|
id: PackedSoil # WD edit
|
||||||
|
|
||||||
- type: Tag
|
- type: Tag
|
||||||
id: Packet
|
id: Packet
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user