forked from widelands/widelands
/
init.lua
60 lines (52 loc) · 1.32 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
dirname = "tribes/buildings/productionsites/empire/well/"
push_textdomain("scenario_emp04.wmf")
tribes:new_productionsite_type {
msgctxt = "empire_building",
name = "empire_well1",
descname = pgettext("empire_building", "Well"),
helptext_script = dirname .. "helptexts.lua",
icon = dirname .. "menu.png",
size = "small",
buildcost = {
log = 2,
granite = 1,
marble = 1
},
return_on_dismantle = {
log = 1,
marble = 1,
},
animations = {
idle = {
pictures = path.list_files(dirname .. "idle_??.png"),
hotspot = { 43, 43 },
},
working = {
pictures = path.list_files(dirname .. "idle_??.png"), -- TODO(GunChleoc): No animation yet.
hotspot = { 43, 43 },
},
},
aihints = {
},
working_positions = {
empire_carrier = 1
},
programs = {
work = {
descname = "working",
actions = {
"sleep=30000",
"animate=working duration:30s",
"mine=water 5 100 5 2",
"produce=water"
}
},
},
out_of_resource_notification = {
title = "No Water",
heading = "Out of Water",
message = "The carrier working at this well can’t find any water in his well.",
productivity_threshold = 15
},
}
pop_textdomain()