12 lines
521 B
GDScript3
12 lines
521 B
GDScript3
|
extends Node
|
||
|
|
||
|
enum MATERIAL_TYPE {iORE, iSTOCK, iROD, iLADDER, iLADDER2, iLADDER4, iMOLTEN}
|
||
|
enum MACHINE_TYPE {SMELTER, FORGE, LATHE, WELDER}
|
||
|
|
||
|
var RECIPES = {
|
||
|
MACHINE_TYPE.SMELTER: {input=MATERIAL_TYPE.iORE, output=MATERIAL_TYPE.iMOLTEN, time=4.0},
|
||
|
MACHINE_TYPE.FORGE: {input=MATERIAL_TYPE.iMOLTEN, output=MATERIAL_TYPE.iSTOCK, time=4.0},
|
||
|
MACHINE_TYPE.LATHE: {input=MATERIAL_TYPE.iSTOCK, output=MATERIAL_TYPE.iROD, time=4.0},
|
||
|
MACHINE_TYPE.WELDER: {input=MATERIAL_TYPE.iROD, output=MATERIAL_TYPE.iLADDER, time=8.0},
|
||
|
}
|