Skip to content

Commit

Permalink
Merge pull request #95 from dvir001/Heavy-Hydro-Tray
Browse files Browse the repository at this point in the history
Anchored hydro tray
  • Loading branch information
Cheackraze committed Aug 9, 2023
2 parents 413f797 + 007d370 commit 882e167
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 0 deletions.
81 changes: 81 additions & 0 deletions Resources/Prototypes/_NF/Entities/Structures/hydro_tray.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
- type: entity
name: hydroponics tray
parent: [ hydroponicsSoil ]
id: hydroponicsTrayAnchored
suffix: anchored
description: An anchored interstellar-grade space farmplot allowing for rapid growth and selective breeding of crops. Just... keep in mind the space weeds.
components:
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.1"
density: 190
hard: true
mask:
- MachineMask
- type: Sprite
layers:
- sprite: _NF/Structures/Hydroponics/containers.rsi
state: hydrotrayanchored
- sprite: Structures/Hydroponics/overlays.rsi
state: lowhealth3
map: [ "health_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: lowwater3
map: [ "water_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: lownutri3
map: [ "nutri_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: alert3
map: [ "undefined_alert" ]
visible: false
- sprite: Structures/Hydroponics/overlays.rsi
state: harvest3
map: [ "harvest_alert" ]
visible: false
- type: Appearance
- type: GenericVisualizer
visuals:
enum.PlantHolderVisuals.HealthLight:
health_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.WaterLight:
water_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.NutritionLight:
nutri_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.AlertLight:
undefined_alert:
True: { visible: true }
False: { visible: false }
enum.PlantHolderVisuals.HarvestLight:
harvest_alert:
True: { visible: true }
False: { visible: false }
- type: PlantHolder
drawWarnings: true
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:ChangeConstructionNodeBehavior
node: machineFrame
- !type:DoActsBehavior
acts: ["Destruction"]
- type: AmbientSound
volume: -9
range: 5
sound:
path: /Audio/Ambience/Objects/flowing_water_open.ogg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "gentlejester-148196053781315584",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "hydrotrayanchored"
}
]
}

0 comments on commit 882e167

Please sign in to comment.