Add microwave visualizer. Clean up microwave code.

This commit is contained in:
FL-OZ
2020-05-01 03:37:21 -05:00
parent 5d4c0609ec
commit b2aca9a686
11 changed files with 238 additions and 12 deletions

Binary file not shown.

View File

@@ -9,6 +9,9 @@
- type: Solution
maxVol: 100
caps: 1
- type: Appearance
visuals:
- type: MicrowaveVisualizer
- type: Collidable
shapes:
@@ -19,7 +22,12 @@
- type: Sprite
netsync: false
sprite: Objects/Kitchen/microwave.rsi
state: mw0
layers:
- state: mw0
map: ["enum.MicrowaveVisualizerLayers.Base"]
- state: mw_unlit
shader: unshaded
map: ["enum.MicrowaveVisualizerLayers.BaseUnlit"]
- type: PowerDevice
- type: Icon
sprite: Objects/Kitchen/microwave.rsi

View File

@@ -5,3 +5,11 @@
ingredients:
chem.H2O: 15
chem.Nutriment: 5
- type: microwaveMealRecipe
id: RecipeFlashlight
name: Flashlight Recipe
result: FoodCheeseWedge
ingredients:
chem.H2O: 15
chem.Glucose: 5

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -1 +1,105 @@
{"version": 1, "size": {"x": 32, "y": 32}, "license": "AGPL v3", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris", "states": [{"name": "mw", "directions": 1, "delays": [[1.0]]}, {"name": "mw0", "directions": 1, "delays": [[1.0]]}, {"name": "mw1", "directions": 1, "delays": [[0.1, 0.1]]}, {"name": "mwb", "directions": 1, "delays": [[1.0]]}, {"name": "mwbloody", "directions": 1, "delays": [[1.0]]}, {"name": "mwbloody0", "directions": 1, "delays": [[1.0]]}, {"name": "mwbloody1", "directions": 1, "delays": [[0.1, 0.1]]}, {"name": "mwbloodyo", "directions": 1, "delays": [[0.1, 0.1]]}, {"name": "mwo", "directions": 1, "delays": [[0.1, 0.1]]}]}
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "AGPL v3",
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris",
"states": [
{
"name": "mw",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "mw_unlit",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "mw0",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "mw_running_unlit",
"directions": 1,
"delays": [
[
1.0,
1.0
]
]
},
{
"name": "mwb",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "mwbloody",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "mwbloody0",
"directions": 1,
"delays": [
[
1.0
]
]
},
{
"name": "mwbloody1",
"directions": 1,
"delays": [
[
0.1,
0.1
]
]
},
{
"name": "mwbloodyo",
"directions": 1,
"delays": [
[
0.1,
0.1
]
]
},
{
"name": "mwo",
"directions": 1,
"delays": [
[
0.1,
0.1
]
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB