-
Notifications
You must be signed in to change notification settings - Fork 473
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Plant Box * Update plant_box.yml * Update ore_box.yml * Update plant_box.yml
- Loading branch information
Showing
5 changed files
with
108 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
Resources/Prototypes/_NF/Entities/Structures/Storage/plant_box.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
17
Resources/Textures/_NF/Structures/Storage/plantbox.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
Binary file added
BIN
+523 Bytes
Resources/Textures/_NF/Structures/Storage/plantbox.rsi/plantbox-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+790 Bytes
Resources/Textures/_NF/Structures/Storage/plantbox.rsi/plantbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.