-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodmain.lua
More file actions
35 lines (29 loc) · 1.2 KB
/
modmain.lua
File metadata and controls
35 lines (29 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
local _G = GLOBAL
local STRINGS = _G.STRINGS
local Ingredient = _G.Ingredient
local RECIPETABS = _G.RECIPETABS
local TECH = _G.TECH
local Craft = GetModConfigData("Craft")
_G.MYLIGHT_CRAFT = Craft
local Language = GetModConfigData("Language")
PrefabFiles = {
"mylight",
}
if Language == 'Cn' then
STRINGS.NAMES.MYLIGHT = "电灯"
STRINGS.RECIPE_DESC.MYLIGHT = "点亮夜空."
STRINGS.CHARACTERS.GENERIC.DESCRIBE.MYLIGHT = {"它会在白天吸收太阳能 !"}
else
STRINGS.NAMES.MYLIGHT = "Light"
STRINGS.RECIPE_DESC.MYLIGHT = "For life."
STRINGS.CHARACTERS.GENERIC.DESCRIBE.MYLIGHT = {"This is a Light."}
end
local makings = nil
if Craft == 'Easy' then
makings = { Ingredient("fireflies", 1), Ingredient("transistor", 2), Ingredient("boards", 1) }
elseif Craft == 'Normal' then
makings = { Ingredient("lightbulb", 1), Ingredient("transistor", 2), Ingredient("lightninggoathorn", 1) }
else
makings = { Ingredient("dragon_scales", 1), Ingredient("transistor", 2), Ingredient("lightninggoathorn", 1) }
end
AddRecipe2( "mylight", makings, TECH.NONE, { image = "mylight.tex", atlas = "images/inventoryimages/mylight.xml", placer="mylight_placer"}, {"PROTOTYPERS","LIGHT","DECOR"})