Merge lp:~widelands-dev/widelands/workarea-fixes into lp:widelands
- workarea-fixes
- Merge into trunk
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 9158 | ||||||||||||
Proposed branch: | lp:~widelands-dev/widelands/workarea-fixes | ||||||||||||
Merge into: | lp:widelands | ||||||||||||
Diff against target: |
1423 lines (+477/-8) 79 files modified
data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua (+12/-0) data/tribes/buildings/productionsites/atlanteans/blackroot_farm/init.lua (+6/-0) data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/farm/init.lua (+6/-0) data/tribes/buildings/productionsites/atlanteans/fishbreeders_house/init.lua (+5/-0) data/tribes/buildings/productionsites/atlanteans/fishers_house/init.lua (+5/-0) data/tribes/buildings/productionsites/atlanteans/foresters_house/init.lua (+7/-0) data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/hunters_house/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/quarry/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/shipyard/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/well/init.lua (+4/-0) data/tribes/buildings/productionsites/atlanteans/woodcutters_house/init.lua (+5/-0) data/tribes/buildings/productionsites/barbarians/coalmine/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/farm/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/fishers_hut/init.lua (+4/-0) data/tribes/buildings/productionsites/barbarians/gamekeepers_hut/init.lua (+5/-0) data/tribes/buildings/productionsites/barbarians/goldmine/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/granitemine/init.lua (+4/-0) data/tribes/buildings/productionsites/barbarians/hunters_hut/init.lua (+5/-0) data/tribes/buildings/productionsites/barbarians/ironmine/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/lumberjacks_hut/init.lua (+5/-0) data/tribes/buildings/productionsites/barbarians/quarry/init.lua (+4/-0) data/tribes/buildings/productionsites/barbarians/rangers_hut/init.lua (+7/-0) data/tribes/buildings/productionsites/barbarians/reed_yard/init.lua (+6/-0) data/tribes/buildings/productionsites/barbarians/shipyard/init.lua (+4/-0) data/tribes/buildings/productionsites/barbarians/well/init.lua (+4/-0) data/tribes/buildings/productionsites/empire/coalmine/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/farm/init.lua (+6/-0) data/tribes/buildings/productionsites/empire/fishers_house/init.lua (+4/-0) data/tribes/buildings/productionsites/empire/foresters_house/init.lua (+7/-0) data/tribes/buildings/productionsites/empire/goldmine/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/hunters_house/init.lua (+4/-0) data/tribes/buildings/productionsites/empire/ironmine/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/lumberjacks_house/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/marblemine/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/empire/quarry/init.lua (+4/-0) data/tribes/buildings/productionsites/empire/shipyard/init.lua (+4/-0) data/tribes/buildings/productionsites/empire/vineyard/init.lua (+6/-0) data/tribes/buildings/productionsites/empire/well/init.lua (+4/-0) data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua (+7/-0) data/tribes/buildings/productionsites/frisians/berry_farm/init.lua (+10/-0) data/tribes/buildings/productionsites/frisians/clay_pit/init.lua (+9/-0) data/tribes/buildings/productionsites/frisians/coalmine/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/collectors_house/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/farm/init.lua (+9/-0) data/tribes/buildings/productionsites/frisians/fishers_house/init.lua (+4/-0) data/tribes/buildings/productionsites/frisians/foresters_house/init.lua (+9/-0) data/tribes/buildings/productionsites/frisians/goldmine/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/hunters_house/init.lua (+4/-0) data/tribes/buildings/productionsites/frisians/ironmine/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/quarry/init.lua (+4/-0) data/tribes/buildings/productionsites/frisians/reed_farm/init.lua (+9/-0) data/tribes/buildings/productionsites/frisians/rockmine/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua (+5/-0) data/tribes/buildings/productionsites/frisians/shipyard/init.lua (+4/-0) data/tribes/buildings/productionsites/frisians/well/init.lua (+4/-0) data/tribes/buildings/productionsites/frisians/woodcutters_house/init.lua (+5/-0) data/txts/developers.json (+2/-2) src/logic/map_objects/tribes/productionsite.cc (+20/-0) src/logic/map_objects/tribes/productionsite.h (+15/-0) src/logic/map_objects/tribes/tribes.cc (+16/-0) src/wui/fieldaction.cc (+26/-6) |
||||||||||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/workarea-fixes | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+368342@code.launchpad.net |
Commit message
- Highlight the buildings the overlapping workareas belong to
- Fix behaviour of the W hotkey
- Show productionsite overlaps only for certain building types
of interest
Description of the change
GunChleoc (gunchleoc) wrote : | # |
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 5150. State: failed. Details: https:/
Appveyor build 4932. State: success. Details: https:/
GunChleoc (gunchleoc) wrote : | # |
As pointed out by hessenfarmer in https:/
kaputtnik (franku) wrote : | # |
While i am not convinced by this feature at all, i agree with Gun. The lua files are already full of tables and options, which make it hard to understand for beginners (modders).
On the other side: Is it worth the work for a feature
- which is hard to explain
- which was wanted by a single player
- were other players know how to handle the 'problem' without this feature
GunChleoc (gunchleoc) wrote : | # |
Hm on second thought - the beekeeper -> fields rule might be actually covered by rule 4, so that would be an argument in favor of the rule-based approach, because we already found a bug in this branch ;)
Benedikt Straub (nordfriese) wrote : | # |
> Hm on second thought - the beekeeper -> fields rule might be actually covered by rule 4
The farm plants only barley_field_tiny, but the flowering attrib belongs to barley_
Since it´s only a few entries per building, that would be much more effort than doing it in Lua…
hessenfarmer (stephan-lutz) wrote : | # |
Definitions look good from my side so far.
one additional question / demand?
Would it be possible to distinguish between wanted overlaps (e.g. forester and lumberjack shown in greenish colour) and unwanted overlaps (e.g. farm and forester shown in red shadows)
Benedikt Straub (nordfriese) wrote : | # |
Good idea, will implement that :)
> On the other side: Is it worth the work for a feature
> - which is hard to explain
I can just add an explanation in a tutorial. Would the economy tut or bar01 be the better place for it?
> - which was wanted by a single player
I would not have implemented it so soon if I didn´t want it as well… ;)
> - were other players know how to handle the 'problem' without this feature
…by clicking a dozen times and still overlooking something. I like this feature better than that ;)
hessenfarmer (stephan-lutz) wrote : | # |
It was definitely wanted by more then one player.
I like it too. Especially if it shows good or bad coverage.
I think the basic tutorial should bhe the place to explain this as early as possible, cause it will be already there.
GunChleoc (gunchleoc) wrote : | # |
OK, Lua entries it is.
And I am in favor of this feature too - it will come in handy, especially for less-experienced players.
I think we could have an explanation in the basic control tutorial, after the quarries have been placed and before messages get introduced. Don't do this in trunk or in this branch though, because I have a merge request open that introduces big changes to the tutorial code, and the merge conflicts would be eek.
kaputtnik (franku) wrote : | # |
ok, ok :-)
Sorry for the noise. Will be quiet now.
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 5157. State: errored. Details: https:/
Appveyor build 4939. State: failed. Details: https:/
GunChleoc (gunchleoc) wrote : | # |
Don't worry, kaputtnik, we can't always agree on everything and your opinion is just as valid as everybody else's
GunChleoc (gunchleoc) wrote : | # |
2 comments for code readability
GunChleoc (gunchleoc) wrote : | # |
Sorry for the comment spam.... tested and working nicely. I am also happy with the colors and borders :)
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 5211. State: errored. Details: https:/
Appveyor build 4990. State: success. Details: https:/
GunChleoc (gunchleoc) wrote : | # |
Retested and still working :)
@bunnybot merge
bunnybot (widelandsofficial) wrote : | # |
Refusing to merge, since Travis is not green. Use @bunnybot merge force for merging anyways.
Travis build 5211. State: errored. Details: https:/
Benedikt Straub (nordfriese) wrote : | # |
inputqueues
@bunnybot merge force
Preview Diff
1 | === modified file 'data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua' | |||
2 | --- data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua 2018-09-12 03:04:08 +0000 | |||
3 | +++ data/tribes/buildings/productionsites/atlanteans/armorsmithy/init.lua 2019-06-21 11:33:28 +0000 | |||
4 | @@ -55,6 +55,18 @@ | |||
5 | 55 | -- done, including any animations and sounds played. | 55 | -- done, including any animations and sounds played. |
6 | 56 | -- See :doc:`productionsite_program`. | 56 | -- See :doc:`productionsite_program`. |
7 | 57 | -- | 57 | -- |
8 | 58 | -- **indicate_workarea_overlaps** | ||
9 | 59 | -- *Optional*. The names of other productionsites whose workareas should be highlighted | ||
10 | 60 | -- if theirs overlap with this building’s workarea while the player is placing a | ||
11 | 61 | -- building of this type. The overlaps can be shown either as desired (`true`), if the | ||
12 | 62 | -- proximity of these buildings is favourable, or as negative (`false`), if they influence | ||
13 | 63 | -- each other negatively. Example for a fishbreeder’s house:: | ||
14 | 64 | -- | ||
15 | 65 | -- indicate_workarea_overlaps = { | ||
16 | 66 | -- atlanteans_fishers_house = true, | ||
17 | 67 | -- atlanteans_fishbreeders_house = false | ||
18 | 68 | -- }, | ||
19 | 69 | -- | ||
20 | 58 | -- **out_of_resource_notification**. | 70 | -- **out_of_resource_notification**. |
21 | 59 | -- *Optional*. This table defines the message sent by the productionsite | 71 | -- *Optional*. This table defines the message sent by the productionsite |
22 | 60 | -- to the player if it has run out of a resource to collect. There are 4 | 72 | -- to the player if it has run out of a resource to collect. There are 4 |
23 | 61 | 73 | ||
24 | === modified file 'data/tribes/buildings/productionsites/atlanteans/blackroot_farm/init.lua' | |||
25 | --- data/tribes/buildings/productionsites/atlanteans/blackroot_farm/init.lua 2019-05-31 12:56:36 +0000 | |||
26 | +++ data/tribes/buildings/productionsites/atlanteans/blackroot_farm/init.lua 2019-06-21 11:33:28 +0000 | |||
27 | @@ -42,6 +42,12 @@ | |||
28 | 42 | "blackroot" | 42 | "blackroot" |
29 | 43 | }, | 43 | }, |
30 | 44 | 44 | ||
31 | 45 | indicate_workarea_overlaps = { | ||
32 | 46 | atlanteans_blackroot_farm = false, | ||
33 | 47 | atlanteans_farm = false, | ||
34 | 48 | atlanteans_foresters_house = false, | ||
35 | 49 | }, | ||
36 | 50 | |||
37 | 45 | programs = { | 51 | programs = { |
38 | 46 | work = { | 52 | work = { |
39 | 47 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 53 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
40 | 48 | 54 | ||
41 | === modified file 'data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua' | |||
42 | --- data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua 2019-05-29 18:29:28 +0000 | |||
43 | +++ data/tribes/buildings/productionsites/atlanteans/coalmine/init.lua 2019-06-21 11:33:28 +0000 | |||
44 | @@ -43,6 +43,10 @@ | |||
45 | 43 | atlanteans_miner = 3 | 43 | atlanteans_miner = 3 |
46 | 44 | }, | 44 | }, |
47 | 45 | 45 | ||
48 | 46 | indicate_workarea_overlaps = { | ||
49 | 47 | atlanteans_coalmine = false, | ||
50 | 48 | }, | ||
51 | 49 | |||
52 | 46 | inputs = { | 50 | inputs = { |
53 | 47 | { name = "smoked_fish", amount = 10 }, | 51 | { name = "smoked_fish", amount = 10 }, |
54 | 48 | { name = "smoked_meat", amount = 6 }, | 52 | { name = "smoked_meat", amount = 6 }, |
55 | 49 | 53 | ||
56 | === modified file 'data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua' | |||
57 | --- data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua 2019-05-29 18:29:28 +0000 | |||
58 | +++ data/tribes/buildings/productionsites/atlanteans/crystalmine/init.lua 2019-06-21 11:33:28 +0000 | |||
59 | @@ -55,6 +55,10 @@ | |||
60 | 55 | "granite" | 55 | "granite" |
61 | 56 | }, | 56 | }, |
62 | 57 | 57 | ||
63 | 58 | indicate_workarea_overlaps = { | ||
64 | 59 | atlanteans_crystalmine = false, | ||
65 | 60 | }, | ||
66 | 61 | |||
67 | 58 | programs = { | 62 | programs = { |
68 | 59 | work = { | 63 | work = { |
69 | 60 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 64 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
70 | 61 | 65 | ||
71 | === modified file 'data/tribes/buildings/productionsites/atlanteans/farm/init.lua' | |||
72 | --- data/tribes/buildings/productionsites/atlanteans/farm/init.lua 2019-05-31 12:56:36 +0000 | |||
73 | +++ data/tribes/buildings/productionsites/atlanteans/farm/init.lua 2019-06-21 11:33:28 +0000 | |||
74 | @@ -46,6 +46,12 @@ | |||
75 | 46 | "corn" | 46 | "corn" |
76 | 47 | }, | 47 | }, |
77 | 48 | 48 | ||
78 | 49 | indicate_workarea_overlaps = { | ||
79 | 50 | atlanteans_blackroot_farm = false, | ||
80 | 51 | atlanteans_farm = false, | ||
81 | 52 | atlanteans_foresters_house = false, | ||
82 | 53 | }, | ||
83 | 54 | |||
84 | 49 | programs = { | 55 | programs = { |
85 | 50 | work = { | 56 | work = { |
86 | 51 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 57 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
87 | 52 | 58 | ||
88 | === modified file 'data/tribes/buildings/productionsites/atlanteans/fishbreeders_house/init.lua' | |||
89 | --- data/tribes/buildings/productionsites/atlanteans/fishbreeders_house/init.lua 2019-06-06 10:00:05 +0000 | |||
90 | +++ data/tribes/buildings/productionsites/atlanteans/fishbreeders_house/init.lua 2019-06-21 11:33:28 +0000 | |||
91 | @@ -47,6 +47,11 @@ | |||
92 | 47 | }, | 47 | }, |
93 | 48 | }, | 48 | }, |
94 | 49 | 49 | ||
95 | 50 | indicate_workarea_overlaps = { | ||
96 | 51 | atlanteans_fishers_house = true, | ||
97 | 52 | atlanteans_fishbreeders_house = false, | ||
98 | 53 | }, | ||
99 | 54 | |||
100 | 50 | out_of_resource_notification = { | 55 | out_of_resource_notification = { |
101 | 51 | -- Translators: Short for "Out of ..." for a resource | 56 | -- Translators: Short for "Out of ..." for a resource |
102 | 52 | title = _"No Fish", | 57 | title = _"No Fish", |
103 | 53 | 58 | ||
104 | === modified file 'data/tribes/buildings/productionsites/atlanteans/fishers_house/init.lua' | |||
105 | --- data/tribes/buildings/productionsites/atlanteans/fishers_house/init.lua 2019-06-01 11:23:15 +0000 | |||
106 | +++ data/tribes/buildings/productionsites/atlanteans/fishers_house/init.lua 2019-06-21 11:33:28 +0000 | |||
107 | @@ -41,6 +41,11 @@ | |||
108 | 41 | "fish" | 41 | "fish" |
109 | 42 | }, | 42 | }, |
110 | 43 | 43 | ||
111 | 44 | indicate_workarea_overlaps = { | ||
112 | 45 | atlanteans_fishers_house = false, | ||
113 | 46 | atlanteans_fishbreeders_house = true, | ||
114 | 47 | }, | ||
115 | 48 | |||
116 | 44 | programs = { | 49 | programs = { |
117 | 45 | work = { | 50 | work = { |
118 | 46 | -- TRANSLATORS: Completed/Skipped/Did not start fishing because ... | 51 | -- TRANSLATORS: Completed/Skipped/Did not start fishing because ... |
119 | 47 | 52 | ||
120 | === modified file 'data/tribes/buildings/productionsites/atlanteans/foresters_house/init.lua' | |||
121 | --- data/tribes/buildings/productionsites/atlanteans/foresters_house/init.lua 2019-06-02 14:04:16 +0000 | |||
122 | +++ data/tribes/buildings/productionsites/atlanteans/foresters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
123 | @@ -37,6 +37,13 @@ | |||
124 | 37 | atlanteans_forester = 1 | 37 | atlanteans_forester = 1 |
125 | 38 | }, | 38 | }, |
126 | 39 | 39 | ||
127 | 40 | indicate_workarea_overlaps = { | ||
128 | 41 | atlanteans_blackroot_farm = false, | ||
129 | 42 | atlanteans_farm = false, | ||
130 | 43 | atlanteans_foresters_house = false, | ||
131 | 44 | atlanteans_woodcutters_house = true, | ||
132 | 45 | }, | ||
133 | 46 | |||
134 | 40 | programs = { | 47 | programs = { |
135 | 41 | work = { | 48 | work = { |
136 | 42 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... | 49 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... |
137 | 43 | 50 | ||
138 | === modified file 'data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua' | |||
139 | --- data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua 2019-05-29 18:29:28 +0000 | |||
140 | +++ data/tribes/buildings/productionsites/atlanteans/goldmine/init.lua 2019-06-21 11:33:28 +0000 | |||
141 | @@ -52,6 +52,10 @@ | |||
142 | 52 | "gold_ore" | 52 | "gold_ore" |
143 | 53 | }, | 53 | }, |
144 | 54 | 54 | ||
145 | 55 | indicate_workarea_overlaps = { | ||
146 | 56 | atlanteans_goldmine = false, | ||
147 | 57 | }, | ||
148 | 58 | |||
149 | 55 | programs = { | 59 | programs = { |
150 | 56 | work = { | 60 | work = { |
151 | 57 | -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ... | 61 | -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ... |
152 | 58 | 62 | ||
153 | === modified file 'data/tribes/buildings/productionsites/atlanteans/hunters_house/init.lua' | |||
154 | --- data/tribes/buildings/productionsites/atlanteans/hunters_house/init.lua 2019-05-29 18:29:28 +0000 | |||
155 | +++ data/tribes/buildings/productionsites/atlanteans/hunters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
156 | @@ -38,6 +38,10 @@ | |||
157 | 38 | "meat" | 38 | "meat" |
158 | 39 | }, | 39 | }, |
159 | 40 | 40 | ||
160 | 41 | indicate_workarea_overlaps = { | ||
161 | 42 | atlanteans_hunters_house = false, | ||
162 | 43 | }, | ||
163 | 44 | |||
164 | 41 | programs = { | 45 | programs = { |
165 | 42 | work = { | 46 | work = { |
166 | 43 | -- TRANSLATORS: Completed/Skipped/Did not start hunting because ... | 47 | -- TRANSLATORS: Completed/Skipped/Did not start hunting because ... |
167 | 44 | 48 | ||
168 | === modified file 'data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua' | |||
169 | --- data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua 2019-05-29 18:29:28 +0000 | |||
170 | +++ data/tribes/buildings/productionsites/atlanteans/ironmine/init.lua 2019-06-21 11:33:28 +0000 | |||
171 | @@ -19,6 +19,10 @@ | |||
172 | 19 | planks = 2 | 19 | planks = 2 |
173 | 20 | }, | 20 | }, |
174 | 21 | 21 | ||
175 | 22 | indicate_workarea_overlaps = { | ||
176 | 23 | atlanteans_ironmine = false, | ||
177 | 24 | }, | ||
178 | 25 | |||
179 | 22 | animations = { | 26 | animations = { |
180 | 23 | idle = { | 27 | idle = { |
181 | 24 | pictures = path.list_files(dirname .. "idle_??.png"), | 28 | pictures = path.list_files(dirname .. "idle_??.png"), |
182 | 25 | 29 | ||
183 | === modified file 'data/tribes/buildings/productionsites/atlanteans/quarry/init.lua' | |||
184 | --- data/tribes/buildings/productionsites/atlanteans/quarry/init.lua 2019-06-02 14:45:28 +0000 | |||
185 | +++ data/tribes/buildings/productionsites/atlanteans/quarry/init.lua 2019-06-21 11:33:28 +0000 | |||
186 | @@ -36,6 +36,10 @@ | |||
187 | 36 | "granite" | 36 | "granite" |
188 | 37 | }, | 37 | }, |
189 | 38 | 38 | ||
190 | 39 | indicate_workarea_overlaps = { | ||
191 | 40 | atlanteans_quarry = false, | ||
192 | 41 | }, | ||
193 | 42 | |||
194 | 39 | programs = { | 43 | programs = { |
195 | 40 | work = { | 44 | work = { |
196 | 41 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 45 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
197 | 42 | 46 | ||
198 | === modified file 'data/tribes/buildings/productionsites/atlanteans/shipyard/init.lua' | |||
199 | --- data/tribes/buildings/productionsites/atlanteans/shipyard/init.lua 2019-05-29 18:29:28 +0000 | |||
200 | +++ data/tribes/buildings/productionsites/atlanteans/shipyard/init.lua 2019-06-21 11:33:28 +0000 | |||
201 | @@ -58,6 +58,10 @@ | |||
202 | 58 | { name = "spidercloth", amount = 4 } | 58 | { name = "spidercloth", amount = 4 } |
203 | 59 | }, | 59 | }, |
204 | 60 | 60 | ||
205 | 61 | indicate_workarea_overlaps = { | ||
206 | 62 | atlanteans_shipyard = false, | ||
207 | 63 | }, | ||
208 | 64 | |||
209 | 61 | programs = { | 65 | programs = { |
210 | 62 | work = { | 66 | work = { |
211 | 63 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 67 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
212 | 64 | 68 | ||
213 | === modified file 'data/tribes/buildings/productionsites/atlanteans/well/init.lua' | |||
214 | --- data/tribes/buildings/productionsites/atlanteans/well/init.lua 2018-11-20 20:25:08 +0000 | |||
215 | +++ data/tribes/buildings/productionsites/atlanteans/well/init.lua 2019-06-21 11:33:28 +0000 | |||
216 | @@ -43,6 +43,10 @@ | |||
217 | 43 | "water" | 43 | "water" |
218 | 44 | }, | 44 | }, |
219 | 45 | 45 | ||
220 | 46 | indicate_workarea_overlaps = { | ||
221 | 47 | atlanteans_well = false, | ||
222 | 48 | }, | ||
223 | 49 | |||
224 | 46 | programs = { | 50 | programs = { |
225 | 47 | work = { | 51 | work = { |
226 | 48 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 52 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
227 | 49 | 53 | ||
228 | === modified file 'data/tribes/buildings/productionsites/atlanteans/woodcutters_house/init.lua' | |||
229 | --- data/tribes/buildings/productionsites/atlanteans/woodcutters_house/init.lua 2019-06-02 13:16:53 +0000 | |||
230 | +++ data/tribes/buildings/productionsites/atlanteans/woodcutters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
231 | @@ -37,6 +37,11 @@ | |||
232 | 37 | "log" | 37 | "log" |
233 | 38 | }, | 38 | }, |
234 | 39 | 39 | ||
235 | 40 | indicate_workarea_overlaps = { | ||
236 | 41 | atlanteans_foresters_house = true, | ||
237 | 42 | atlanteans_woodcutters_house = false, | ||
238 | 43 | }, | ||
239 | 44 | |||
240 | 40 | programs = { | 45 | programs = { |
241 | 41 | work = { | 46 | work = { |
242 | 42 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... | 47 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... |
243 | 43 | 48 | ||
244 | === modified file 'data/tribes/buildings/productionsites/barbarians/coalmine/init.lua' | |||
245 | --- data/tribes/buildings/productionsites/barbarians/coalmine/init.lua 2019-05-29 18:29:28 +0000 | |||
246 | +++ data/tribes/buildings/productionsites/barbarians/coalmine/init.lua 2019-06-21 11:33:28 +0000 | |||
247 | @@ -55,6 +55,12 @@ | |||
248 | 55 | "coal" | 55 | "coal" |
249 | 56 | }, | 56 | }, |
250 | 57 | 57 | ||
251 | 58 | indicate_workarea_overlaps = { | ||
252 | 59 | barbarians_coalmine = false, | ||
253 | 60 | barbarians_coalmine_deep = false, | ||
254 | 61 | barbarians_coalmine_deeper = false, | ||
255 | 62 | }, | ||
256 | 63 | |||
257 | 58 | programs = { | 64 | programs = { |
258 | 59 | work = { | 65 | work = { |
259 | 60 | -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ... | 66 | -- TRANSLATORS: Completed/Skipped/Did not start mining coal because ... |
260 | 61 | 67 | ||
261 | === modified file 'data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua' | |||
262 | --- data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
263 | +++ data/tribes/buildings/productionsites/barbarians/coalmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
264 | @@ -48,6 +48,12 @@ | |||
265 | 48 | barbarians_miner_chief = 1, | 48 | barbarians_miner_chief = 1, |
266 | 49 | }, | 49 | }, |
267 | 50 | 50 | ||
268 | 51 | indicate_workarea_overlaps = { | ||
269 | 52 | barbarians_coalmine = false, | ||
270 | 53 | barbarians_coalmine_deep = false, | ||
271 | 54 | barbarians_coalmine_deeper = false, | ||
272 | 55 | }, | ||
273 | 56 | |||
274 | 51 | inputs = { | 57 | inputs = { |
275 | 52 | { name = "snack", amount = 6 } | 58 | { name = "snack", amount = 6 } |
276 | 53 | }, | 59 | }, |
277 | 54 | 60 | ||
278 | === modified file 'data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua' | |||
279 | --- data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua 2019-05-29 18:29:28 +0000 | |||
280 | +++ data/tribes/buildings/productionsites/barbarians/coalmine_deeper/init.lua 2019-06-21 11:33:28 +0000 | |||
281 | @@ -47,6 +47,12 @@ | |||
282 | 47 | barbarians_miner_master = 1, | 47 | barbarians_miner_master = 1, |
283 | 48 | }, | 48 | }, |
284 | 49 | 49 | ||
285 | 50 | indicate_workarea_overlaps = { | ||
286 | 51 | barbarians_coalmine = false, | ||
287 | 52 | barbarians_coalmine_deep = false, | ||
288 | 53 | barbarians_coalmine_deeper = false, | ||
289 | 54 | }, | ||
290 | 55 | |||
291 | 50 | inputs = { | 56 | inputs = { |
292 | 51 | { name = "meal", amount = 6 } | 57 | { name = "meal", amount = 6 } |
293 | 52 | }, | 58 | }, |
294 | 53 | 59 | ||
295 | === modified file 'data/tribes/buildings/productionsites/barbarians/farm/init.lua' | |||
296 | --- data/tribes/buildings/productionsites/barbarians/farm/init.lua 2019-05-31 13:33:41 +0000 | |||
297 | +++ data/tribes/buildings/productionsites/barbarians/farm/init.lua 2019-06-21 11:33:28 +0000 | |||
298 | @@ -54,6 +54,12 @@ | |||
299 | 54 | "wheat" | 54 | "wheat" |
300 | 55 | }, | 55 | }, |
301 | 56 | 56 | ||
302 | 57 | indicate_workarea_overlaps = { | ||
303 | 58 | barbarians_rangers_hut = false, | ||
304 | 59 | barbarians_farm = false, | ||
305 | 60 | barbarians_reed_yard = false, | ||
306 | 61 | }, | ||
307 | 62 | |||
308 | 57 | programs = { | 63 | programs = { |
309 | 58 | work = { | 64 | work = { |
310 | 59 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 65 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
311 | 60 | 66 | ||
312 | === modified file 'data/tribes/buildings/productionsites/barbarians/fishers_hut/init.lua' | |||
313 | --- data/tribes/buildings/productionsites/barbarians/fishers_hut/init.lua 2019-06-01 11:23:15 +0000 | |||
314 | +++ data/tribes/buildings/productionsites/barbarians/fishers_hut/init.lua 2019-06-21 11:33:28 +0000 | |||
315 | @@ -47,6 +47,10 @@ | |||
316 | 47 | "fish" | 47 | "fish" |
317 | 48 | }, | 48 | }, |
318 | 49 | 49 | ||
319 | 50 | indicate_workarea_overlaps = { | ||
320 | 51 | barbarians_fishers_hut = false, | ||
321 | 52 | }, | ||
322 | 53 | |||
323 | 50 | programs = { | 54 | programs = { |
324 | 51 | work = { | 55 | work = { |
325 | 52 | -- TRANSLATORS: Completed/Skipped/Did not start fishing because ... | 56 | -- TRANSLATORS: Completed/Skipped/Did not start fishing because ... |
326 | 53 | 57 | ||
327 | === modified file 'data/tribes/buildings/productionsites/barbarians/gamekeepers_hut/init.lua' | |||
328 | --- data/tribes/buildings/productionsites/barbarians/gamekeepers_hut/init.lua 2019-05-29 18:29:28 +0000 | |||
329 | +++ data/tribes/buildings/productionsites/barbarians/gamekeepers_hut/init.lua 2019-06-21 11:33:28 +0000 | |||
330 | @@ -43,6 +43,11 @@ | |||
331 | 43 | barbarians_gamekeeper = 1 | 43 | barbarians_gamekeeper = 1 |
332 | 44 | }, | 44 | }, |
333 | 45 | 45 | ||
334 | 46 | indicate_workarea_overlaps = { | ||
335 | 47 | barbarians_hunters_hut = true, | ||
336 | 48 | barbarians_gamekeepers_hut = false, | ||
337 | 49 | }, | ||
338 | 50 | |||
339 | 46 | programs = { | 51 | programs = { |
340 | 47 | work = { | 52 | work = { |
341 | 48 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 53 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
342 | 49 | 54 | ||
343 | === modified file 'data/tribes/buildings/productionsites/barbarians/goldmine/init.lua' | |||
344 | --- data/tribes/buildings/productionsites/barbarians/goldmine/init.lua 2019-05-29 18:29:28 +0000 | |||
345 | +++ data/tribes/buildings/productionsites/barbarians/goldmine/init.lua 2019-06-21 11:33:28 +0000 | |||
346 | @@ -48,6 +48,12 @@ | |||
347 | 48 | barbarians_miner = 1 | 48 | barbarians_miner = 1 |
348 | 49 | }, | 49 | }, |
349 | 50 | 50 | ||
350 | 51 | indicate_workarea_overlaps = { | ||
351 | 52 | barbarians_goldmine = false, | ||
352 | 53 | barbarians_goldmine_deep = false, | ||
353 | 54 | barbarians_goldmine_deeper = false, | ||
354 | 55 | }, | ||
355 | 56 | |||
356 | 51 | inputs = { | 57 | inputs = { |
357 | 52 | { name = "ration", amount = 6 } | 58 | { name = "ration", amount = 6 } |
358 | 53 | }, | 59 | }, |
359 | 54 | 60 | ||
360 | === modified file 'data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua' | |||
361 | --- data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
362 | +++ data/tribes/buildings/productionsites/barbarians/goldmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
363 | @@ -55,6 +55,12 @@ | |||
364 | 55 | "gold_ore" | 55 | "gold_ore" |
365 | 56 | }, | 56 | }, |
366 | 57 | 57 | ||
367 | 58 | indicate_workarea_overlaps = { | ||
368 | 59 | barbarians_goldmine = false, | ||
369 | 60 | barbarians_goldmine_deep = false, | ||
370 | 61 | barbarians_goldmine_deeper = false, | ||
371 | 62 | }, | ||
372 | 63 | |||
373 | 58 | programs = { | 64 | programs = { |
374 | 59 | work = { | 65 | work = { |
375 | 60 | -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ... | 66 | -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ... |
376 | 61 | 67 | ||
377 | === modified file 'data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua' | |||
378 | --- data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua 2019-05-29 18:29:28 +0000 | |||
379 | +++ data/tribes/buildings/productionsites/barbarians/goldmine_deeper/init.lua 2019-06-21 11:33:28 +0000 | |||
380 | @@ -54,6 +54,12 @@ | |||
381 | 54 | "gold_ore" | 54 | "gold_ore" |
382 | 55 | }, | 55 | }, |
383 | 56 | 56 | ||
384 | 57 | indicate_workarea_overlaps = { | ||
385 | 58 | barbarians_goldmine = false, | ||
386 | 59 | barbarians_goldmine_deep = false, | ||
387 | 60 | barbarians_goldmine_deeper = false, | ||
388 | 61 | }, | ||
389 | 62 | |||
390 | 57 | programs = { | 63 | programs = { |
391 | 58 | work = { | 64 | work = { |
392 | 59 | -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ... | 65 | -- TRANSLATORS: Completed/Skipped/Did not start mining gold because ... |
393 | 60 | 66 | ||
394 | === modified file 'data/tribes/buildings/productionsites/barbarians/granitemine/init.lua' | |||
395 | --- data/tribes/buildings/productionsites/barbarians/granitemine/init.lua 2019-05-29 18:29:28 +0000 | |||
396 | +++ data/tribes/buildings/productionsites/barbarians/granitemine/init.lua 2019-06-21 11:33:28 +0000 | |||
397 | @@ -46,6 +46,10 @@ | |||
398 | 46 | barbarians_miner = 1 | 46 | barbarians_miner = 1 |
399 | 47 | }, | 47 | }, |
400 | 48 | 48 | ||
401 | 49 | indicate_workarea_overlaps = { | ||
402 | 50 | barbarians_granitemine = false, | ||
403 | 51 | }, | ||
404 | 52 | |||
405 | 49 | inputs = { | 53 | inputs = { |
406 | 50 | { name = "ration", amount = 8 } | 54 | { name = "ration", amount = 8 } |
407 | 51 | }, | 55 | }, |
408 | 52 | 56 | ||
409 | === modified file 'data/tribes/buildings/productionsites/barbarians/hunters_hut/init.lua' | |||
410 | --- data/tribes/buildings/productionsites/barbarians/hunters_hut/init.lua 2019-05-29 18:29:28 +0000 | |||
411 | +++ data/tribes/buildings/productionsites/barbarians/hunters_hut/init.lua 2019-06-21 11:33:28 +0000 | |||
412 | @@ -45,6 +45,11 @@ | |||
413 | 45 | barbarians_hunter = 1 | 45 | barbarians_hunter = 1 |
414 | 46 | }, | 46 | }, |
415 | 47 | 47 | ||
416 | 48 | indicate_workarea_overlaps = { | ||
417 | 49 | barbarians_hunters_hut = false, | ||
418 | 50 | barbarians_gamekeepers_hut = true, | ||
419 | 51 | }, | ||
420 | 52 | |||
421 | 48 | outputs = { | 53 | outputs = { |
422 | 49 | "meat" | 54 | "meat" |
423 | 50 | }, | 55 | }, |
424 | 51 | 56 | ||
425 | === modified file 'data/tribes/buildings/productionsites/barbarians/ironmine/init.lua' | |||
426 | --- data/tribes/buildings/productionsites/barbarians/ironmine/init.lua 2019-05-29 18:29:28 +0000 | |||
427 | +++ data/tribes/buildings/productionsites/barbarians/ironmine/init.lua 2019-06-21 11:33:28 +0000 | |||
428 | @@ -55,6 +55,12 @@ | |||
429 | 55 | "iron_ore" | 55 | "iron_ore" |
430 | 56 | }, | 56 | }, |
431 | 57 | 57 | ||
432 | 58 | indicate_workarea_overlaps = { | ||
433 | 59 | barbarians_ironmine = false, | ||
434 | 60 | barbarians_ironmine_deep = false, | ||
435 | 61 | barbarians_ironmine_deeper = false, | ||
436 | 62 | }, | ||
437 | 63 | |||
438 | 58 | programs = { | 64 | programs = { |
439 | 59 | work = { | 65 | work = { |
440 | 60 | -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ... | 66 | -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ... |
441 | 61 | 67 | ||
442 | === modified file 'data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua' | |||
443 | --- data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
444 | +++ data/tribes/buildings/productionsites/barbarians/ironmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
445 | @@ -55,6 +55,12 @@ | |||
446 | 55 | "iron_ore" | 55 | "iron_ore" |
447 | 56 | }, | 56 | }, |
448 | 57 | 57 | ||
449 | 58 | indicate_workarea_overlaps = { | ||
450 | 59 | barbarians_ironmine = false, | ||
451 | 60 | barbarians_ironmine_deep = false, | ||
452 | 61 | barbarians_ironmine_deeper = false, | ||
453 | 62 | }, | ||
454 | 63 | |||
455 | 58 | programs = { | 64 | programs = { |
456 | 59 | work = { | 65 | work = { |
457 | 60 | -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ... | 66 | -- TRANSLATORS: Completed/Skipped/Did not start mining iron because ... |
458 | 61 | 67 | ||
459 | === modified file 'data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua' | |||
460 | --- data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua 2019-05-29 18:29:28 +0000 | |||
461 | +++ data/tribes/buildings/productionsites/barbarians/ironmine_deeper/init.lua 2019-06-21 11:33:28 +0000 | |||
462 | @@ -41,6 +41,12 @@ | |||
463 | 41 | mines = "iron", | 41 | mines = "iron", |
464 | 42 | }, | 42 | }, |
465 | 43 | 43 | ||
466 | 44 | indicate_workarea_overlaps = { | ||
467 | 45 | barbarians_ironmine = false, | ||
468 | 46 | barbarians_ironmine_deep = false, | ||
469 | 47 | barbarians_ironmine_deeper = false, | ||
470 | 48 | }, | ||
471 | 49 | |||
472 | 44 | working_positions = { | 50 | working_positions = { |
473 | 45 | barbarians_miner = 1, | 51 | barbarians_miner = 1, |
474 | 46 | barbarians_miner_chief = 1, | 52 | barbarians_miner_chief = 1, |
475 | 47 | 53 | ||
476 | === modified file 'data/tribes/buildings/productionsites/barbarians/lumberjacks_hut/init.lua' | |||
477 | --- data/tribes/buildings/productionsites/barbarians/lumberjacks_hut/init.lua 2019-06-02 13:16:53 +0000 | |||
478 | +++ data/tribes/buildings/productionsites/barbarians/lumberjacks_hut/init.lua 2019-06-21 11:33:28 +0000 | |||
479 | @@ -44,6 +44,11 @@ | |||
480 | 44 | "log" | 44 | "log" |
481 | 45 | }, | 45 | }, |
482 | 46 | 46 | ||
483 | 47 | indicate_workarea_overlaps = { | ||
484 | 48 | barbarians_rangers_hut = true, | ||
485 | 49 | barbarians_lumberjacks_hut = false, | ||
486 | 50 | }, | ||
487 | 51 | |||
488 | 47 | programs = { | 52 | programs = { |
489 | 48 | work = { | 53 | work = { |
490 | 49 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... | 54 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... |
491 | 50 | 55 | ||
492 | === modified file 'data/tribes/buildings/productionsites/barbarians/quarry/init.lua' | |||
493 | --- data/tribes/buildings/productionsites/barbarians/quarry/init.lua 2019-06-02 14:45:28 +0000 | |||
494 | +++ data/tribes/buildings/productionsites/barbarians/quarry/init.lua 2019-06-21 11:33:28 +0000 | |||
495 | @@ -43,6 +43,10 @@ | |||
496 | 43 | "granite" | 43 | "granite" |
497 | 44 | }, | 44 | }, |
498 | 45 | 45 | ||
499 | 46 | indicate_workarea_overlaps = { | ||
500 | 47 | barbarians_quarry = false, | ||
501 | 48 | }, | ||
502 | 49 | |||
503 | 46 | programs = { | 50 | programs = { |
504 | 47 | work = { | 51 | work = { |
505 | 48 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 52 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
506 | 49 | 53 | ||
507 | === modified file 'data/tribes/buildings/productionsites/barbarians/rangers_hut/init.lua' | |||
508 | --- data/tribes/buildings/productionsites/barbarians/rangers_hut/init.lua 2019-06-02 14:04:16 +0000 | |||
509 | +++ data/tribes/buildings/productionsites/barbarians/rangers_hut/init.lua 2019-06-21 11:33:28 +0000 | |||
510 | @@ -43,6 +43,13 @@ | |||
511 | 43 | barbarians_ranger = 1 | 43 | barbarians_ranger = 1 |
512 | 44 | }, | 44 | }, |
513 | 45 | 45 | ||
514 | 46 | indicate_workarea_overlaps = { | ||
515 | 47 | barbarians_rangers_hut = false, | ||
516 | 48 | barbarians_lumberjacks_hut = true, | ||
517 | 49 | barbarians_farm = false, | ||
518 | 50 | barbarians_reed_yard = false, | ||
519 | 51 | }, | ||
520 | 52 | |||
521 | 46 | programs = { | 53 | programs = { |
522 | 47 | work = { | 54 | work = { |
523 | 48 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... | 55 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... |
524 | 49 | 56 | ||
525 | === modified file 'data/tribes/buildings/productionsites/barbarians/reed_yard/init.lua' | |||
526 | --- data/tribes/buildings/productionsites/barbarians/reed_yard/init.lua 2019-05-31 12:56:36 +0000 | |||
527 | +++ data/tribes/buildings/productionsites/barbarians/reed_yard/init.lua 2019-06-21 11:33:28 +0000 | |||
528 | @@ -38,6 +38,12 @@ | |||
529 | 38 | "reed" | 38 | "reed" |
530 | 39 | }, | 39 | }, |
531 | 40 | 40 | ||
532 | 41 | indicate_workarea_overlaps = { | ||
533 | 42 | barbarians_rangers_hut = false, | ||
534 | 43 | barbarians_reed_yard = false, | ||
535 | 44 | barbarians_farm = false, | ||
536 | 45 | }, | ||
537 | 46 | |||
538 | 41 | programs = { | 47 | programs = { |
539 | 42 | work = { | 48 | work = { |
540 | 43 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 49 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
541 | 44 | 50 | ||
542 | === modified file 'data/tribes/buildings/productionsites/barbarians/shipyard/init.lua' | |||
543 | --- data/tribes/buildings/productionsites/barbarians/shipyard/init.lua 2019-05-29 18:29:28 +0000 | |||
544 | +++ data/tribes/buildings/productionsites/barbarians/shipyard/init.lua 2019-06-21 11:33:28 +0000 | |||
545 | @@ -46,6 +46,10 @@ | |||
546 | 46 | { name = "cloth", amount = 4 } | 46 | { name = "cloth", amount = 4 } |
547 | 47 | }, | 47 | }, |
548 | 48 | 48 | ||
549 | 49 | indicate_workarea_overlaps = { | ||
550 | 50 | barbarians_shipyard = false, | ||
551 | 51 | }, | ||
552 | 52 | |||
553 | 49 | programs = { | 53 | programs = { |
554 | 50 | work = { | 54 | work = { |
555 | 51 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 55 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
556 | 52 | 56 | ||
557 | === modified file 'data/tribes/buildings/productionsites/barbarians/well/init.lua' | |||
558 | --- data/tribes/buildings/productionsites/barbarians/well/init.lua 2018-05-24 10:19:21 +0000 | |||
559 | +++ data/tribes/buildings/productionsites/barbarians/well/init.lua 2019-06-21 11:33:28 +0000 | |||
560 | @@ -44,6 +44,10 @@ | |||
561 | 44 | "water" | 44 | "water" |
562 | 45 | }, | 45 | }, |
563 | 46 | 46 | ||
564 | 47 | indicate_workarea_overlaps = { | ||
565 | 48 | barbarians_well = false, | ||
566 | 49 | }, | ||
567 | 50 | |||
568 | 47 | programs = { | 51 | programs = { |
569 | 48 | work = { | 52 | work = { |
570 | 49 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 53 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
571 | 50 | 54 | ||
572 | === modified file 'data/tribes/buildings/productionsites/empire/coalmine/init.lua' | |||
573 | --- data/tribes/buildings/productionsites/empire/coalmine/init.lua 2019-05-29 18:29:28 +0000 | |||
574 | +++ data/tribes/buildings/productionsites/empire/coalmine/init.lua 2019-06-21 11:33:28 +0000 | |||
575 | @@ -45,6 +45,11 @@ | |||
576 | 45 | empire_miner = 1 | 45 | empire_miner = 1 |
577 | 46 | }, | 46 | }, |
578 | 47 | 47 | ||
579 | 48 | indicate_workarea_overlaps = { | ||
580 | 49 | empire_coalmine = false, | ||
581 | 50 | empire_coalmine_deep = false, | ||
582 | 51 | }, | ||
583 | 52 | |||
584 | 48 | inputs = { | 53 | inputs = { |
585 | 49 | { name = "ration", amount = 6 }, | 54 | { name = "ration", amount = 6 }, |
586 | 50 | { name = "beer", amount = 6 } | 55 | { name = "beer", amount = 6 } |
587 | 51 | 56 | ||
588 | === modified file 'data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua' | |||
589 | --- data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
590 | +++ data/tribes/buildings/productionsites/empire/coalmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
591 | @@ -38,6 +38,11 @@ | |||
592 | 38 | mines = "coal" | 38 | mines = "coal" |
593 | 39 | }, | 39 | }, |
594 | 40 | 40 | ||
595 | 41 | indicate_workarea_overlaps = { | ||
596 | 42 | empire_coalmine = false, | ||
597 | 43 | empire_coalmine_deep = false, | ||
598 | 44 | }, | ||
599 | 45 | |||
600 | 41 | working_positions = { | 46 | working_positions = { |
601 | 42 | empire_miner = 1, | 47 | empire_miner = 1, |
602 | 43 | empire_miner_master = 1 | 48 | empire_miner_master = 1 |
603 | 44 | 49 | ||
604 | === modified file 'data/tribes/buildings/productionsites/empire/farm/init.lua' | |||
605 | --- data/tribes/buildings/productionsites/empire/farm/init.lua 2019-05-31 12:56:36 +0000 | |||
606 | +++ data/tribes/buildings/productionsites/empire/farm/init.lua 2019-06-21 11:33:28 +0000 | |||
607 | @@ -29,6 +29,12 @@ | |||
608 | 29 | }, | 29 | }, |
609 | 30 | }, | 30 | }, |
610 | 31 | 31 | ||
611 | 32 | indicate_workarea_overlaps = { | ||
612 | 33 | empire_farm = false, | ||
613 | 34 | empire_vineyard = false, | ||
614 | 35 | empire_foresters_house = false, | ||
615 | 36 | }, | ||
616 | 37 | |||
617 | 32 | aihints = { | 38 | aihints = { |
618 | 33 | basic_amount = 1, | 39 | basic_amount = 1, |
619 | 34 | space_consumer = true, | 40 | space_consumer = true, |
620 | 35 | 41 | ||
621 | === modified file 'data/tribes/buildings/productionsites/empire/fishers_house/init.lua' | |||
622 | --- data/tribes/buildings/productionsites/empire/fishers_house/init.lua 2019-06-01 11:23:15 +0000 | |||
623 | +++ data/tribes/buildings/productionsites/empire/fishers_house/init.lua 2019-06-21 11:33:28 +0000 | |||
624 | @@ -39,6 +39,10 @@ | |||
625 | 39 | "fish" | 39 | "fish" |
626 | 40 | }, | 40 | }, |
627 | 41 | 41 | ||
628 | 42 | indicate_workarea_overlaps = { | ||
629 | 43 | empire_fishers_house = false, | ||
630 | 44 | }, | ||
631 | 45 | |||
632 | 42 | programs = { | 46 | programs = { |
633 | 43 | work = { | 47 | work = { |
634 | 44 | -- TRANSLATORS: Completed/Skipped/Did not start fishing because ... | 48 | -- TRANSLATORS: Completed/Skipped/Did not start fishing because ... |
635 | 45 | 49 | ||
636 | === modified file 'data/tribes/buildings/productionsites/empire/foresters_house/init.lua' | |||
637 | --- data/tribes/buildings/productionsites/empire/foresters_house/init.lua 2019-06-02 14:04:16 +0000 | |||
638 | +++ data/tribes/buildings/productionsites/empire/foresters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
639 | @@ -37,6 +37,13 @@ | |||
640 | 37 | empire_forester = 1 | 37 | empire_forester = 1 |
641 | 38 | }, | 38 | }, |
642 | 39 | 39 | ||
643 | 40 | indicate_workarea_overlaps = { | ||
644 | 41 | empire_farm = false, | ||
645 | 42 | empire_vineyard = false, | ||
646 | 43 | empire_lumberjacks_house = true, | ||
647 | 44 | empire_foresters_house = false, | ||
648 | 45 | }, | ||
649 | 46 | |||
650 | 40 | programs = { | 47 | programs = { |
651 | 41 | work = { | 48 | work = { |
652 | 42 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... | 49 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... |
653 | 43 | 50 | ||
654 | === modified file 'data/tribes/buildings/productionsites/empire/goldmine/init.lua' | |||
655 | --- data/tribes/buildings/productionsites/empire/goldmine/init.lua 2019-05-29 18:29:28 +0000 | |||
656 | +++ data/tribes/buildings/productionsites/empire/goldmine/init.lua 2019-06-21 11:33:28 +0000 | |||
657 | @@ -45,6 +45,11 @@ | |||
658 | 45 | empire_miner = 1 | 45 | empire_miner = 1 |
659 | 46 | }, | 46 | }, |
660 | 47 | 47 | ||
661 | 48 | indicate_workarea_overlaps = { | ||
662 | 49 | empire_goldmine = false, | ||
663 | 50 | empire_goldmine_deep = false, | ||
664 | 51 | }, | ||
665 | 52 | |||
666 | 48 | inputs = { | 53 | inputs = { |
667 | 49 | { name = "ration", amount = 6 }, | 54 | { name = "ration", amount = 6 }, |
668 | 50 | { name = "wine", amount = 6 } | 55 | { name = "wine", amount = 6 } |
669 | 51 | 56 | ||
670 | === modified file 'data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua' | |||
671 | --- data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
672 | +++ data/tribes/buildings/productionsites/empire/goldmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
673 | @@ -38,6 +38,11 @@ | |||
674 | 38 | mines = "gold" | 38 | mines = "gold" |
675 | 39 | }, | 39 | }, |
676 | 40 | 40 | ||
677 | 41 | indicate_workarea_overlaps = { | ||
678 | 42 | empire_goldmine = false, | ||
679 | 43 | empire_goldmine_deep = false, | ||
680 | 44 | }, | ||
681 | 45 | |||
682 | 41 | working_positions = { | 46 | working_positions = { |
683 | 42 | empire_miner = 1, | 47 | empire_miner = 1, |
684 | 43 | empire_miner_master = 1 | 48 | empire_miner_master = 1 |
685 | 44 | 49 | ||
686 | === modified file 'data/tribes/buildings/productionsites/empire/hunters_house/init.lua' | |||
687 | --- data/tribes/buildings/productionsites/empire/hunters_house/init.lua 2019-05-29 18:29:28 +0000 | |||
688 | +++ data/tribes/buildings/productionsites/empire/hunters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
689 | @@ -38,6 +38,10 @@ | |||
690 | 38 | "meat" | 38 | "meat" |
691 | 39 | }, | 39 | }, |
692 | 40 | 40 | ||
693 | 41 | indicate_workarea_overlaps = { | ||
694 | 42 | empire_hunters_house = false, | ||
695 | 43 | }, | ||
696 | 44 | |||
697 | 41 | programs = { | 45 | programs = { |
698 | 42 | work = { | 46 | work = { |
699 | 43 | -- TRANSLATORS: Completed/Skipped/Did not start hunting because ... | 47 | -- TRANSLATORS: Completed/Skipped/Did not start hunting because ... |
700 | 44 | 48 | ||
701 | === modified file 'data/tribes/buildings/productionsites/empire/ironmine/init.lua' | |||
702 | --- data/tribes/buildings/productionsites/empire/ironmine/init.lua 2019-05-29 18:29:28 +0000 | |||
703 | +++ data/tribes/buildings/productionsites/empire/ironmine/init.lua 2019-06-21 11:33:28 +0000 | |||
704 | @@ -45,6 +45,11 @@ | |||
705 | 45 | empire_miner = 1 | 45 | empire_miner = 1 |
706 | 46 | }, | 46 | }, |
707 | 47 | 47 | ||
708 | 48 | indicate_workarea_overlaps = { | ||
709 | 49 | empire_ironmine = false, | ||
710 | 50 | empire_ironmine_deep = false, | ||
711 | 51 | }, | ||
712 | 52 | |||
713 | 48 | inputs = { | 53 | inputs = { |
714 | 49 | { name = "ration", amount = 6 }, | 54 | { name = "ration", amount = 6 }, |
715 | 50 | { name = "beer", amount = 6 } | 55 | { name = "beer", amount = 6 } |
716 | 51 | 56 | ||
717 | === modified file 'data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua' | |||
718 | --- data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
719 | +++ data/tribes/buildings/productionsites/empire/ironmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
720 | @@ -38,6 +38,11 @@ | |||
721 | 38 | mines = "iron" | 38 | mines = "iron" |
722 | 39 | }, | 39 | }, |
723 | 40 | 40 | ||
724 | 41 | indicate_workarea_overlaps = { | ||
725 | 42 | empire_ironmine = false, | ||
726 | 43 | empire_ironmine_deep = false, | ||
727 | 44 | }, | ||
728 | 45 | |||
729 | 41 | working_positions = { | 46 | working_positions = { |
730 | 42 | empire_miner = 1, | 47 | empire_miner = 1, |
731 | 43 | empire_miner_master = 1 | 48 | empire_miner_master = 1 |
732 | 44 | 49 | ||
733 | === modified file 'data/tribes/buildings/productionsites/empire/lumberjacks_house/init.lua' | |||
734 | --- data/tribes/buildings/productionsites/empire/lumberjacks_house/init.lua 2019-06-02 13:16:53 +0000 | |||
735 | +++ data/tribes/buildings/productionsites/empire/lumberjacks_house/init.lua 2019-06-21 11:33:28 +0000 | |||
736 | @@ -37,6 +37,11 @@ | |||
737 | 37 | "log" | 37 | "log" |
738 | 38 | }, | 38 | }, |
739 | 39 | 39 | ||
740 | 40 | indicate_workarea_overlaps = { | ||
741 | 41 | empire_lumberjacks_house = false, | ||
742 | 42 | empire_foresters_house = true, | ||
743 | 43 | }, | ||
744 | 44 | |||
745 | 40 | programs = { | 45 | programs = { |
746 | 41 | work = { | 46 | work = { |
747 | 42 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... | 47 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... |
748 | 43 | 48 | ||
749 | === modified file 'data/tribes/buildings/productionsites/empire/marblemine/init.lua' | |||
750 | --- data/tribes/buildings/productionsites/empire/marblemine/init.lua 2019-05-29 18:29:28 +0000 | |||
751 | +++ data/tribes/buildings/productionsites/empire/marblemine/init.lua 2019-06-21 11:33:28 +0000 | |||
752 | @@ -42,6 +42,11 @@ | |||
753 | 42 | basic_amount = 1 | 42 | basic_amount = 1 |
754 | 43 | }, | 43 | }, |
755 | 44 | 44 | ||
756 | 45 | indicate_workarea_overlaps = { | ||
757 | 46 | empire_marblemine = false, | ||
758 | 47 | empire_marblemine_deep = false, | ||
759 | 48 | }, | ||
760 | 49 | |||
761 | 45 | working_positions = { | 50 | working_positions = { |
762 | 46 | empire_miner = 1 | 51 | empire_miner = 1 |
763 | 47 | }, | 52 | }, |
764 | 48 | 53 | ||
765 | === modified file 'data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua' | |||
766 | --- data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
767 | +++ data/tribes/buildings/productionsites/empire/marblemine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
768 | @@ -43,6 +43,11 @@ | |||
769 | 43 | empire_miner_master = 1 | 43 | empire_miner_master = 1 |
770 | 44 | }, | 44 | }, |
771 | 45 | 45 | ||
772 | 46 | indicate_workarea_overlaps = { | ||
773 | 47 | empire_marblemine = false, | ||
774 | 48 | empire_marblemine_deep = false, | ||
775 | 49 | }, | ||
776 | 50 | |||
777 | 46 | inputs = { | 51 | inputs = { |
778 | 47 | { name = "meal", amount = 6 }, | 52 | { name = "meal", amount = 6 }, |
779 | 48 | { name = "wine", amount = 6 } | 53 | { name = "wine", amount = 6 } |
780 | 49 | 54 | ||
781 | === modified file 'data/tribes/buildings/productionsites/empire/quarry/init.lua' | |||
782 | --- data/tribes/buildings/productionsites/empire/quarry/init.lua 2019-06-02 14:45:28 +0000 | |||
783 | +++ data/tribes/buildings/productionsites/empire/quarry/init.lua 2019-06-21 11:33:28 +0000 | |||
784 | @@ -32,6 +32,10 @@ | |||
785 | 32 | empire_stonemason = 1 | 32 | empire_stonemason = 1 |
786 | 33 | }, | 33 | }, |
787 | 34 | 34 | ||
788 | 35 | indicate_workarea_overlaps = { | ||
789 | 36 | empire_quarry = false, | ||
790 | 37 | }, | ||
791 | 38 | |||
792 | 35 | outputs = { | 39 | outputs = { |
793 | 36 | "granite", | 40 | "granite", |
794 | 37 | "marble" | 41 | "marble" |
795 | 38 | 42 | ||
796 | === modified file 'data/tribes/buildings/productionsites/empire/shipyard/init.lua' | |||
797 | --- data/tribes/buildings/productionsites/empire/shipyard/init.lua 2019-05-29 18:29:28 +0000 | |||
798 | +++ data/tribes/buildings/productionsites/empire/shipyard/init.lua 2019-06-21 11:33:28 +0000 | |||
799 | @@ -47,6 +47,10 @@ | |||
800 | 47 | prohibited_till = 1050 | 47 | prohibited_till = 1050 |
801 | 48 | }, | 48 | }, |
802 | 49 | 49 | ||
803 | 50 | indicate_workarea_overlaps = { | ||
804 | 51 | empire_shipyard = false, | ||
805 | 52 | }, | ||
806 | 53 | |||
807 | 50 | working_positions = { | 54 | working_positions = { |
808 | 51 | empire_shipwright = 1 | 55 | empire_shipwright = 1 |
809 | 52 | }, | 56 | }, |
810 | 53 | 57 | ||
811 | === modified file 'data/tribes/buildings/productionsites/empire/vineyard/init.lua' | |||
812 | --- data/tribes/buildings/productionsites/empire/vineyard/init.lua 2019-05-31 12:56:36 +0000 | |||
813 | +++ data/tribes/buildings/productionsites/empire/vineyard/init.lua 2019-06-21 11:33:28 +0000 | |||
814 | @@ -44,6 +44,12 @@ | |||
815 | 44 | "grape" | 44 | "grape" |
816 | 45 | }, | 45 | }, |
817 | 46 | 46 | ||
818 | 47 | indicate_workarea_overlaps = { | ||
819 | 48 | empire_vineyard = false, | ||
820 | 49 | empire_farm = false, | ||
821 | 50 | empire_foresters_house = false, | ||
822 | 51 | }, | ||
823 | 52 | |||
824 | 47 | programs = { | 53 | programs = { |
825 | 48 | work = { | 54 | work = { |
826 | 49 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 55 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
827 | 50 | 56 | ||
828 | === modified file 'data/tribes/buildings/productionsites/empire/well/init.lua' | |||
829 | --- data/tribes/buildings/productionsites/empire/well/init.lua 2018-05-24 10:19:21 +0000 | |||
830 | +++ data/tribes/buildings/productionsites/empire/well/init.lua 2019-06-21 11:33:28 +0000 | |||
831 | @@ -42,6 +42,10 @@ | |||
832 | 42 | "water" | 42 | "water" |
833 | 43 | }, | 43 | }, |
834 | 44 | 44 | ||
835 | 45 | indicate_workarea_overlaps = { | ||
836 | 46 | empire_well = false, | ||
837 | 47 | }, | ||
838 | 48 | |||
839 | 45 | programs = { | 49 | programs = { |
840 | 46 | work = { | 50 | work = { |
841 | 47 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 51 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
842 | 48 | 52 | ||
843 | === modified file 'data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua' | |||
844 | --- data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua 2019-05-29 19:15:11 +0000 | |||
845 | +++ data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua 2019-06-21 11:33:28 +0000 | |||
846 | @@ -49,6 +49,11 @@ | |||
847 | 49 | "fish" | 49 | "fish" |
848 | 50 | }, | 50 | }, |
849 | 51 | 51 | ||
850 | 52 | indicate_workarea_overlaps = { | ||
851 | 53 | frisians_aqua_farm = false, | ||
852 | 54 | frisians_clay_pit = true, | ||
853 | 55 | }, | ||
854 | 56 | |||
855 | 52 | programs = { | 57 | programs = { |
856 | 53 | work = { | 58 | work = { |
857 | 54 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 59 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
858 | 55 | 60 | ||
859 | === modified file 'data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua' | |||
860 | --- data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua 2019-05-29 18:29:28 +0000 | |||
861 | +++ data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua 2019-06-21 11:33:28 +0000 | |||
862 | @@ -31,6 +31,13 @@ | |||
863 | 31 | }, | 31 | }, |
864 | 32 | }, | 32 | }, |
865 | 33 | 33 | ||
866 | 34 | indicate_workarea_overlaps = { | ||
867 | 35 | frisians_berry_farm = true, | ||
868 | 36 | frisians_reed_farm = true, | ||
869 | 37 | frisians_farm = true, | ||
870 | 38 | frisians_beekeepers_house = false, | ||
871 | 39 | }, | ||
872 | 40 | |||
873 | 34 | aihints = { | 41 | aihints = { |
874 | 35 | collects_ware_from_map = "honey", | 42 | collects_ware_from_map = "honey", |
875 | 36 | prohibited_till = 620, | 43 | prohibited_till = 620, |
876 | 37 | 44 | ||
877 | === modified file 'data/tribes/buildings/productionsites/frisians/berry_farm/init.lua' | |||
878 | --- data/tribes/buildings/productionsites/frisians/berry_farm/init.lua 2019-05-29 18:29:28 +0000 | |||
879 | +++ data/tribes/buildings/productionsites/frisians/berry_farm/init.lua 2019-06-21 11:33:28 +0000 | |||
880 | @@ -41,6 +41,16 @@ | |||
881 | 41 | frisians_berry_farmer = 1 | 41 | frisians_berry_farmer = 1 |
882 | 42 | }, | 42 | }, |
883 | 43 | 43 | ||
884 | 44 | indicate_workarea_overlaps = { | ||
885 | 45 | frisians_clay_pit = false, | ||
886 | 46 | frisians_berry_farm = false, | ||
887 | 47 | frisians_reed_farm = false, | ||
888 | 48 | frisians_farm = false, | ||
889 | 49 | frisians_foresters_house = false, | ||
890 | 50 | frisians_beekeepers_house = true, | ||
891 | 51 | frisians_collectors_house = true, | ||
892 | 52 | }, | ||
893 | 53 | |||
894 | 44 | programs = { | 54 | programs = { |
895 | 45 | work = { | 55 | work = { |
896 | 46 | -- TRANSLATORS: Completed/Skipped/Did not start planting bushes because ... | 56 | -- TRANSLATORS: Completed/Skipped/Did not start planting bushes because ... |
897 | 47 | 57 | ||
898 | === modified file 'data/tribes/buildings/productionsites/frisians/clay_pit/init.lua' | |||
899 | --- data/tribes/buildings/productionsites/frisians/clay_pit/init.lua 2019-05-29 19:15:11 +0000 | |||
900 | +++ data/tribes/buildings/productionsites/frisians/clay_pit/init.lua 2019-06-21 11:33:28 +0000 | |||
901 | @@ -35,6 +35,15 @@ | |||
902 | 35 | }, | 35 | }, |
903 | 36 | }, | 36 | }, |
904 | 37 | 37 | ||
905 | 38 | indicate_workarea_overlaps = { | ||
906 | 39 | frisians_aqua_farm = true, | ||
907 | 40 | frisians_clay_pit = false, | ||
908 | 41 | frisians_berry_farm = false, | ||
909 | 42 | frisians_reed_farm = false, | ||
910 | 43 | frisians_farm = false, | ||
911 | 44 | frisians_foresters_house = false, | ||
912 | 45 | }, | ||
913 | 46 | |||
914 | 38 | aihints = { | 47 | aihints = { |
915 | 39 | very_weak_ai_limit = 1, | 48 | very_weak_ai_limit = 1, |
916 | 40 | weak_ai_limit = 2, | 49 | weak_ai_limit = 2, |
917 | 41 | 50 | ||
918 | === modified file 'data/tribes/buildings/productionsites/frisians/coalmine/init.lua' | |||
919 | --- data/tribes/buildings/productionsites/frisians/coalmine/init.lua 2019-05-29 18:29:28 +0000 | |||
920 | +++ data/tribes/buildings/productionsites/frisians/coalmine/init.lua 2019-06-21 11:33:28 +0000 | |||
921 | @@ -52,6 +52,11 @@ | |||
922 | 52 | frisians_miner = 1 | 52 | frisians_miner = 1 |
923 | 53 | }, | 53 | }, |
924 | 54 | 54 | ||
925 | 55 | indicate_workarea_overlaps = { | ||
926 | 56 | frisians_coalmine = false, | ||
927 | 57 | frisians_coalmine_deep = false, | ||
928 | 58 | }, | ||
929 | 59 | |||
930 | 55 | inputs = { | 60 | inputs = { |
931 | 56 | { name = "ration", amount = 8 } | 61 | { name = "ration", amount = 8 } |
932 | 57 | }, | 62 | }, |
933 | 58 | 63 | ||
934 | === modified file 'data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua' | |||
935 | --- data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
936 | +++ data/tribes/buildings/productionsites/frisians/coalmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
937 | @@ -51,6 +51,11 @@ | |||
938 | 51 | frisians_miner_master = 1, | 51 | frisians_miner_master = 1, |
939 | 52 | }, | 52 | }, |
940 | 53 | 53 | ||
941 | 54 | indicate_workarea_overlaps = { | ||
942 | 55 | frisians_coalmine = false, | ||
943 | 56 | frisians_coalmine_deep = false, | ||
944 | 57 | }, | ||
945 | 58 | |||
946 | 54 | inputs = { | 59 | inputs = { |
947 | 55 | { name = "meal", amount = 8 } | 60 | { name = "meal", amount = 8 } |
948 | 56 | }, | 61 | }, |
949 | 57 | 62 | ||
950 | === modified file 'data/tribes/buildings/productionsites/frisians/collectors_house/init.lua' | |||
951 | --- data/tribes/buildings/productionsites/frisians/collectors_house/init.lua 2019-05-19 11:25:28 +0000 | |||
952 | +++ data/tribes/buildings/productionsites/frisians/collectors_house/init.lua 2019-06-21 11:33:28 +0000 | |||
953 | @@ -31,6 +31,11 @@ | |||
954 | 31 | }, | 31 | }, |
955 | 32 | }, | 32 | }, |
956 | 33 | 33 | ||
957 | 34 | indicate_workarea_overlaps = { | ||
958 | 35 | frisians_berry_farm = true, | ||
959 | 36 | frisians_collectors_house = false, | ||
960 | 37 | }, | ||
961 | 38 | |||
962 | 34 | aihints = { | 39 | aihints = { |
963 | 35 | collects_ware_from_map = "fruit", | 40 | collects_ware_from_map = "fruit", |
964 | 36 | prohibited_till = 470, | 41 | prohibited_till = 470, |
965 | 37 | 42 | ||
966 | === modified file 'data/tribes/buildings/productionsites/frisians/farm/init.lua' | |||
967 | --- data/tribes/buildings/productionsites/frisians/farm/init.lua 2019-05-29 18:29:28 +0000 | |||
968 | +++ data/tribes/buildings/productionsites/frisians/farm/init.lua 2019-06-21 11:33:28 +0000 | |||
969 | @@ -57,6 +57,15 @@ | |||
970 | 57 | "barley" | 57 | "barley" |
971 | 58 | }, | 58 | }, |
972 | 59 | 59 | ||
973 | 60 | indicate_workarea_overlaps = { | ||
974 | 61 | frisians_clay_pit = false, | ||
975 | 62 | frisians_berry_farm = false, | ||
976 | 63 | frisians_reed_farm = false, | ||
977 | 64 | frisians_farm = false, | ||
978 | 65 | frisians_foresters_house = false, | ||
979 | 66 | frisians_beekeepers_house = true, | ||
980 | 67 | }, | ||
981 | 68 | |||
982 | 60 | programs = { | 69 | programs = { |
983 | 61 | work = { | 70 | work = { |
984 | 62 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 71 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
985 | 63 | 72 | ||
986 | === modified file 'data/tribes/buildings/productionsites/frisians/fishers_house/init.lua' | |||
987 | --- data/tribes/buildings/productionsites/frisians/fishers_house/init.lua 2019-05-31 10:58:39 +0000 | |||
988 | +++ data/tribes/buildings/productionsites/frisians/fishers_house/init.lua 2019-06-21 11:33:28 +0000 | |||
989 | @@ -37,6 +37,10 @@ | |||
990 | 37 | prohibited_till = 490 | 37 | prohibited_till = 490 |
991 | 38 | }, | 38 | }, |
992 | 39 | 39 | ||
993 | 40 | indicate_workarea_overlaps = { | ||
994 | 41 | frisians_fishers_house = false, | ||
995 | 42 | }, | ||
996 | 43 | |||
997 | 40 | working_positions = { | 44 | working_positions = { |
998 | 41 | frisians_fisher = 1 | 45 | frisians_fisher = 1 |
999 | 42 | }, | 46 | }, |
1000 | 43 | 47 | ||
1001 | === modified file 'data/tribes/buildings/productionsites/frisians/foresters_house/init.lua' | |||
1002 | --- data/tribes/buildings/productionsites/frisians/foresters_house/init.lua 2019-05-29 18:29:28 +0000 | |||
1003 | +++ data/tribes/buildings/productionsites/frisians/foresters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
1004 | @@ -40,6 +40,15 @@ | |||
1005 | 40 | frisians_forester = 1 | 40 | frisians_forester = 1 |
1006 | 41 | }, | 41 | }, |
1007 | 42 | 42 | ||
1008 | 43 | indicate_workarea_overlaps = { | ||
1009 | 44 | frisians_clay_pit = false, | ||
1010 | 45 | frisians_berry_farm = false, | ||
1011 | 46 | frisians_reed_farm = false, | ||
1012 | 47 | frisians_farm = false, | ||
1013 | 48 | frisians_foresters_house = false, | ||
1014 | 49 | frisians_woodcutters_house = true, | ||
1015 | 50 | }, | ||
1016 | 51 | |||
1017 | 43 | programs = { | 52 | programs = { |
1018 | 44 | work = { | 53 | work = { |
1019 | 45 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... | 54 | -- TRANSLATORS: Completed/Skipped/Did not start planting trees because ... |
1020 | 46 | 55 | ||
1021 | === modified file 'data/tribes/buildings/productionsites/frisians/goldmine/init.lua' | |||
1022 | --- data/tribes/buildings/productionsites/frisians/goldmine/init.lua 2019-05-29 18:29:28 +0000 | |||
1023 | +++ data/tribes/buildings/productionsites/frisians/goldmine/init.lua 2019-06-21 11:33:28 +0000 | |||
1024 | @@ -43,6 +43,11 @@ | |||
1025 | 43 | }, | 43 | }, |
1026 | 44 | }, | 44 | }, |
1027 | 45 | 45 | ||
1028 | 46 | indicate_workarea_overlaps = { | ||
1029 | 47 | frisians_goldmine = false, | ||
1030 | 48 | frisians_goldmine_deep = false, | ||
1031 | 49 | }, | ||
1032 | 50 | |||
1033 | 46 | aihints = { | 51 | aihints = { |
1034 | 47 | mines = "gold", | 52 | mines = "gold", |
1035 | 48 | mines_percent = 50, | 53 | mines_percent = 50, |
1036 | 49 | 54 | ||
1037 | === modified file 'data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua' | |||
1038 | --- data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
1039 | +++ data/tribes/buildings/productionsites/frisians/goldmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
1040 | @@ -46,6 +46,11 @@ | |||
1041 | 46 | mines = "gold", | 46 | mines = "gold", |
1042 | 47 | }, | 47 | }, |
1043 | 48 | 48 | ||
1044 | 49 | indicate_workarea_overlaps = { | ||
1045 | 50 | frisians_goldmine = false, | ||
1046 | 51 | frisians_goldmine_deep = false, | ||
1047 | 52 | }, | ||
1048 | 53 | |||
1049 | 49 | working_positions = { | 54 | working_positions = { |
1050 | 50 | frisians_miner = 1, | 55 | frisians_miner = 1, |
1051 | 51 | frisians_miner_master = 1, | 56 | frisians_miner_master = 1, |
1052 | 52 | 57 | ||
1053 | === modified file 'data/tribes/buildings/productionsites/frisians/hunters_house/init.lua' | |||
1054 | --- data/tribes/buildings/productionsites/frisians/hunters_house/init.lua 2019-05-29 18:29:28 +0000 | |||
1055 | +++ data/tribes/buildings/productionsites/frisians/hunters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
1056 | @@ -36,6 +36,10 @@ | |||
1057 | 36 | prohibited_till = 480 | 36 | prohibited_till = 480 |
1058 | 37 | }, | 37 | }, |
1059 | 38 | 38 | ||
1060 | 39 | indicate_workarea_overlaps = { | ||
1061 | 40 | frisians_hunters_house = false, | ||
1062 | 41 | }, | ||
1063 | 42 | |||
1064 | 39 | working_positions = { | 43 | working_positions = { |
1065 | 40 | frisians_hunter = 1 | 44 | frisians_hunter = 1 |
1066 | 41 | }, | 45 | }, |
1067 | 42 | 46 | ||
1068 | === modified file 'data/tribes/buildings/productionsites/frisians/ironmine/init.lua' | |||
1069 | --- data/tribes/buildings/productionsites/frisians/ironmine/init.lua 2019-05-29 18:29:28 +0000 | |||
1070 | +++ data/tribes/buildings/productionsites/frisians/ironmine/init.lua 2019-06-21 11:33:28 +0000 | |||
1071 | @@ -43,6 +43,11 @@ | |||
1072 | 43 | }, | 43 | }, |
1073 | 44 | }, | 44 | }, |
1074 | 45 | 45 | ||
1075 | 46 | indicate_workarea_overlaps = { | ||
1076 | 47 | frisians_ironmine = false, | ||
1077 | 48 | frisians_ironmine_deep = false, | ||
1078 | 49 | }, | ||
1079 | 50 | |||
1080 | 46 | aihints = { | 51 | aihints = { |
1081 | 47 | mines = "iron", | 52 | mines = "iron", |
1082 | 48 | mines_percent = 50, | 53 | mines_percent = 50, |
1083 | 49 | 54 | ||
1084 | === modified file 'data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua' | |||
1085 | --- data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua 2019-05-29 18:29:28 +0000 | |||
1086 | +++ data/tribes/buildings/productionsites/frisians/ironmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
1087 | @@ -42,6 +42,11 @@ | |||
1088 | 42 | }, | 42 | }, |
1089 | 43 | }, | 43 | }, |
1090 | 44 | 44 | ||
1091 | 45 | indicate_workarea_overlaps = { | ||
1092 | 46 | frisians_ironmine = false, | ||
1093 | 47 | frisians_ironmine_deep = false, | ||
1094 | 48 | }, | ||
1095 | 49 | |||
1096 | 45 | aihints = { | 50 | aihints = { |
1097 | 46 | mines = "iron", | 51 | mines = "iron", |
1098 | 47 | }, | 52 | }, |
1099 | 48 | 53 | ||
1100 | === modified file 'data/tribes/buildings/productionsites/frisians/quarry/init.lua' | |||
1101 | --- data/tribes/buildings/productionsites/frisians/quarry/init.lua 2019-06-02 14:45:28 +0000 | |||
1102 | +++ data/tribes/buildings/productionsites/frisians/quarry/init.lua 2019-06-21 11:33:28 +0000 | |||
1103 | @@ -39,6 +39,10 @@ | |||
1104 | 39 | frisians_stonemason = 1 | 39 | frisians_stonemason = 1 |
1105 | 40 | }, | 40 | }, |
1106 | 41 | 41 | ||
1107 | 42 | indicate_workarea_overlaps = { | ||
1108 | 43 | frisians_quarry = false, | ||
1109 | 44 | }, | ||
1110 | 45 | |||
1111 | 42 | outputs = { | 46 | outputs = { |
1112 | 43 | "granite" | 47 | "granite" |
1113 | 44 | }, | 48 | }, |
1114 | 45 | 49 | ||
1115 | === modified file 'data/tribes/buildings/productionsites/frisians/reed_farm/init.lua' | |||
1116 | --- data/tribes/buildings/productionsites/frisians/reed_farm/init.lua 2019-05-29 18:29:28 +0000 | |||
1117 | +++ data/tribes/buildings/productionsites/frisians/reed_farm/init.lua 2019-06-21 11:33:28 +0000 | |||
1118 | @@ -47,6 +47,15 @@ | |||
1119 | 47 | "reed" | 47 | "reed" |
1120 | 48 | }, | 48 | }, |
1121 | 49 | 49 | ||
1122 | 50 | indicate_workarea_overlaps = { | ||
1123 | 51 | frisians_clay_pit = false, | ||
1124 | 52 | frisians_berry_farm = false, | ||
1125 | 53 | frisians_reed_farm = false, | ||
1126 | 54 | frisians_farm = false, | ||
1127 | 55 | frisians_foresters_house = false, | ||
1128 | 56 | frisians_beekeepers_house = true, | ||
1129 | 57 | }, | ||
1130 | 58 | |||
1131 | 50 | programs = { | 59 | programs = { |
1132 | 51 | work = { | 60 | work = { |
1133 | 52 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 61 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
1134 | 53 | 62 | ||
1135 | === modified file 'data/tribes/buildings/productionsites/frisians/rockmine/init.lua' | |||
1136 | --- data/tribes/buildings/productionsites/frisians/rockmine/init.lua 2019-05-19 11:25:28 +0000 | |||
1137 | +++ data/tribes/buildings/productionsites/frisians/rockmine/init.lua 2019-06-21 11:33:28 +0000 | |||
1138 | @@ -43,6 +43,11 @@ | |||
1139 | 43 | }, | 43 | }, |
1140 | 44 | }, | 44 | }, |
1141 | 45 | 45 | ||
1142 | 46 | indicate_workarea_overlaps = { | ||
1143 | 47 | frisians_rockmine = false, | ||
1144 | 48 | frisians_rockmine_deep = false, | ||
1145 | 49 | }, | ||
1146 | 50 | |||
1147 | 46 | aihints = { | 51 | aihints = { |
1148 | 47 | mines = "stones", | 52 | mines = "stones", |
1149 | 48 | mines_percent = 50, | 53 | mines_percent = 50, |
1150 | 49 | 54 | ||
1151 | === modified file 'data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua' | |||
1152 | --- data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua 2019-05-19 11:25:28 +0000 | |||
1153 | +++ data/tribes/buildings/productionsites/frisians/rockmine_deep/init.lua 2019-06-21 11:33:28 +0000 | |||
1154 | @@ -42,6 +42,11 @@ | |||
1155 | 42 | }, | 42 | }, |
1156 | 43 | }, | 43 | }, |
1157 | 44 | 44 | ||
1158 | 45 | indicate_workarea_overlaps = { | ||
1159 | 46 | frisians_rockmine = false, | ||
1160 | 47 | frisians_rockmine_deep = false, | ||
1161 | 48 | }, | ||
1162 | 49 | |||
1163 | 45 | aihints = { | 50 | aihints = { |
1164 | 46 | mines = "stones", | 51 | mines = "stones", |
1165 | 47 | }, | 52 | }, |
1166 | 48 | 53 | ||
1167 | === modified file 'data/tribes/buildings/productionsites/frisians/shipyard/init.lua' | |||
1168 | --- data/tribes/buildings/productionsites/frisians/shipyard/init.lua 2019-05-29 18:29:28 +0000 | |||
1169 | +++ data/tribes/buildings/productionsites/frisians/shipyard/init.lua 2019-06-21 11:33:28 +0000 | |||
1170 | @@ -41,6 +41,10 @@ | |||
1171 | 41 | prohibited_till = 1050 | 41 | prohibited_till = 1050 |
1172 | 42 | }, | 42 | }, |
1173 | 43 | 43 | ||
1174 | 44 | indicate_workarea_overlaps = { | ||
1175 | 45 | frisians_shipyard = false, | ||
1176 | 46 | }, | ||
1177 | 47 | |||
1178 | 44 | working_positions = { | 48 | working_positions = { |
1179 | 45 | frisians_shipwright = 1 | 49 | frisians_shipwright = 1 |
1180 | 46 | }, | 50 | }, |
1181 | 47 | 51 | ||
1182 | === modified file 'data/tribes/buildings/productionsites/frisians/well/init.lua' | |||
1183 | --- data/tribes/buildings/productionsites/frisians/well/init.lua 2018-07-13 11:25:10 +0000 | |||
1184 | +++ data/tribes/buildings/productionsites/frisians/well/init.lua 2019-06-21 11:33:28 +0000 | |||
1185 | @@ -44,6 +44,10 @@ | |||
1186 | 44 | "water" | 44 | "water" |
1187 | 45 | }, | 45 | }, |
1188 | 46 | 46 | ||
1189 | 47 | indicate_workarea_overlaps = { | ||
1190 | 48 | frisians_well = false, | ||
1191 | 49 | }, | ||
1192 | 50 | |||
1193 | 47 | programs = { | 51 | programs = { |
1194 | 48 | work = { | 52 | work = { |
1195 | 49 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... | 53 | -- TRANSLATORS: Completed/Skipped/Did not start working because ... |
1196 | 50 | 54 | ||
1197 | === modified file 'data/tribes/buildings/productionsites/frisians/woodcutters_house/init.lua' | |||
1198 | --- data/tribes/buildings/productionsites/frisians/woodcutters_house/init.lua 2019-06-02 13:16:53 +0000 | |||
1199 | +++ data/tribes/buildings/productionsites/frisians/woodcutters_house/init.lua 2019-06-21 11:33:28 +0000 | |||
1200 | @@ -43,6 +43,11 @@ | |||
1201 | 43 | "log" | 43 | "log" |
1202 | 44 | }, | 44 | }, |
1203 | 45 | 45 | ||
1204 | 46 | indicate_workarea_overlaps = { | ||
1205 | 47 | frisians_foresters_house = true, | ||
1206 | 48 | frisians_woodcutters_house = false, | ||
1207 | 49 | }, | ||
1208 | 50 | |||
1209 | 46 | programs = { | 51 | programs = { |
1210 | 47 | work = { | 52 | work = { |
1211 | 48 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... | 53 | -- TRANSLATORS: Completed/Skipped/Did not start felling trees because ... |
1212 | 49 | 54 | ||
1213 | === modified file 'data/txts/developers.json' | |||
1214 | --- data/txts/developers.json 2019-04-22 05:24:58 +0000 | |||
1215 | +++ data/txts/developers.json 2019-06-21 11:33:28 +0000 | |||
1216 | @@ -159,7 +159,7 @@ | |||
1217 | 159 | }, | 159 | }, |
1218 | 160 | { | 160 | { |
1219 | 161 | "heading": "Musicians", | 161 | "heading": "Musicians", |
1221 | 162 | "image": "images/wui/overlays/workarea123.png", | 162 | "image": "images/wui/buildings/toggle_workarea.png", |
1222 | 163 | "entries":[ | 163 | "entries":[ |
1223 | 164 | { | 164 | { |
1224 | 165 | "members":[ | 165 | "members":[ |
1225 | @@ -178,7 +178,7 @@ | |||
1226 | 178 | }, | 178 | }, |
1227 | 179 | { | 179 | { |
1228 | 180 | "heading": "Sound Effects", | 180 | "heading": "Sound Effects", |
1230 | 181 | "image": "images/wui/overlays/workarea123.png", | 181 | "image": "images/wui/buildings/toggle_workarea.png", |
1231 | 182 | "entries":[ | 182 | "entries":[ |
1232 | 183 | { | 183 | { |
1233 | 184 | "members":[ | 184 | "members":[ |
1234 | 185 | 185 | ||
1235 | === modified file 'src/logic/map_objects/tribes/productionsite.cc' | |||
1236 | --- src/logic/map_objects/tribes/productionsite.cc 2019-05-29 07:14:00 +0000 | |||
1237 | +++ src/logic/map_objects/tribes/productionsite.cc 2019-06-21 11:33:28 +0000 | |||
1238 | @@ -208,6 +208,26 @@ | |||
1239 | 208 | } | 208 | } |
1240 | 209 | } | 209 | } |
1241 | 210 | 210 | ||
1242 | 211 | if (table.has_key("indicate_workarea_overlaps")) { | ||
1243 | 212 | items_table = table.get_table("indicate_workarea_overlaps"); | ||
1244 | 213 | for (const std::string& s : items_table->keys<std::string>()) { | ||
1245 | 214 | if (highlight_overlapping_workarea_for_.find(s) != highlight_overlapping_workarea_for_.end()) { | ||
1246 | 215 | throw wexception("indicate_workarea_overlaps has duplicate entry"); | ||
1247 | 216 | } | ||
1248 | 217 | highlight_overlapping_workarea_for_.emplace(s, items_table->get_bool(s)); | ||
1249 | 218 | } | ||
1250 | 219 | } | ||
1251 | 220 | if (workarea_info().empty() ^ highlight_overlapping_workarea_for_.empty()) { | ||
1252 | 221 | if (highlight_overlapping_workarea_for_.empty()) { | ||
1253 | 222 | log("WARNING: Productionsite %s has a workarea but does not inform about any conflicting buildings\n", | ||
1254 | 223 | name().c_str()); | ||
1255 | 224 | } else { | ||
1256 | 225 | throw GameDataError( | ||
1257 | 226 | "Productionsite %s without a workarea must not inform about conflicting buildings", | ||
1258 | 227 | name().c_str()); | ||
1259 | 228 | } | ||
1260 | 229 | } | ||
1261 | 230 | |||
1262 | 211 | // Verify that any map resource collected is valid | 231 | // Verify that any map resource collected is valid |
1263 | 212 | if (!hints().collects_ware_from_map().empty()) { | 232 | if (!hints().collects_ware_from_map().empty()) { |
1264 | 213 | if (!(tribes.ware_exists(hints().collects_ware_from_map()))) { | 233 | if (!(tribes.ware_exists(hints().collects_ware_from_map()))) { |
1265 | 214 | 234 | ||
1266 | === modified file 'src/logic/map_objects/tribes/productionsite.h' | |||
1267 | --- src/logic/map_objects/tribes/productionsite.h 2019-05-28 21:04:36 +0000 | |||
1268 | +++ src/logic/map_objects/tribes/productionsite.h 2019-06-21 11:33:28 +0000 | |||
1269 | @@ -128,6 +128,20 @@ | |||
1270 | 128 | return out_of_resource_productivity_threshold_; | 128 | return out_of_resource_productivity_threshold_; |
1271 | 129 | } | 129 | } |
1272 | 130 | 130 | ||
1273 | 131 | bool highlight_overlapping_workarea_for(const std::string& n, bool* positive) const { | ||
1274 | 132 | const auto it = highlight_overlapping_workarea_for_.find(n); | ||
1275 | 133 | if (it == highlight_overlapping_workarea_for_.end()) { | ||
1276 | 134 | return false; | ||
1277 | 135 | } else { | ||
1278 | 136 | *positive = it->second; | ||
1279 | 137 | return true; | ||
1280 | 138 | } | ||
1281 | 139 | } | ||
1282 | 140 | |||
1283 | 141 | const std::map<std::string, bool>& get_highlight_overlapping_workarea_for() const { | ||
1284 | 142 | return highlight_overlapping_workarea_for_; | ||
1285 | 143 | } | ||
1286 | 144 | |||
1287 | 131 | private: | 145 | private: |
1288 | 132 | BillOfMaterials working_positions_; | 146 | BillOfMaterials working_positions_; |
1289 | 133 | BillOfMaterials input_wares_; | 147 | BillOfMaterials input_wares_; |
1290 | @@ -140,6 +154,7 @@ | |||
1291 | 140 | std::string out_of_resource_message_; | 154 | std::string out_of_resource_message_; |
1292 | 141 | std::string resource_not_needed_message_; | 155 | std::string resource_not_needed_message_; |
1293 | 142 | int out_of_resource_productivity_threshold_; | 156 | int out_of_resource_productivity_threshold_; |
1294 | 157 | std::map<std::string, bool> highlight_overlapping_workarea_for_; | ||
1295 | 143 | 158 | ||
1296 | 144 | DISALLOW_COPY_AND_ASSIGN(ProductionSiteDescr); | 159 | DISALLOW_COPY_AND_ASSIGN(ProductionSiteDescr); |
1297 | 145 | }; | 160 | }; |
1298 | 146 | 161 | ||
1299 | === modified file 'src/logic/map_objects/tribes/tribes.cc' | |||
1300 | --- src/logic/map_objects/tribes/tribes.cc 2019-05-29 06:24:42 +0000 | |||
1301 | +++ src/logic/map_objects/tribes/tribes.cc 2019-06-21 11:33:28 +0000 | |||
1302 | @@ -335,6 +335,22 @@ | |||
1303 | 335 | for (const auto& job : de->working_positions()) { | 335 | for (const auto& job : de->working_positions()) { |
1304 | 336 | workers_->get_mutable(job.first)->add_employer(i); | 336 | workers_->get_mutable(job.first)->add_employer(i); |
1305 | 337 | } | 337 | } |
1306 | 338 | |||
1307 | 339 | // Check that all workarea overlap hints are valid | ||
1308 | 340 | for (const auto& pair : de->get_highlight_overlapping_workarea_for()) { | ||
1309 | 341 | const DescriptionIndex di = safe_building_index(pair.first); | ||
1310 | 342 | if (upcast(const ProductionSiteDescr, p, get_building_descr(di))) { | ||
1311 | 343 | if (!p->workarea_info().empty()) { | ||
1312 | 344 | continue; | ||
1313 | 345 | } | ||
1314 | 346 | throw GameDataError( | ||
1315 | 347 | "Productionsite %s will inform about conflicting building %s which doesn’t have a workarea", | ||
1316 | 348 | de->name().c_str(), pair.first.c_str()); | ||
1317 | 349 | } | ||
1318 | 350 | throw GameDataError( | ||
1319 | 351 | "Productionsite %s will inform about conflicting building %s which is not a productionsite", | ||
1320 | 352 | de->name().c_str(), pair.first.c_str()); | ||
1321 | 353 | } | ||
1322 | 338 | } | 354 | } |
1323 | 339 | 355 | ||
1324 | 340 | // Register which buildings buildings can have been enhanced from | 356 | // Register which buildings buildings can have been enhanced from |
1325 | 341 | 357 | ||
1326 | === modified file 'src/wui/fieldaction.cc' | |||
1327 | --- src/wui/fieldaction.cc 2019-05-31 19:31:45 +0000 | |||
1328 | +++ src/wui/fieldaction.cc 2019-06-21 11:33:28 +0000 | |||
1329 | @@ -208,6 +208,7 @@ | |||
1330 | 208 | bool showing_workarea_preview_; | 208 | bool showing_workarea_preview_; |
1331 | 209 | std::set<Widelands::Coords> overlapping_workareas_; | 209 | std::set<Widelands::Coords> overlapping_workareas_; |
1332 | 210 | bool is_showing_workarea_overlaps_; | 210 | bool is_showing_workarea_overlaps_; |
1333 | 211 | Widelands::DescriptionIndex building_under_mouse_; | ||
1334 | 211 | 212 | ||
1335 | 212 | /// Variables to use with attack dialog. | 213 | /// Variables to use with attack dialog. |
1336 | 213 | AttackBox* attack_box_; | 214 | AttackBox* attack_box_; |
1337 | @@ -258,6 +259,7 @@ | |||
1338 | 258 | best_tab_(0), | 259 | best_tab_(0), |
1339 | 259 | showing_workarea_preview_(false), | 260 | showing_workarea_preview_(false), |
1340 | 260 | is_showing_workarea_overlaps_(ib->get_display_flag(InteractiveBase::dfShowWorkareaOverlap)), | 261 | is_showing_workarea_overlaps_(ib->get_display_flag(InteractiveBase::dfShowWorkareaOverlap)), |
1341 | 262 | building_under_mouse_(Widelands::INVALID_INDEX), | ||
1342 | 261 | attack_box_(nullptr) { | 263 | attack_box_(nullptr) { |
1343 | 262 | ib->set_sel_freeze(true); | 264 | ib->set_sel_freeze(true); |
1344 | 263 | set_center_panel(&tabpanel_); | 265 | set_center_panel(&tabpanel_); |
1345 | @@ -280,12 +282,14 @@ | |||
1346 | 280 | if (!is_showing_workarea_overlaps_) { | 282 | if (!is_showing_workarea_overlaps_) { |
1347 | 281 | clear_overlapping_workareas(); | 283 | clear_overlapping_workareas(); |
1348 | 282 | } | 284 | } |
1349 | 283 | #ifndef NDEBUG | ||
1350 | 284 | else { | 285 | else { |
1351 | 285 | // Desired overlaps will be shown as soon as the user moves the mouse | ||
1352 | 286 | assert(overlapping_workareas_.empty()); | 286 | assert(overlapping_workareas_.empty()); |
1353 | 287 | if (building_under_mouse_ != Widelands::INVALID_INDEX) { | ||
1354 | 288 | const Widelands::DescriptionIndex di = building_under_mouse_; | ||
1355 | 289 | building_icon_mouse_out(di); // this unsets building_under_mouse_ | ||
1356 | 290 | building_icon_mouse_in(di); | ||
1357 | 291 | } | ||
1358 | 287 | } | 292 | } |
1359 | 288 | #endif | ||
1360 | 289 | } | 293 | } |
1361 | 290 | if (player_ && player_->vision(node_.field - &ibase().egbase().map()[0]) <= 1 && | 294 | if (player_ && player_->vision(node_.field - &ibase().egbase().map()[0]) <= 1 && |
1362 | 291 | !player_->see_all()) { | 295 | !player_->see_all()) { |
1363 | @@ -730,13 +734,20 @@ | |||
1364 | 730 | if (showing_workarea_preview_) { | 734 | if (showing_workarea_preview_) { |
1365 | 731 | ibase().hide_workarea(node_, false); | 735 | ibase().hide_workarea(node_, false); |
1366 | 732 | showing_workarea_preview_ = false; | 736 | showing_workarea_preview_ = false; |
1367 | 737 | building_under_mouse_ = Widelands::INVALID_INDEX; | ||
1368 | 733 | clear_overlapping_workareas(); | 738 | clear_overlapping_workareas(); |
1369 | 734 | } | 739 | } |
1370 | 735 | } | 740 | } |
1371 | 736 | 741 | ||
1372 | 742 | constexpr uint32_t kOverlapColorDefault = 0xff3f3fbf; | ||
1373 | 743 | constexpr uint32_t kOverlapColorPositive = 0xff3fbf3f; | ||
1374 | 744 | constexpr uint32_t kOverlapColorNegative = 0xffbf3f3f; | ||
1375 | 745 | constexpr uint32_t kOverlapColorPale = 0x7fffffff; | ||
1376 | 746 | |||
1377 | 737 | void FieldActionWindow::building_icon_mouse_in(const Widelands::DescriptionIndex idx) { | 747 | void FieldActionWindow::building_icon_mouse_in(const Widelands::DescriptionIndex idx) { |
1378 | 738 | if (!showing_workarea_preview_) { | 748 | if (!showing_workarea_preview_) { |
1379 | 739 | assert(overlapping_workareas_.empty()); | 749 | assert(overlapping_workareas_.empty()); |
1380 | 750 | building_under_mouse_ = idx; | ||
1381 | 740 | const Widelands::BuildingDescr& descr = *player_->tribe().get_building_descr(idx); | 751 | const Widelands::BuildingDescr& descr = *player_->tribe().get_building_descr(idx); |
1382 | 741 | const WorkareaInfo& workarea_info = descr.workarea_info(); | 752 | const WorkareaInfo& workarea_info = descr.workarea_info(); |
1383 | 742 | ibase().show_workarea(workarea_info, node_); | 753 | ibase().show_workarea(workarea_info, node_); |
1384 | @@ -768,11 +779,14 @@ | |||
1385 | 768 | continue; | 779 | continue; |
1386 | 769 | } | 780 | } |
1387 | 770 | const Widelands::BuildingDescr* d = nullptr; | 781 | const Widelands::BuildingDescr* d = nullptr; |
1388 | 782 | bool positive = false; // unused default value to make g++ happy | ||
1389 | 771 | if (imm_type == Widelands::MapObjectType::CONSTRUCTIONSITE) { | 783 | if (imm_type == Widelands::MapObjectType::CONSTRUCTIONSITE) { |
1390 | 772 | upcast(Widelands::ConstructionSite, cs, imm); | 784 | upcast(Widelands::ConstructionSite, cs, imm); |
1391 | 773 | d = cs->get_info().becomes; | 785 | d = cs->get_info().becomes; |
1392 | 774 | if ((descr.type() == Widelands::MapObjectType::PRODUCTIONSITE && | 786 | if ((descr.type() == Widelands::MapObjectType::PRODUCTIONSITE && |
1394 | 775 | d->type() != Widelands::MapObjectType::PRODUCTIONSITE) || | 787 | (d->type() != Widelands::MapObjectType::PRODUCTIONSITE || |
1395 | 788 | !dynamic_cast<const Widelands::ProductionSiteDescr&>(descr). | ||
1396 | 789 | highlight_overlapping_workarea_for(d->name(), &positive))) || | ||
1397 | 776 | ((descr.type() == Widelands::MapObjectType::MILITARYSITE || | 790 | ((descr.type() == Widelands::MapObjectType::MILITARYSITE || |
1398 | 777 | descr.type() == Widelands::MapObjectType::WAREHOUSE) && | 791 | descr.type() == Widelands::MapObjectType::WAREHOUSE) && |
1399 | 778 | imm_type != Widelands::MapObjectType::MILITARYSITE && | 792 | imm_type != Widelands::MapObjectType::MILITARYSITE && |
1400 | @@ -781,7 +795,8 @@ | |||
1401 | 781 | } | 795 | } |
1402 | 782 | } else if (descr.type() == Widelands::MapObjectType::PRODUCTIONSITE) { | 796 | } else if (descr.type() == Widelands::MapObjectType::PRODUCTIONSITE) { |
1403 | 783 | if (imm_type != Widelands::MapObjectType::PRODUCTIONSITE || | 797 | if (imm_type != Widelands::MapObjectType::PRODUCTIONSITE || |
1405 | 784 | imm->get_owner() != player_) { | 798 | imm->get_owner() != player_ || !dynamic_cast<const Widelands::ProductionSiteDescr&>( |
1406 | 799 | descr).highlight_overlapping_workarea_for(imm->descr().name(), &positive)) { | ||
1407 | 785 | continue; | 800 | continue; |
1408 | 786 | } | 801 | } |
1409 | 787 | } else if (descr.type() == Widelands::MapObjectType::WAREHOUSE || | 802 | } else if (descr.type() == Widelands::MapObjectType::WAREHOUSE || |
1410 | @@ -811,7 +826,12 @@ | |||
1411 | 811 | std::map<Widelands::TCoords<>, uint32_t> colors; | 826 | std::map<Widelands::TCoords<>, uint32_t> colors; |
1412 | 812 | for (const Widelands::TCoords<>& t : map.triangles_in_region( | 827 | for (const Widelands::TCoords<>& t : map.triangles_in_region( |
1413 | 813 | map.to_set(Widelands::Area<>(mr.location(), wa_radius)))) { | 828 | map.to_set(Widelands::Area<>(mr.location(), wa_radius)))) { |
1415 | 814 | colors[t] = main_region.count(t) ? 0xffbf3f3f : 0x7fffffff; | 829 | colors[t] = mr.location() == t.node || mr.location() == map.br_n(t.node) || |
1416 | 830 | mr.location() == (t.t == Widelands::TriangleIndex::D ? map.bl_n(t.node) : | ||
1417 | 831 | map.r_n(t.node)) || main_region.count(t) ? | ||
1418 | 832 | descr.type() == Widelands::MapObjectType::PRODUCTIONSITE ? | ||
1419 | 833 | positive ? kOverlapColorPositive : kOverlapColorNegative : | ||
1420 | 834 | kOverlapColorDefault : kOverlapColorPale; | ||
1421 | 815 | } | 835 | } |
1422 | 816 | ibase().show_workarea(wa, mr.location(), colors); | 836 | ibase().show_workarea(wa, mr.location(), colors); |
1423 | 817 | overlapping_workareas_.insert(mr.location()); | 837 | overlapping_workareas_.insert(mr.location()); |
I'm still in favor of deducing these in the engine so that we won't need to maintain these Lua definitions, which will be prone to bugs.
Criteria could be:
1. If both buildings mine the same resource
2. If both buildings plant an immovable
3. If both buildings collect an immovable
4. If one building plants an immovable and the other collects it and it is the same attrib
5. If both buildings plant or collect the same bob attrib
If we want to go this route, we will need to base it off https:/ /code.launchpad .net/~widelands -dev/widelands/ unify-program- parsers/ +merge/ 367936 in order not to get merge conflicts.