Skip to content

Commit

Permalink
Plant box (#921)
Browse files Browse the repository at this point in the history
* Plant Box

* Update plant_box.yml

* Update ore_box.yml

* Update plant_box.yml
  • Loading branch information
dvir001 committed Feb 19, 2024
1 parent 7ec6dbf commit fead3cb
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Resources/Prototypes/Entities/Structures/Storage/ore_box.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
- type: entity
- type: entity
id: OreBox
name: ore box
# description: A large storage container for holding unprocessed ores.
description: A large storage container for collecting and holding unprocessed ores and fragments. # Frontier
description: A large storage container for collecting and holding unprocessed ores and fragments. # Frontier - was: A large storage container for holding unprocessed ores.
parent: BaseStructureDynamic
components:
- type: StaticPrice
# price: 500
price: 1000 # Frontier
price: 625 # Frontier - 500<625
- type: Anchorable
- type: InteractionOutline
- type: Damageable
Expand All @@ -17,15 +15,13 @@
thresholds:
- trigger:
!type:DamageTrigger
# damage: 150
damage: 450 # Frontier
damage: 450 # Frontier - 150<450
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
# damage: 100
damage: 300 # Frontier
damage: 300 # Frontier 100<300
behaviors:
- !type:EmptyAllContainersBehaviour
- !type:SpawnEntitiesBehavior
Expand Down Expand Up @@ -71,9 +67,9 @@
containers:
storagebase: !type:Container
ents: [ ]
- type: Dumpable # Frontier
- type: Dumpable # Frontier
- type: MagnetPickup # Frontier
range: 1.5 # Ore bag has a range of 1.0
range: 1.5 # Ore bag has a range of 1.0
- type: Fixtures
fixtures:
fix1:
Expand Down
84 changes: 84 additions & 0 deletions Resources/Prototypes/_NF/Entities/Structures/Storage/plant_box.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
- type: entity
id: PlantBox
name: plant box
description: A large storage container for holding plants and seeds.
parent: BaseStructureDynamic
components:
- type: StaticPrice
price: 625
- type: Anchorable
- type: InteractionOutline
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Wood
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 450
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:EmptyAllContainersBehaviour
- !type:SpawnEntitiesBehavior
spawn:
MaterialWoodPlank1:
min: 3
max: 5
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Climbable

# plantbox-specific
- type: Sprite
noRot: true
sprite: _NF/Structures/Storage/plantbox.rsi
layers:
- state: plantbox
- state: plantbox-top
map: [ top ]
visible: true
- type: Appearance
- type: GenericVisualizer
visuals:
enum.StorageVisuals.Open:
top:
True: { visible: false }
False: { visible: true }
- type: Storage
grid:
- 0,0,9,5
maxItemSize: Normal
storageOpenSound: /Audio/Effects/closetopen.ogg
storageCloseSound: /Audio/Effects/closetclose.ogg
whitelist:
components:
- Produce
- Seed
- type: UserInterface
interfaces:
- key: enum.StorageUiKey.Key
type: StorageBoundUserInterface
- type: ContainerContainer
containers:
storagebase: !type:Container
ents: [ ]
- type: Dumpable
- type: MagnetPickup
range: 1.5 # plant bag has a range of 1.0
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.3
# very not dense to make it easy to pull
density: 20
mask:
- SmallMobMask
layer:
- MachineLayer
17 changes: 17 additions & 0 deletions Resources/Textures/_NF/Structures/Storage/plantbox.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": 1,
"license": "CC-BY-SA-4.0",
"copyright": "Made for Frontier by gentlebutter",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "plantbox"
},
{
"name": "plantbox-top"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fead3cb

Please sign in to comment.