[Entity] Sustenance Vendor (#15119)
* sustenance vendor * emaggedinventory
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
- type: vendingMachineInventory
|
||||||
|
id: SustenanceInventory
|
||||||
|
startingInventory:
|
||||||
|
DrinkMREFlask: 3
|
||||||
|
FoodSnackNutribrick: 5
|
||||||
|
FoodSnackMREBrownie: 5
|
||||||
|
FoodCondimentPacketKetchup: 5
|
||||||
|
emaggedInventory:
|
||||||
|
KitchenKnife: 2
|
||||||
|
SpaceMedipen: 3
|
||||||
|
ClothingMaskBreath: 3
|
||||||
|
EmergencyOxygenTankFilled: 3
|
||||||
@@ -849,6 +849,36 @@
|
|||||||
radius: 1.5
|
radius: 1.5
|
||||||
energy: 1.6
|
energy: 1.6
|
||||||
color: "#c73434"
|
color: "#c73434"
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
parent: VendingMachineSnack
|
||||||
|
id: VendingMachineSustenance
|
||||||
|
name: Sustenance Vendor
|
||||||
|
description: A vending machine which vends food, as required by section 47-C of the NT's Prisoner Ethical Treatment Agreement.
|
||||||
|
components:
|
||||||
|
- type: VendingMachine
|
||||||
|
pack: SustenanceInventory
|
||||||
|
dispenseOnHitChance: 0.25
|
||||||
|
dispenseOnHitThreshold: 2
|
||||||
|
offState: off
|
||||||
|
brokenState: broken
|
||||||
|
normalState: normal-unshaded
|
||||||
|
ejectState: eject-unshaded
|
||||||
|
denyState: deny-unshaded
|
||||||
|
- type: Sprite
|
||||||
|
sprite: Structures/Machines/VendingMachines/sustenance.rsi
|
||||||
|
layers:
|
||||||
|
- state: "off"
|
||||||
|
map: ["enum.VendingMachineVisualLayers.Base"]
|
||||||
|
- state: "off"
|
||||||
|
map: ["enum.VendingMachineVisualLayers.BaseUnshaded"]
|
||||||
|
shader: unshaded
|
||||||
|
- state: panel
|
||||||
|
map: ["enum.WiresVisualLayers.MaintenancePanel"]
|
||||||
|
- type: PointLight
|
||||||
|
radius: 1.5
|
||||||
|
energy: 1.6
|
||||||
|
color: "#737785"
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: VendingMachineSnack
|
parent: VendingMachineSnack
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 470 B |
Binary file not shown.
|
After Width: | Height: | Size: 416 B |
Binary file not shown.
|
After Width: | Height: | Size: 482 B |
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/1516a728931b4985c1e86f0c5995a5aa1554a1ad and modified by Swept",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "normal-unshaded",
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
2.5,
|
||||||
|
0.05,
|
||||||
|
3.4
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "broken"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "deny-unshaded",
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "off"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "panel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "eject-unshaded",
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.8,
|
||||||
|
0.1,
|
||||||
|
0.1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 478 B |
Binary file not shown.
|
After Width: | Height: | Size: 348 B |
Binary file not shown.
|
After Width: | Height: | Size: 244 B |
Reference in New Issue
Block a user