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

Shredders #499

Merged
merged 14 commits into from
Oct 29, 2023
16 changes: 16 additions & 0 deletions Resources/Prototypes/_NF/Entities/Objects/Devices/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- type: entity
id: ShredderMachineCircuitboard
parent: BaseMachineCircuitboard
name: shredder machine board
description: A machine printed circuit board for a shredder.
components:
- type: Sprite
state: engineering
- type: MachineBoard
prototype: Shredder
requirements:
MatterBin: 1
materialRequirements:
Glass: 1
- type: StaticPrice
price: 100
33 changes: 33 additions & 0 deletions Resources/Prototypes/_NF/Entities/Structures/Machines/shredder.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
- type: entity
id: Shredder
parent: BaseLathe
name: shredder
description: It shreds things. What more is there to say?
components:
- type: Sprite
sprite: _NF\Structures\Machines\Shredder.rsi
Cheackraze marked this conversation as resolved.
Show resolved Hide resolved
snapCardinals: true
layers:
- state: icon
map: ["enum.LatheVisualLayers.IsRunning"]
- state: normal
shader: unshaded
map: ["enum.PowerDeviceVisualLayers.Powered"]
- state: shredding-empty
map: ["enum.MaterialStorageVisualLayers.Inserting"]
- type: Machine
board: ShredderMachineCircuitboard
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: MaterialStorage
dropOnDeconstruct: false
whitelist:
tags:
- Currency #<--- Cant seem to insert spesos in here despite the tag
- type: Lathe
idleState: icon
runningState: shredding-money
canEjectStoredMaterials: false
staticRecipes:
- ShreddedMoney
7 changes: 7 additions & 0 deletions Resources/Prototypes/_NF/Recipes/Lathes/electronics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- type: latheRecipe
id: ShreddedMoney
icon: { sprite: Objects/Misc/module.rsi, state: id_mod }
result: ShredderMachineCircuitboard
completetime: 3
materials:
Currency: 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions Resources/Textures/_NF/Structures/Machines/shredder.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-NC-SA-3.0",
"copyright": "Created by [Data-Redacted] https://github.com/IData-RedactedI/frontier-station-14 ",
"states": [

{
"name": "icon"
},

{
"name": "normal"
},
{
"name": "shredding-empty",
"delays": [
[
0.1,
0.1,
0.1
]
]

},
{
"name": "shredding-money",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
},
{
"name": "shredding-paper",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
}
]
}

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.
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-NC-SA-3.0",
"copyright": "Created by [Data-Redacted] https://github.com/IData-RedactedI/frontier-station-14 ",
"states": [
[
{
"name": "off"
},
{
"name": "shredding-empty",
"delays": [
[
0.1,
0.1,
0.1
]
]

},
{
"name": "shredding-money",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
}
Cheackraze marked this conversation as resolved.
Show resolved Hide resolved
{
"name": "shredding-paper",
"delays": [
[
0.1,
0.1,
0.1,
0.1,
0.1,
0.1
]
]
}
]
]
}

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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading