forked from widelands/widelands
/
init.lua
63 lines (53 loc) · 1.35 KB
/
init.lua
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
dirname = "tribes/buildings/productionsites/empire/brewery/"
push_textdomain("scenario_emp04.wmf")
tribes:new_productionsite_type {
msgctxt = "empire_building",
name = "empire_brewery1",
descname = pgettext("empire_building", "Brewery"),
helptext_script = dirname .. "helptexts.lua",
icon = dirname .. "menu.png",
size = "medium",
enhancement = "empire_brewery2",
buildcost = {
log = 1,
planks = 2,
granite = 2
},
return_on_dismantle = {
planks = 1,
granite = 1
},
animations = {
idle = {
pictures = path.list_files(dirname .. "idle_??.png"),
hotspot = { 39, 62 },
},
working = {
pictures = path.list_files(dirname .. "idle_??.png"), -- TODO(GunChleoc): No animation yet.
hotspot = { 39, 62 },
},
},
aihints = {
},
working_positions = {
empire_brewer = 1
},
inputs = {
{ name = "water", amount = 3 },
{ name = "wheat", amount = 7 }
},
programs = {
work = {
descname = "brewing beer",
actions = {
"sleep=30000",
"return=skipped unless economy needs beer",
"consume=water:3 wheat",
"playsound=sound/empire/beerbubble 180",
"animate=working duration:30s",
"produce=beer"
}
},
},
}
pop_textdomain()