Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchored hydro tray #95

Merged
merged 12 commits into from
Aug 9, 2023
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 ]
Cheackraze marked this conversation as resolved.
Show resolved Hide resolved
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"
}
]
}
Loading