Merge lp:~widelands-dev/widelands/rework-resource-indicators into lp:widelands
- rework-resource-indicators
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 8833 | ||||
Proposed branch: | lp:~widelands-dev/widelands/rework-resource-indicators | ||||
Merge into: | lp:widelands | ||||
Diff against target: |
2608 lines (+1415/-524) 48 files modified
data/campaigns/bar01.wmf/scripting/texts.lua (+10/-10) data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua (+1/-1) data/tribes/atlanteans.lua (+37/-10) data/tribes/barbarians.lua (+35/-10) data/tribes/empire.lua (+35/-10) data/tribes/frisians.lua (+35/-10) data/tribes/immovables/resi/atlanteans/init.lua (+230/-0) data/tribes/immovables/resi/barbarians/init.lua (+221/-0) data/tribes/immovables/resi/empire/init.lua (+221/-0) data/tribes/immovables/resi/frisians/init.lua (+230/-0) data/tribes/immovables/resi/helptexts/coal_1.lua (+17/-0) data/tribes/immovables/resi/helptexts/coal_2.lua (+17/-0) data/tribes/immovables/resi/helptexts/gold_1.lua (+17/-0) data/tribes/immovables/resi/helptexts/gold_2.lua (+17/-0) data/tribes/immovables/resi/helptexts/iron_1.lua (+17/-0) data/tribes/immovables/resi/helptexts/iron_2.lua (+17/-0) data/tribes/immovables/resi/helptexts/none.lua (+14/-0) data/tribes/immovables/resi/helptexts/stones_1.lua (+32/-0) data/tribes/immovables/resi/helptexts/stones_2.lua (+32/-0) data/tribes/immovables/resi/helptexts/water.lua (+14/-0) data/tribes/immovables/resi_coal1/helptexts.lua (+0/-17) data/tribes/immovables/resi_coal1/init.lua (+0/-23) data/tribes/immovables/resi_coal2/helptexts.lua (+0/-17) data/tribes/immovables/resi_coal2/init.lua (+0/-23) data/tribes/immovables/resi_gold1/helptexts.lua (+0/-17) data/tribes/immovables/resi_gold1/init.lua (+0/-23) data/tribes/immovables/resi_gold2/helptexts.lua (+0/-17) data/tribes/immovables/resi_gold2/init.lua (+0/-23) data/tribes/immovables/resi_iron1/helptexts.lua (+0/-17) data/tribes/immovables/resi_iron1/init.lua (+0/-23) data/tribes/immovables/resi_iron2/helptexts.lua (+0/-17) data/tribes/immovables/resi_iron2/init.lua (+0/-23) data/tribes/immovables/resi_none/helptexts.lua (+0/-14) data/tribes/immovables/resi_none/init.lua (+0/-23) data/tribes/immovables/resi_stones1/helptexts.lua (+0/-27) data/tribes/immovables/resi_stones1/init.lua (+0/-23) data/tribes/immovables/resi_stones2/helptexts.lua (+0/-27) data/tribes/immovables/resi_stones2/init.lua (+0/-23) data/tribes/immovables/resi_water1/helptexts.lua (+0/-14) data/tribes/immovables/resi_water1/init.lua (+0/-23) data/tribes/init.lua (+4/-10) data/tribes/scripting/help/building_help.lua (+15/-8) src/logic/editor_game_base.cc (+15/-0) src/logic/map_objects/tribes/tribe_descr.cc (+46/-35) src/logic/map_objects/tribes/tribe_descr.h (+12/-0) src/map_io/tribes_legacy_lookup_table.cc (+49/-6) src/scripting/lua_map.cc (+24/-0) src/scripting/lua_map.h (+1/-0) |
||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands/rework-resource-indicators | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Benedikt Straub | Needs Resubmitting | ||
Review via email: mp+353996@code.launchpad.net |
Commit message
Removed name and amount restrictions for resource indicators. Created a different set of resi graphics for each tribe.
Description of the change
bunnybot (widelandsofficial) wrote : | # |
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 3858. State: passed. Details: https:/
Appveyor build 3656. State: failed. Details: https:/
GunChleoc (gunchleoc) wrote : | # |
I have done some in-game testing now - the code is almost ready, but still needs some tweaking. I'll add my comments for the graphics to the bug.
Code review of the C++ bits to follow.
Barbarian scenario 1 is fixed correctly, but the indicators are huge. They are also huge in the Encyclopedia. Please make them to scale - we can have bigger ones once we have mipmaps, which are pretty much ready but targeted for Build 21. https:/
I have fixed the seafaring tutorial.
In-game help for mines is broken. I have fixed it for the Atlanteans, but the Barbarians don't follow the naming scheme. We can bzr mv the pictures, but I think the better solution would be to get the immovables by name and then get their representative_
Please rename the "png" folder to "pics" for consistency and fix the scripts accordingly. May sound like nitpicking, but it does make the file structure easier to navigate ;)
GunChleoc (gunchleoc) wrote : | # |
Code review on the diff done - see comments.
Benedikt Straub (nordfriese) wrote : | # |
Implemented most of your comments, and changed the graphics. Didn´t touch the atlantean images yet, will do so now.
I disagree about hardcoding the none-resi as "none". Hardcoded name restrictions are always a bad thing; it should be possible for a future modder to create a new resource named "none" if they want. Better not to have any hardcoded names and use the only string that makes no sense at all as a resource name, "".
Benedikt Straub (nordfriese) wrote : | # |
Remaining graphics changed. Please test again.
GunChleoc (gunchleoc) wrote : | # |
For fixing the help, add definitions for the icon to the init.lua, like this:
icon = dirname .. "coal.png",
You can then reference it via
immovable_
Maybe we should use the same trick in the Barbarian scenario too, that will make it more resistant against changes in the implementation details.
Benedikt Straub (nordfriese) wrote : | # |
OK, refactored the building help so it now queries the highest resi for the given resource from the given TribeDescr and uses its representative_
There was no need to define an icon, as representative_
GunChleoc (gunchleoc) wrote : | # |
Code looks good to me - I have removed the iterators and pushed a commit.
- Barbarian indicators are good.
- Empire: I still have a bit of difficulty seeing the difference between no resources and stones. Maybe give them a bevel or something? Or give the marble a bit of color. The Arena's color might work better.
- Atlanteans: I still can't see the indicators for stones on a grey mountain. They need brighter colors overall. Lay the borders on thick.
- Frisians are good now
GunChleoc (gunchleoc) wrote : | # |
I like the design for empire, but we still need more contrast. Make the colors pop, including the line for the "no resources" indicator - I can hardly see that it's there, and people who have trouble seeing contrasts will not see that it's there at all ;)
Benedikt Straub (nordfriese) wrote : | # |
Uploaded new graphics for empire and atlantean resis. How about these?
GunChleoc (gunchleoc) wrote : | # |
I have made some quick and dirty adjustments in Gimp for some Empire resis so you see what I mean. The increased saturation makes it possible to see them without strain, but they will need to be done properly in Blender and also more tweaks for color balancing so that they will look harmonious.
I think the Atlantean colors are OK now. I am having trouble seeing the "none" indicators though, and I couldn't make it better. Maybe basing the poles off the flags' poles will work better?
I think we should also give this branch to the forum community for testing before we merge.
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 3912. State: passed. Details: https:/
Appveyor build 3710. State: success. Details: https:/
Benedikt Straub (nordfriese) wrote : | # |
I can´t reproduce these saturation improvements in Blender well enough, so I used GIMP to edit my renders now. Also gave the atlanteans a new none resi that is better visible because it´s animated.
GunChleoc (gunchleoc) wrote : | # |
We're getting there :)
I still have trouble seeing the differences between little stone and lots of stone for the Empire. Maybe make the dark frame around the inner color a bit wider?
The Atlantean "none" is well visible now, but since it has more cloth than the others, it implies that it has lots and lost of something... maybe give it some ropes without cloth, as if they got ready to hang a cloth for the resources, but there was nothing there? Or a really thin horizontal band of cloth.
Benedikt Straub (nordfriese) wrote : | # |
And another attempt ;)
GunChleoc (gunchleoc) wrote : | # |
Empire is good now :)
Atlantean "none" still signals to me that there is something important there - it's visually too busy. Try just 1 strip of cloth in the middle and remove the 3rd pole?
Benedikt Straub (nordfriese) wrote : | # |
I´ve lost count the how-many-th version this is ;)
I find only one strip of cloth hard to see, unless it´s very broad. How about these new crossed silk strips?
GunChleoc (gunchleoc) wrote : | # |
Yes, we have a winner :D
@bunnybot merge
> I´ve lost count the how-many-th version this is ;)
Me too... I find code easier to review *lol*
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 3963. State: failed. Details: https:/
Appveyor build 3761. State: success. Details: https:/
bunnybot (widelandsofficial) wrote : | # |
Refusing to merge, since Travis is not green. Use @bunnybot merge force for merging anyways.
Travis build 3963. State: failed. Details: https:/
bunnybot (widelandsofficial) wrote : | # |
Continuous integration builds have changed state:
Travis build 3968. State: passed. Details: https:/
Appveyor build 3766. State: success. Details: https:/
GunChleoc (gunchleoc) wrote : | # |
@bunnybot merge
Preview Diff
1 | === modified file 'data/campaigns/bar01.wmf/scripting/texts.lua' | |||
2 | --- data/campaigns/bar01.wmf/scripting/texts.lua 2018-08-13 16:44:58 +0000 | |||
3 | +++ data/campaigns/bar01.wmf/scripting/texts.lua 2018-09-14 06:31:21 +0000 | |||
4 | @@ -43,16 +43,16 @@ | |||
5 | 43 | body = objective_text(_"Build coal and iron mines", | 43 | body = objective_text(_"Build coal and iron mines", |
6 | 44 | li(_"Build a coal mine and an iron mine.") .. | 44 | li(_"Build a coal mine and an iron mine.") .. |
7 | 45 | li_arrow(_"To do so, place a flag up on the mountain’s flank to the east (on mountain terrain though, not mountain meadow). When you click on the new flag, you can send geologists there. Because the flag is on a mountain, the geologists will search for ores; otherwise, they would search for water. Then build a mine for both kinds of resources that they will find, choosing the appropriate mine to be built:") .. | 45 | li_arrow(_"To do so, place a flag up on the mountain’s flank to the east (on mountain terrain though, not mountain meadow). When you click on the new flag, you can send geologists there. Because the flag is on a mountain, the geologists will search for ores; otherwise, they would search for water. Then build a mine for both kinds of resources that they will find, choosing the appropriate mine to be built:") .. |
18 | 46 | li_image("tribes/immovables/resi_coal1/idle_00.png", _"a bit of coal") .. | 46 | li_image(wl.Game():get_immovable_description("barbarians_resi_coal_1").representative_image, _"a bit of coal") .. |
19 | 47 | li_image("tribes/immovables/resi_coal2/idle_00.png", _"a lot of coal") .. | 47 | li_image(wl.Game():get_immovable_description("barbarians_resi_coal_2").representative_image, _"a lot of coal") .. |
20 | 48 | li_image("tribes/immovables/resi_iron1/idle_00.png", _"a bit of iron") .. | 48 | li_image(wl.Game():get_immovable_description("barbarians_resi_iron_1").representative_image, _"a bit of iron") .. |
21 | 49 | li_image("tribes/immovables/resi_iron2/idle_00.png", _"a lot of iron") .. | 49 | li_image(wl.Game():get_immovable_description("barbarians_resi_iron_2").representative_image, _"a lot of iron") .. |
22 | 50 | li_image("tribes/immovables/resi_gold1/idle_00.png", _"a bit of gold") .. | 50 | li_image(wl.Game():get_immovable_description("barbarians_resi_gold_1").representative_image, _"a bit of gold") .. |
23 | 51 | li_image("tribes/immovables/resi_gold2/idle_00.png", _"a lot of gold") .. | 51 | li_image(wl.Game():get_immovable_description("barbarians_resi_gold_2").representative_image, _"a lot of gold") .. |
24 | 52 | li_image("tribes/immovables/resi_stones1/idle_00.png", _"a bit of granite") .. | 52 | li_image(wl.Game():get_immovable_description("barbarians_resi_stones_1").representative_image, _"a bit of granite") .. |
25 | 53 | li_image("tribes/immovables/resi_stones2/idle_00.png", _"a lot of granite") .. | 53 | li_image(wl.Game():get_immovable_description("barbarians_resi_stones_2").representative_image, _"a lot of granite") .. |
26 | 54 | li_image("tribes/immovables/resi_water1/idle_00.png", _"water") .. | 54 | li_image(wl.Game():get_immovable_description("barbarians_resi_water").representative_image, _"water") .. |
27 | 55 | li_image("tribes/immovables/resi_none/idle_00.png", _"nothing was found here") .. | 55 | li_image(wl.Game():get_immovable_description("barbarians_resi_none").representative_image, _"nothing was found here") .. |
28 | 56 | p(_[[Mines can only be built on mountain terrain. Suitable places for mines are displayed as orange mine symbols.]])) | 56 | p(_[[Mines can only be built on mountain terrain. Suitable places for mines are displayed as orange mine symbols.]])) |
29 | 57 | } | 57 | } |
30 | 58 | 58 | ||
31 | 59 | 59 | ||
32 | === modified file 'data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua' | |||
33 | --- data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua 2017-05-07 10:30:33 +0000 | |||
34 | +++ data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua 2018-09-14 06:31:21 +0000 | |||
35 | @@ -75,7 +75,7 @@ | |||
36 | 75 | local idx = math.random(#fields) | 75 | local idx = math.random(#fields) |
37 | 76 | f = fields[idx] | 76 | f = fields[idx] |
38 | 77 | if ((f.resource == "iron") and not f.immovable) then | 77 | if ((f.resource == "iron") and not f.immovable) then |
40 | 78 | map:place_immovable("resi_iron2",f,"tribes") | 78 | map:place_immovable("atlanteans_resi_iron_2",f,"tribes") |
41 | 79 | successful = true | 79 | successful = true |
42 | 80 | end | 80 | end |
43 | 81 | table.remove(fields,idx) | 81 | table.remove(fields,idx) |
44 | 82 | 82 | ||
45 | === modified file 'data/images/wui/overlays/mine.png' | |||
46 | 83 | Binary files data/images/wui/overlays/mine.png 2014-12-03 20:13:06 +0000 and data/images/wui/overlays/mine.png 2018-09-14 06:31:21 +0000 differ | 83 | Binary files data/images/wui/overlays/mine.png 2014-12-03 20:13:06 +0000 and data/images/wui/overlays/mine.png 2018-09-14 06:31:21 +0000 differ |
47 | === modified file 'data/tribes/atlanteans.lua' | |||
48 | --- data/tribes/atlanteans.lua 2017-11-23 09:13:06 +0000 | |||
49 | +++ data/tribes/atlanteans.lua 2018-09-14 06:31:21 +0000 | |||
50 | @@ -22,6 +22,8 @@ | |||
51 | 22 | -- | 22 | -- |
52 | 23 | -- **roads**: The file paths for the tribes' road textures in 2 subtables ``busy`` and ``normal`` | 23 | -- **roads**: The file paths for the tribes' road textures in 2 subtables ``busy`` and ``normal`` |
53 | 24 | -- | 24 | -- |
54 | 25 | -- **resource_indicators**: The names for the resource indicators. This table contains a subtable for each resource name plus a subtable named "" for no resources. Each subtable is an array, in which the index of each entry is the highest amount of resources the indicator may indicate. | ||
55 | 26 | -- | ||
56 | 25 | -- **wares_order**: This defines all the wares that this tribe uses and their display order in the user interface. Each subtable defines a column in the user interface. | 27 | -- **wares_order**: This defines all the wares that this tribe uses and their display order in the user interface. Each subtable defines a column in the user interface. |
57 | 26 | -- | 28 | -- |
58 | 27 | -- **workers_order**: This defines all the workers that this tribe uses and their display order in the user interface. Each subtable defines a column in the user interface. | 29 | -- **workers_order**: This defines all the workers that this tribe uses and their display order in the user interface. Each subtable defines a column in the user interface. |
59 | @@ -73,6 +75,31 @@ | |||
60 | 73 | }, | 75 | }, |
61 | 74 | }, | 76 | }, |
62 | 75 | 77 | ||
63 | 78 | resource_indicators = { | ||
64 | 79 | [""] = { | ||
65 | 80 | [0] = "atlanteans_resi_none", | ||
66 | 81 | }, | ||
67 | 82 | coal = { | ||
68 | 83 | [10] = "atlanteans_resi_coal_1", | ||
69 | 84 | [20] = "atlanteans_resi_coal_2", | ||
70 | 85 | }, | ||
71 | 86 | iron = { | ||
72 | 87 | [10] = "atlanteans_resi_iron_1", | ||
73 | 88 | [20] = "atlanteans_resi_iron_2", | ||
74 | 89 | }, | ||
75 | 90 | gold = { | ||
76 | 91 | [10] = "atlanteans_resi_gold_1", | ||
77 | 92 | [20] = "atlanteans_resi_gold_2", | ||
78 | 93 | }, | ||
79 | 94 | stones = { | ||
80 | 95 | [10] = "atlanteans_resi_stones_1", | ||
81 | 96 | [20] = "atlanteans_resi_stones_2", | ||
82 | 97 | }, | ||
83 | 98 | water = { | ||
84 | 99 | [100] = "atlanteans_resi_water", | ||
85 | 100 | }, | ||
86 | 101 | }, | ||
87 | 102 | |||
88 | 76 | -- Wares positions in wares windows. | 103 | -- Wares positions in wares windows. |
89 | 77 | -- This also gives us the information which wares the tribe uses. | 104 | -- This also gives us the information which wares the tribe uses. |
90 | 78 | -- Each subtable is a column in the wares windows. | 105 | -- Each subtable is a column in the wares windows. |
91 | @@ -205,16 +232,16 @@ | |||
92 | 205 | "cornfield_ripe", | 232 | "cornfield_ripe", |
93 | 206 | "cornfield_harvested", | 233 | "cornfield_harvested", |
94 | 207 | "destroyed_building", | 234 | "destroyed_building", |
105 | 208 | "resi_coal1", | 235 | "atlanteans_resi_none", |
106 | 209 | "resi_coal2", | 236 | "atlanteans_resi_water", |
107 | 210 | "resi_gold1", | 237 | "atlanteans_resi_coal_1", |
108 | 211 | "resi_gold2", | 238 | "atlanteans_resi_iron_1", |
109 | 212 | "resi_iron1", | 239 | "atlanteans_resi_gold_1", |
110 | 213 | "resi_iron2", | 240 | "atlanteans_resi_stones_1", |
111 | 214 | "resi_none", | 241 | "atlanteans_resi_coal_2", |
112 | 215 | "resi_water1", | 242 | "atlanteans_resi_iron_2", |
113 | 216 | "resi_stones1", | 243 | "atlanteans_resi_gold_2", |
114 | 217 | "resi_stones2", | 244 | "atlanteans_resi_stones_2", |
115 | 218 | "atlanteans_shipconstruction", | 245 | "atlanteans_shipconstruction", |
116 | 219 | }, | 246 | }, |
117 | 220 | 247 | ||
118 | 221 | 248 | ||
119 | === modified file 'data/tribes/barbarians.lua' | |||
120 | --- data/tribes/barbarians.lua 2018-07-15 10:32:12 +0000 | |||
121 | +++ data/tribes/barbarians.lua 2018-09-14 06:31:21 +0000 | |||
122 | @@ -26,6 +26,31 @@ | |||
123 | 26 | }, | 26 | }, |
124 | 27 | }, | 27 | }, |
125 | 28 | 28 | ||
126 | 29 | resource_indicators = { | ||
127 | 30 | [""] = { | ||
128 | 31 | [0] = "barbarians_resi_none", | ||
129 | 32 | }, | ||
130 | 33 | coal = { | ||
131 | 34 | [10] = "barbarians_resi_coal_1", | ||
132 | 35 | [20] = "barbarians_resi_coal_2", | ||
133 | 36 | }, | ||
134 | 37 | iron = { | ||
135 | 38 | [10] = "barbarians_resi_iron_1", | ||
136 | 39 | [20] = "barbarians_resi_iron_2", | ||
137 | 40 | }, | ||
138 | 41 | gold = { | ||
139 | 42 | [10] = "barbarians_resi_gold_1", | ||
140 | 43 | [20] = "barbarians_resi_gold_2", | ||
141 | 44 | }, | ||
142 | 45 | stones = { | ||
143 | 46 | [10] = "barbarians_resi_stones_1", | ||
144 | 47 | [20] = "barbarians_resi_stones_2", | ||
145 | 48 | }, | ||
146 | 49 | water = { | ||
147 | 50 | [100] = "barbarians_resi_water", | ||
148 | 51 | }, | ||
149 | 52 | }, | ||
150 | 53 | |||
151 | 29 | -- Wares positions in wares windows. | 54 | -- Wares positions in wares windows. |
152 | 30 | -- This also gives us the information which wares the tribe uses. | 55 | -- This also gives us the information which wares the tribe uses. |
153 | 31 | -- Each subtable is a column in the wares windows. | 56 | -- Each subtable is a column in the wares windows. |
154 | @@ -155,16 +180,16 @@ | |||
155 | 155 | "reed_small", | 180 | "reed_small", |
156 | 156 | "reed_medium", | 181 | "reed_medium", |
157 | 157 | "reed_ripe", | 182 | "reed_ripe", |
168 | 158 | "resi_coal1", | 183 | "barbarians_resi_none", |
169 | 159 | "resi_coal2", | 184 | "barbarians_resi_water", |
170 | 160 | "resi_gold1", | 185 | "barbarians_resi_coal_1", |
171 | 161 | "resi_gold2", | 186 | "barbarians_resi_iron_1", |
172 | 162 | "resi_iron1", | 187 | "barbarians_resi_gold_1", |
173 | 163 | "resi_iron2", | 188 | "barbarians_resi_stones_1", |
174 | 164 | "resi_none", | 189 | "barbarians_resi_coal_2", |
175 | 165 | "resi_water1", | 190 | "barbarians_resi_iron_2", |
176 | 166 | "resi_stones1", | 191 | "barbarians_resi_gold_2", |
177 | 167 | "resi_stones2", | 192 | "barbarians_resi_stones_2", |
178 | 168 | "barbarians_shipconstruction", | 193 | "barbarians_shipconstruction", |
179 | 169 | }, | 194 | }, |
180 | 170 | 195 | ||
181 | 171 | 196 | ||
182 | === modified file 'data/tribes/empire.lua' | |||
183 | --- data/tribes/empire.lua 2017-11-25 23:32:30 +0000 | |||
184 | +++ data/tribes/empire.lua 2018-09-14 06:31:21 +0000 | |||
185 | @@ -29,6 +29,31 @@ | |||
186 | 29 | }, | 29 | }, |
187 | 30 | }, | 30 | }, |
188 | 31 | 31 | ||
189 | 32 | resource_indicators = { | ||
190 | 33 | [""] = { | ||
191 | 34 | [0] = "empire_resi_none", | ||
192 | 35 | }, | ||
193 | 36 | coal = { | ||
194 | 37 | [10] = "empire_resi_coal_1", | ||
195 | 38 | [20] = "empire_resi_coal_2", | ||
196 | 39 | }, | ||
197 | 40 | iron = { | ||
198 | 41 | [10] = "empire_resi_iron_1", | ||
199 | 42 | [20] = "empire_resi_iron_2", | ||
200 | 43 | }, | ||
201 | 44 | gold = { | ||
202 | 45 | [10] = "empire_resi_gold_1", | ||
203 | 46 | [20] = "empire_resi_gold_2", | ||
204 | 47 | }, | ||
205 | 48 | stones = { | ||
206 | 49 | [10] = "empire_resi_stones_1", | ||
207 | 50 | [20] = "empire_resi_stones_2", | ||
208 | 51 | }, | ||
209 | 52 | water = { | ||
210 | 53 | [100] = "empire_resi_water", | ||
211 | 54 | }, | ||
212 | 55 | }, | ||
213 | 56 | |||
214 | 32 | -- Wares positions in wares windows. | 57 | -- Wares positions in wares windows. |
215 | 33 | -- This also gives us the information which wares the tribe uses. | 58 | -- This also gives us the information which wares the tribe uses. |
216 | 34 | -- Each subtable is a column in the wares windows. | 59 | -- Each subtable is a column in the wares windows. |
217 | @@ -163,16 +188,16 @@ | |||
218 | 163 | "grapevine_small", | 188 | "grapevine_small", |
219 | 164 | "grapevine_medium", | 189 | "grapevine_medium", |
220 | 165 | "grapevine_ripe", | 190 | "grapevine_ripe", |
231 | 166 | "resi_coal1", | 191 | "empire_resi_none", |
232 | 167 | "resi_coal2", | 192 | "empire_resi_water", |
233 | 168 | "resi_gold1", | 193 | "empire_resi_coal_1", |
234 | 169 | "resi_gold2", | 194 | "empire_resi_iron_1", |
235 | 170 | "resi_iron1", | 195 | "empire_resi_gold_1", |
236 | 171 | "resi_iron2", | 196 | "empire_resi_stones_1", |
237 | 172 | "resi_none", | 197 | "empire_resi_coal_2", |
238 | 173 | "resi_water1", | 198 | "empire_resi_iron_2", |
239 | 174 | "resi_stones1", | 199 | "empire_resi_gold_2", |
240 | 175 | "resi_stones2", | 200 | "empire_resi_stones_2", |
241 | 176 | "empire_shipconstruction", | 201 | "empire_shipconstruction", |
242 | 177 | }, | 202 | }, |
243 | 178 | 203 | ||
244 | 179 | 204 | ||
245 | === modified file 'data/tribes/frisians.lua' | |||
246 | --- data/tribes/frisians.lua 2018-05-17 11:02:45 +0000 | |||
247 | +++ data/tribes/frisians.lua 2018-09-14 06:31:21 +0000 | |||
248 | @@ -27,6 +27,31 @@ | |||
249 | 27 | }, | 27 | }, |
250 | 28 | }, | 28 | }, |
251 | 29 | 29 | ||
252 | 30 | resource_indicators = { | ||
253 | 31 | [""] = { | ||
254 | 32 | [0] = "frisians_resi_none", | ||
255 | 33 | }, | ||
256 | 34 | coal = { | ||
257 | 35 | [10] = "frisians_resi_coal_1", | ||
258 | 36 | [20] = "frisians_resi_coal_2", | ||
259 | 37 | }, | ||
260 | 38 | iron = { | ||
261 | 39 | [10] = "frisians_resi_iron_1", | ||
262 | 40 | [20] = "frisians_resi_iron_2", | ||
263 | 41 | }, | ||
264 | 42 | gold = { | ||
265 | 43 | [10] = "frisians_resi_gold_1", | ||
266 | 44 | [20] = "frisians_resi_gold_2", | ||
267 | 45 | }, | ||
268 | 46 | stones = { | ||
269 | 47 | [10] = "frisians_resi_stones_1", | ||
270 | 48 | [20] = "frisians_resi_stones_2", | ||
271 | 49 | }, | ||
272 | 50 | water = { | ||
273 | 51 | [100] = "frisians_resi_water", | ||
274 | 52 | }, | ||
275 | 53 | }, | ||
276 | 54 | |||
277 | 30 | -- Wares positions in wares windows. | 55 | -- Wares positions in wares windows. |
278 | 31 | -- This also gives us the information which wares the tribe uses. | 56 | -- This also gives us the information which wares the tribe uses. |
279 | 32 | -- Each subtable is a column in the wares windows. | 57 | -- Each subtable is a column in the wares windows. |
280 | @@ -201,16 +226,16 @@ | |||
281 | 201 | "reed_small", | 226 | "reed_small", |
282 | 202 | "reed_medium", | 227 | "reed_medium", |
283 | 203 | "reed_ripe", | 228 | "reed_ripe", |
294 | 204 | "resi_coal1", | 229 | "frisians_resi_none", |
295 | 205 | "resi_coal2", | 230 | "frisians_resi_water", |
296 | 206 | "resi_gold1", | 231 | "frisians_resi_coal_1", |
297 | 207 | "resi_gold2", | 232 | "frisians_resi_iron_1", |
298 | 208 | "resi_iron1", | 233 | "frisians_resi_gold_1", |
299 | 209 | "resi_iron2", | 234 | "frisians_resi_stones_1", |
300 | 210 | "resi_none", | 235 | "frisians_resi_coal_2", |
301 | 211 | "resi_water1", | 236 | "frisians_resi_iron_2", |
302 | 212 | "resi_stones1", | 237 | "frisians_resi_gold_2", |
303 | 213 | "resi_stones2", | 238 | "frisians_resi_stones_2", |
304 | 214 | "frisians_shipconstruction", | 239 | "frisians_shipconstruction", |
305 | 215 | --These non-frisian immovables can be used by bee-keepers | 240 | --These non-frisian immovables can be used by bee-keepers |
306 | 216 | "field_medium", | 241 | "field_medium", |
307 | 217 | 242 | ||
308 | === added directory 'data/tribes/immovables/resi' | |||
309 | === added directory 'data/tribes/immovables/resi/atlanteans' | |||
310 | === added file 'data/tribes/immovables/resi/atlanteans/init.lua' | |||
311 | --- data/tribes/immovables/resi/atlanteans/init.lua 1970-01-01 00:00:00 +0000 | |||
312 | +++ data/tribes/immovables/resi/atlanteans/init.lua 2018-09-14 06:31:21 +0000 | |||
313 | @@ -0,0 +1,230 @@ | |||
314 | 1 | dirname = path.dirname(__file__) | ||
315 | 2 | |||
316 | 3 | tribes:new_immovable_type { | ||
317 | 4 | msgctxt = "immovable", | ||
318 | 5 | name = "atlanteans_resi_none", | ||
319 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
320 | 7 | descname = pgettext("immovable", "Resources: None"), | ||
321 | 8 | helptext_script = dirname .. "../helptexts/none.lua", | ||
322 | 9 | attributes = { "resi" }, | ||
323 | 10 | programs = { | ||
324 | 11 | program = { | ||
325 | 12 | "animate=idle 600000", | ||
326 | 13 | "remove=" | ||
327 | 14 | } | ||
328 | 15 | }, | ||
329 | 16 | |||
330 | 17 | animations = { | ||
331 | 18 | idle = { | ||
332 | 19 | pictures = path.list_files(dirname .. "pics/none_?.png"), | ||
333 | 20 | hotspot = {10, 36}, | ||
334 | 21 | }, | ||
335 | 22 | } | ||
336 | 23 | } | ||
337 | 24 | |||
338 | 25 | tribes:new_immovable_type { | ||
339 | 26 | msgctxt = "immovable", | ||
340 | 27 | name = "atlanteans_resi_water", | ||
341 | 28 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
342 | 29 | descname = pgettext("immovable", "Resources: Water Vein"), | ||
343 | 30 | helptext_script = dirname .. "../helptexts/water.lua", | ||
344 | 31 | attributes = { "resi" }, | ||
345 | 32 | programs = { | ||
346 | 33 | program = { | ||
347 | 34 | "animate=idle 600000", | ||
348 | 35 | "remove=" | ||
349 | 36 | } | ||
350 | 37 | }, | ||
351 | 38 | |||
352 | 39 | animations = { | ||
353 | 40 | idle = { | ||
354 | 41 | pictures = path.list_files(dirname .. "pics/water_?.png"), | ||
355 | 42 | hotspot = {10, 36}, | ||
356 | 43 | fps = 4, | ||
357 | 44 | }, | ||
358 | 45 | } | ||
359 | 46 | } | ||
360 | 47 | |||
361 | 48 | tribes:new_immovable_type { | ||
362 | 49 | msgctxt = "immovable", | ||
363 | 50 | name = "atlanteans_resi_coal_1", | ||
364 | 51 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
365 | 52 | descname = pgettext("immovable", "Resources: Coal Vein"), | ||
366 | 53 | helptext_script = dirname .. "../helptexts/coal_1.lua", | ||
367 | 54 | attributes = { "resi" }, | ||
368 | 55 | programs = { | ||
369 | 56 | program = { | ||
370 | 57 | "animate=idle 600000", | ||
371 | 58 | "remove=" | ||
372 | 59 | } | ||
373 | 60 | }, | ||
374 | 61 | |||
375 | 62 | animations = { | ||
376 | 63 | idle = { | ||
377 | 64 | pictures = path.list_files(dirname .. "pics/coal_1_?.png"), | ||
378 | 65 | hotspot = {10, 36}, | ||
379 | 66 | fps = 4, | ||
380 | 67 | }, | ||
381 | 68 | } | ||
382 | 69 | } | ||
383 | 70 | |||
384 | 71 | tribes:new_immovable_type { | ||
385 | 72 | msgctxt = "immovable", | ||
386 | 73 | name = "atlanteans_resi_gold_1", | ||
387 | 74 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
388 | 75 | descname = pgettext("immovable", "Resources: Gold Vein"), | ||
389 | 76 | helptext_script = dirname .. "../helptexts/gold_1.lua", | ||
390 | 77 | attributes = { "resi" }, | ||
391 | 78 | programs = { | ||
392 | 79 | program = { | ||
393 | 80 | "animate=idle 600000", | ||
394 | 81 | "remove=" | ||
395 | 82 | } | ||
396 | 83 | }, | ||
397 | 84 | |||
398 | 85 | animations = { | ||
399 | 86 | idle = { | ||
400 | 87 | pictures = path.list_files(dirname .. "pics/gold_1_?.png"), | ||
401 | 88 | hotspot = {10, 36}, | ||
402 | 89 | fps = 4, | ||
403 | 90 | }, | ||
404 | 91 | } | ||
405 | 92 | } | ||
406 | 93 | |||
407 | 94 | tribes:new_immovable_type { | ||
408 | 95 | msgctxt = "immovable", | ||
409 | 96 | name = "atlanteans_resi_iron_1", | ||
410 | 97 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
411 | 98 | descname = pgettext("immovable", "Resources: Iron Vein"), | ||
412 | 99 | helptext_script = dirname .. "../helptexts/iron_1.lua", | ||
413 | 100 | attributes = { "resi" }, | ||
414 | 101 | programs = { | ||
415 | 102 | program = { | ||
416 | 103 | "animate=idle 600000", | ||
417 | 104 | "remove=" | ||
418 | 105 | } | ||
419 | 106 | }, | ||
420 | 107 | |||
421 | 108 | animations = { | ||
422 | 109 | idle = { | ||
423 | 110 | pictures = path.list_files(dirname .. "pics/iron_1_?.png"), | ||
424 | 111 | hotspot = {10, 36}, | ||
425 | 112 | fps = 4, | ||
426 | 113 | }, | ||
427 | 114 | } | ||
428 | 115 | } | ||
429 | 116 | |||
430 | 117 | tribes:new_immovable_type { | ||
431 | 118 | msgctxt = "immovable", | ||
432 | 119 | name = "atlanteans_resi_stones_1", | ||
433 | 120 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
434 | 121 | descname = pgettext("immovable", "Resources: Some Stones"), | ||
435 | 122 | helptext_script = dirname .. "../helptexts/stones_1.lua", | ||
436 | 123 | attributes = { "resi" }, | ||
437 | 124 | programs = { | ||
438 | 125 | program = { | ||
439 | 126 | "animate=idle 600000", | ||
440 | 127 | "remove=" | ||
441 | 128 | } | ||
442 | 129 | }, | ||
443 | 130 | |||
444 | 131 | animations = { | ||
445 | 132 | idle = { | ||
446 | 133 | pictures = path.list_files(dirname .. "pics/stones_1_?.png"), | ||
447 | 134 | hotspot = {10, 36}, | ||
448 | 135 | fps = 4, | ||
449 | 136 | }, | ||
450 | 137 | } | ||
451 | 138 | } | ||
452 | 139 | |||
453 | 140 | tribes:new_immovable_type { | ||
454 | 141 | msgctxt = "immovable", | ||
455 | 142 | name = "atlanteans_resi_coal_2", | ||
456 | 143 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
457 | 144 | descname = pgettext("immovable", "Resources: Main Coal Vein"), | ||
458 | 145 | helptext_script = dirname .. "../helptexts/coal_2.lua", | ||
459 | 146 | attributes = { "resi" }, | ||
460 | 147 | programs = { | ||
461 | 148 | program = { | ||
462 | 149 | "animate=idle 600000", | ||
463 | 150 | "remove=" | ||
464 | 151 | } | ||
465 | 152 | }, | ||
466 | 153 | |||
467 | 154 | animations = { | ||
468 | 155 | idle = { | ||
469 | 156 | pictures = path.list_files(dirname .. "pics/coal_2_?.png"), | ||
470 | 157 | hotspot = {10, 36}, | ||
471 | 158 | fps = 4, | ||
472 | 159 | }, | ||
473 | 160 | } | ||
474 | 161 | } | ||
475 | 162 | |||
476 | 163 | tribes:new_immovable_type { | ||
477 | 164 | msgctxt = "immovable", | ||
478 | 165 | name = "atlanteans_resi_gold_2", | ||
479 | 166 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
480 | 167 | descname = pgettext("immovable", "Resources: Main Gold Vein"), | ||
481 | 168 | helptext_script = dirname .. "../helptexts/gold_2.lua", | ||
482 | 169 | attributes = { "resi" }, | ||
483 | 170 | programs = { | ||
484 | 171 | program = { | ||
485 | 172 | "animate=idle 600000", | ||
486 | 173 | "remove=" | ||
487 | 174 | } | ||
488 | 175 | }, | ||
489 | 176 | |||
490 | 177 | animations = { | ||
491 | 178 | idle = { | ||
492 | 179 | pictures = path.list_files(dirname .. "pics/gold_2_?.png"), | ||
493 | 180 | hotspot = {10, 36}, | ||
494 | 181 | fps = 4, | ||
495 | 182 | }, | ||
496 | 183 | } | ||
497 | 184 | } | ||
498 | 185 | |||
499 | 186 | tribes:new_immovable_type { | ||
500 | 187 | msgctxt = "immovable", | ||
501 | 188 | name = "atlanteans_resi_iron_2", | ||
502 | 189 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
503 | 190 | descname = pgettext("immovable", "Resources: Main Iron Vein"), | ||
504 | 191 | helptext_script = dirname .. "../helptexts/iron_2.lua", | ||
505 | 192 | attributes = { "resi" }, | ||
506 | 193 | programs = { | ||
507 | 194 | program = { | ||
508 | 195 | "animate=idle 600000", | ||
509 | 196 | "remove=" | ||
510 | 197 | } | ||
511 | 198 | }, | ||
512 | 199 | |||
513 | 200 | animations = { | ||
514 | 201 | idle = { | ||
515 | 202 | pictures = path.list_files(dirname .. "pics/iron_2_?.png"), | ||
516 | 203 | hotspot = {10, 36}, | ||
517 | 204 | fps = 4, | ||
518 | 205 | }, | ||
519 | 206 | } | ||
520 | 207 | } | ||
521 | 208 | |||
522 | 209 | tribes:new_immovable_type { | ||
523 | 210 | msgctxt = "immovable", | ||
524 | 211 | name = "atlanteans_resi_stones_2", | ||
525 | 212 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
526 | 213 | descname = pgettext("immovable", "Resources: A Lot of Stones"), | ||
527 | 214 | helptext_script = dirname .. "../helptexts/stones_2.lua", | ||
528 | 215 | attributes = { "resi" }, | ||
529 | 216 | programs = { | ||
530 | 217 | program = { | ||
531 | 218 | "animate=idle 600000", | ||
532 | 219 | "remove=" | ||
533 | 220 | } | ||
534 | 221 | }, | ||
535 | 222 | |||
536 | 223 | animations = { | ||
537 | 224 | idle = { | ||
538 | 225 | pictures = path.list_files(dirname .. "pics/stones_2_?.png"), | ||
539 | 226 | hotspot = {10, 36}, | ||
540 | 227 | fps = 4, | ||
541 | 228 | }, | ||
542 | 229 | } | ||
543 | 230 | } | ||
544 | 0 | 231 | ||
545 | === added directory 'data/tribes/immovables/resi/atlanteans/pics' | |||
546 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_0.png' | |||
547 | 1 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_0.png 2018-09-14 06:31:21 +0000 differ | 232 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_0.png 2018-09-14 06:31:21 +0000 differ |
548 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_1.png' | |||
549 | 2 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_1.png 2018-09-14 06:31:21 +0000 differ | 233 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_1.png 2018-09-14 06:31:21 +0000 differ |
550 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_2.png' | |||
551 | 3 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_2.png 2018-09-14 06:31:21 +0000 differ | 234 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_2.png 2018-09-14 06:31:21 +0000 differ |
552 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_3.png' | |||
553 | 4 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_3.png 2018-09-14 06:31:21 +0000 differ | 235 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_1_3.png 2018-09-14 06:31:21 +0000 differ |
554 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_0.png' | |||
555 | 5 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_0.png 2018-09-14 06:31:21 +0000 differ | 236 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_0.png 2018-09-14 06:31:21 +0000 differ |
556 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_1.png' | |||
557 | 6 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_1.png 2018-09-14 06:31:21 +0000 differ | 237 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_1.png 2018-09-14 06:31:21 +0000 differ |
558 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_2.png' | |||
559 | 7 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_2.png 2018-09-14 06:31:21 +0000 differ | 238 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_2.png 2018-09-14 06:31:21 +0000 differ |
560 | === added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_3.png' | |||
561 | 8 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_3.png 2018-09-14 06:31:21 +0000 differ | 239 | Binary files data/tribes/immovables/resi/atlanteans/pics/coal_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/coal_2_3.png 2018-09-14 06:31:21 +0000 differ |
562 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_0.png' | |||
563 | 9 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_0.png 2018-09-14 06:31:21 +0000 differ | 240 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_0.png 2018-09-14 06:31:21 +0000 differ |
564 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_1.png' | |||
565 | 10 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_1.png 2018-09-14 06:31:21 +0000 differ | 241 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_1.png 2018-09-14 06:31:21 +0000 differ |
566 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_2.png' | |||
567 | 11 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_2.png 2018-09-14 06:31:21 +0000 differ | 242 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_2.png 2018-09-14 06:31:21 +0000 differ |
568 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_3.png' | |||
569 | 12 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_3.png 2018-09-14 06:31:21 +0000 differ | 243 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_1_3.png 2018-09-14 06:31:21 +0000 differ |
570 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_0.png' | |||
571 | 13 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_0.png 2018-09-14 06:31:21 +0000 differ | 244 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_0.png 2018-09-14 06:31:21 +0000 differ |
572 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_1.png' | |||
573 | 14 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_1.png 2018-09-14 06:31:21 +0000 differ | 245 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_1.png 2018-09-14 06:31:21 +0000 differ |
574 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_2.png' | |||
575 | 15 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_2.png 2018-09-14 06:31:21 +0000 differ | 246 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_2.png 2018-09-14 06:31:21 +0000 differ |
576 | === added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_3.png' | |||
577 | 16 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_3.png 2018-09-14 06:31:21 +0000 differ | 247 | Binary files data/tribes/immovables/resi/atlanteans/pics/gold_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/gold_2_3.png 2018-09-14 06:31:21 +0000 differ |
578 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_0.png' | |||
579 | 17 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_0.png 2018-09-14 06:31:21 +0000 differ | 248 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_0.png 2018-09-14 06:31:21 +0000 differ |
580 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_1.png' | |||
581 | 18 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_1.png 2018-09-14 06:31:21 +0000 differ | 249 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_1.png 2018-09-14 06:31:21 +0000 differ |
582 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_2.png' | |||
583 | 19 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_2.png 2018-09-14 06:31:21 +0000 differ | 250 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_2.png 2018-09-14 06:31:21 +0000 differ |
584 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_3.png' | |||
585 | 20 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_3.png 2018-09-14 06:31:21 +0000 differ | 251 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_1_3.png 2018-09-14 06:31:21 +0000 differ |
586 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_0.png' | |||
587 | 21 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_0.png 2018-09-14 06:31:21 +0000 differ | 252 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_0.png 2018-09-14 06:31:21 +0000 differ |
588 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_1.png' | |||
589 | 22 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_1.png 2018-09-14 06:31:21 +0000 differ | 253 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_1.png 2018-09-14 06:31:21 +0000 differ |
590 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_2.png' | |||
591 | 23 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_2.png 2018-09-14 06:31:21 +0000 differ | 254 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_2.png 2018-09-14 06:31:21 +0000 differ |
592 | === added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_3.png' | |||
593 | 24 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_3.png 2018-09-14 06:31:21 +0000 differ | 255 | Binary files data/tribes/immovables/resi/atlanteans/pics/iron_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/iron_2_3.png 2018-09-14 06:31:21 +0000 differ |
594 | === added file 'data/tribes/immovables/resi/atlanteans/pics/none_0.png' | |||
595 | 25 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_0.png 2018-09-14 06:31:21 +0000 differ | 256 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_0.png 2018-09-14 06:31:21 +0000 differ |
596 | === added file 'data/tribes/immovables/resi/atlanteans/pics/none_1.png' | |||
597 | 26 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_1.png 2018-09-14 06:31:21 +0000 differ | 257 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_1.png 2018-09-14 06:31:21 +0000 differ |
598 | === added file 'data/tribes/immovables/resi/atlanteans/pics/none_2.png' | |||
599 | 27 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_2.png 2018-09-14 06:31:21 +0000 differ | 258 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_2.png 2018-09-14 06:31:21 +0000 differ |
600 | === added file 'data/tribes/immovables/resi/atlanteans/pics/none_3.png' | |||
601 | 28 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_3.png 2018-09-14 06:31:21 +0000 differ | 259 | Binary files data/tribes/immovables/resi/atlanteans/pics/none_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/none_3.png 2018-09-14 06:31:21 +0000 differ |
602 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_0.png' | |||
603 | 29 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_0.png 2018-09-14 06:31:21 +0000 differ | 260 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_0.png 2018-09-14 06:31:21 +0000 differ |
604 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_1.png' | |||
605 | 30 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_1.png 2018-09-14 06:31:21 +0000 differ | 261 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_1.png 2018-09-14 06:31:21 +0000 differ |
606 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_2.png' | |||
607 | 31 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_2.png 2018-09-14 06:31:21 +0000 differ | 262 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_2.png 2018-09-14 06:31:21 +0000 differ |
608 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_3.png' | |||
609 | 32 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_3.png 2018-09-14 06:31:21 +0000 differ | 263 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_1_3.png 2018-09-14 06:31:21 +0000 differ |
610 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_0.png' | |||
611 | 33 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_0.png 2018-09-14 06:31:21 +0000 differ | 264 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_0.png 2018-09-14 06:31:21 +0000 differ |
612 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_1.png' | |||
613 | 34 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_1.png 2018-09-14 06:31:21 +0000 differ | 265 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_1.png 2018-09-14 06:31:21 +0000 differ |
614 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_2.png' | |||
615 | 35 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_2.png 2018-09-14 06:31:21 +0000 differ | 266 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_2.png 2018-09-14 06:31:21 +0000 differ |
616 | === added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_3.png' | |||
617 | 36 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_3.png 2018-09-14 06:31:21 +0000 differ | 267 | Binary files data/tribes/immovables/resi/atlanteans/pics/stones_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/stones_2_3.png 2018-09-14 06:31:21 +0000 differ |
618 | === added file 'data/tribes/immovables/resi/atlanteans/pics/water_0.png' | |||
619 | 37 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_0.png 2018-09-14 06:31:21 +0000 differ | 268 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_0.png 2018-09-14 06:31:21 +0000 differ |
620 | === added file 'data/tribes/immovables/resi/atlanteans/pics/water_1.png' | |||
621 | 38 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_1.png 2018-09-14 06:31:21 +0000 differ | 269 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_1.png 2018-09-14 06:31:21 +0000 differ |
622 | === added file 'data/tribes/immovables/resi/atlanteans/pics/water_2.png' | |||
623 | 39 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_2.png 2018-09-14 06:31:21 +0000 differ | 270 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_2.png 2018-09-14 06:31:21 +0000 differ |
624 | === added file 'data/tribes/immovables/resi/atlanteans/pics/water_3.png' | |||
625 | 40 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_3.png 2018-09-14 06:31:21 +0000 differ | 271 | Binary files data/tribes/immovables/resi/atlanteans/pics/water_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/atlanteans/pics/water_3.png 2018-09-14 06:31:21 +0000 differ |
626 | === added directory 'data/tribes/immovables/resi/barbarians' | |||
627 | === added file 'data/tribes/immovables/resi/barbarians/init.lua' | |||
628 | --- data/tribes/immovables/resi/barbarians/init.lua 1970-01-01 00:00:00 +0000 | |||
629 | +++ data/tribes/immovables/resi/barbarians/init.lua 2018-09-14 06:31:21 +0000 | |||
630 | @@ -0,0 +1,221 @@ | |||
631 | 1 | dirname = path.dirname(__file__) | ||
632 | 2 | |||
633 | 3 | tribes:new_immovable_type { | ||
634 | 4 | msgctxt = "immovable", | ||
635 | 5 | name = "barbarians_resi_none", | ||
636 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
637 | 7 | descname = pgettext("immovable", "Resources: None"), | ||
638 | 8 | helptext_script = dirname .. "../helptexts/none.lua", | ||
639 | 9 | attributes = { "resi" }, | ||
640 | 10 | programs = { | ||
641 | 11 | program = { | ||
642 | 12 | "animate=idle 600000", | ||
643 | 13 | "remove=" | ||
644 | 14 | } | ||
645 | 15 | }, | ||
646 | 16 | |||
647 | 17 | animations = { | ||
648 | 18 | idle = { | ||
649 | 19 | pictures = { dirname .. "pics/none.png" }, | ||
650 | 20 | hotspot = {9, 28}, | ||
651 | 21 | }, | ||
652 | 22 | } | ||
653 | 23 | } | ||
654 | 24 | |||
655 | 25 | tribes:new_immovable_type { | ||
656 | 26 | msgctxt = "immovable", | ||
657 | 27 | name = "barbarians_resi_water", | ||
658 | 28 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
659 | 29 | descname = pgettext("immovable", "Resources: Water Vein"), | ||
660 | 30 | helptext_script = dirname .. "../helptexts/water.lua", | ||
661 | 31 | attributes = { "resi" }, | ||
662 | 32 | programs = { | ||
663 | 33 | program = { | ||
664 | 34 | "animate=idle 600000", | ||
665 | 35 | "remove=" | ||
666 | 36 | } | ||
667 | 37 | }, | ||
668 | 38 | |||
669 | 39 | animations = { | ||
670 | 40 | idle = { | ||
671 | 41 | pictures = { dirname .. "pics/water.png" }, | ||
672 | 42 | hotspot = {9, 28}, | ||
673 | 43 | }, | ||
674 | 44 | } | ||
675 | 45 | } | ||
676 | 46 | |||
677 | 47 | tribes:new_immovable_type { | ||
678 | 48 | msgctxt = "immovable", | ||
679 | 49 | name = "barbarians_resi_coal_1", | ||
680 | 50 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
681 | 51 | descname = pgettext("immovable", "Resources: Coal Vein"), | ||
682 | 52 | helptext_script = dirname .. "../helptexts/coal_1.lua", | ||
683 | 53 | attributes = { "resi" }, | ||
684 | 54 | programs = { | ||
685 | 55 | program = { | ||
686 | 56 | "animate=idle 600000", | ||
687 | 57 | "remove=" | ||
688 | 58 | } | ||
689 | 59 | }, | ||
690 | 60 | |||
691 | 61 | animations = { | ||
692 | 62 | idle = { | ||
693 | 63 | pictures = { dirname .. "pics/coal_1.png" }, | ||
694 | 64 | hotspot = {9, 28}, | ||
695 | 65 | }, | ||
696 | 66 | } | ||
697 | 67 | } | ||
698 | 68 | |||
699 | 69 | tribes:new_immovable_type { | ||
700 | 70 | msgctxt = "immovable", | ||
701 | 71 | name = "barbarians_resi_gold_1", | ||
702 | 72 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
703 | 73 | descname = pgettext("immovable", "Resources: Gold Vein"), | ||
704 | 74 | helptext_script = dirname .. "../helptexts/gold_1.lua", | ||
705 | 75 | attributes = { "resi" }, | ||
706 | 76 | programs = { | ||
707 | 77 | program = { | ||
708 | 78 | "animate=idle 600000", | ||
709 | 79 | "remove=" | ||
710 | 80 | } | ||
711 | 81 | }, | ||
712 | 82 | |||
713 | 83 | animations = { | ||
714 | 84 | idle = { | ||
715 | 85 | pictures = { dirname .. "pics/gold_1.png" }, | ||
716 | 86 | hotspot = {9, 28}, | ||
717 | 87 | }, | ||
718 | 88 | } | ||
719 | 89 | } | ||
720 | 90 | |||
721 | 91 | tribes:new_immovable_type { | ||
722 | 92 | msgctxt = "immovable", | ||
723 | 93 | name = "barbarians_resi_iron_1", | ||
724 | 94 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
725 | 95 | descname = pgettext("immovable", "Resources: Iron Vein"), | ||
726 | 96 | helptext_script = dirname .. "../helptexts/iron_1.lua", | ||
727 | 97 | attributes = { "resi" }, | ||
728 | 98 | programs = { | ||
729 | 99 | program = { | ||
730 | 100 | "animate=idle 600000", | ||
731 | 101 | "remove=" | ||
732 | 102 | } | ||
733 | 103 | }, | ||
734 | 104 | |||
735 | 105 | animations = { | ||
736 | 106 | idle = { | ||
737 | 107 | pictures = { dirname .. "pics/iron_1.png" }, | ||
738 | 108 | hotspot = {9, 28}, | ||
739 | 109 | }, | ||
740 | 110 | } | ||
741 | 111 | } | ||
742 | 112 | |||
743 | 113 | tribes:new_immovable_type { | ||
744 | 114 | msgctxt = "immovable", | ||
745 | 115 | name = "barbarians_resi_stones_1", | ||
746 | 116 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
747 | 117 | descname = pgettext("immovable", "Resources: Some Stones"), | ||
748 | 118 | helptext_script = dirname .. "../helptexts/stones_1.lua", | ||
749 | 119 | attributes = { "resi" }, | ||
750 | 120 | programs = { | ||
751 | 121 | program = { | ||
752 | 122 | "animate=idle 600000", | ||
753 | 123 | "remove=" | ||
754 | 124 | } | ||
755 | 125 | }, | ||
756 | 126 | |||
757 | 127 | animations = { | ||
758 | 128 | idle = { | ||
759 | 129 | pictures = { dirname .. "pics/stones_1.png" }, | ||
760 | 130 | hotspot = {9, 28}, | ||
761 | 131 | }, | ||
762 | 132 | } | ||
763 | 133 | } | ||
764 | 134 | |||
765 | 135 | tribes:new_immovable_type { | ||
766 | 136 | msgctxt = "immovable", | ||
767 | 137 | name = "barbarians_resi_coal_2", | ||
768 | 138 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
769 | 139 | descname = pgettext("immovable", "Resources: Main Coal Vein"), | ||
770 | 140 | helptext_script = dirname .. "../helptexts/coal_2.lua", | ||
771 | 141 | attributes = { "resi" }, | ||
772 | 142 | programs = { | ||
773 | 143 | program = { | ||
774 | 144 | "animate=idle 600000", | ||
775 | 145 | "remove=" | ||
776 | 146 | } | ||
777 | 147 | }, | ||
778 | 148 | |||
779 | 149 | animations = { | ||
780 | 150 | idle = { | ||
781 | 151 | pictures = { dirname .. "pics/coal_2.png" }, | ||
782 | 152 | hotspot = {9, 28}, | ||
783 | 153 | }, | ||
784 | 154 | } | ||
785 | 155 | } | ||
786 | 156 | |||
787 | 157 | tribes:new_immovable_type { | ||
788 | 158 | msgctxt = "immovable", | ||
789 | 159 | name = "barbarians_resi_gold_2", | ||
790 | 160 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
791 | 161 | descname = pgettext("immovable", "Resources: Main Gold Vein"), | ||
792 | 162 | helptext_script = dirname .. "../helptexts/gold_2.lua", | ||
793 | 163 | attributes = { "resi" }, | ||
794 | 164 | programs = { | ||
795 | 165 | program = { | ||
796 | 166 | "animate=idle 600000", | ||
797 | 167 | "remove=" | ||
798 | 168 | } | ||
799 | 169 | }, | ||
800 | 170 | |||
801 | 171 | animations = { | ||
802 | 172 | idle = { | ||
803 | 173 | pictures = { dirname .. "pics/gold_2.png" }, | ||
804 | 174 | hotspot = {9, 28}, | ||
805 | 175 | }, | ||
806 | 176 | } | ||
807 | 177 | } | ||
808 | 178 | |||
809 | 179 | tribes:new_immovable_type { | ||
810 | 180 | msgctxt = "immovable", | ||
811 | 181 | name = "barbarians_resi_iron_2", | ||
812 | 182 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
813 | 183 | descname = pgettext("immovable", "Resources: Main Iron Vein"), | ||
814 | 184 | helptext_script = dirname .. "../helptexts/iron_2.lua", | ||
815 | 185 | attributes = { "resi" }, | ||
816 | 186 | programs = { | ||
817 | 187 | program = { | ||
818 | 188 | "animate=idle 600000", | ||
819 | 189 | "remove=" | ||
820 | 190 | } | ||
821 | 191 | }, | ||
822 | 192 | |||
823 | 193 | animations = { | ||
824 | 194 | idle = { | ||
825 | 195 | pictures = { dirname .. "pics/iron_2.png" }, | ||
826 | 196 | hotspot = {9, 28}, | ||
827 | 197 | }, | ||
828 | 198 | } | ||
829 | 199 | } | ||
830 | 200 | |||
831 | 201 | tribes:new_immovable_type { | ||
832 | 202 | msgctxt = "immovable", | ||
833 | 203 | name = "barbarians_resi_stones_2", | ||
834 | 204 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
835 | 205 | descname = pgettext("immovable", "Resources: A Lot of Stones"), | ||
836 | 206 | helptext_script = dirname .. "../helptexts/stones_2.lua", | ||
837 | 207 | attributes = { "resi" }, | ||
838 | 208 | programs = { | ||
839 | 209 | program = { | ||
840 | 210 | "animate=idle 600000", | ||
841 | 211 | "remove=" | ||
842 | 212 | } | ||
843 | 213 | }, | ||
844 | 214 | |||
845 | 215 | animations = { | ||
846 | 216 | idle = { | ||
847 | 217 | pictures = { dirname .. "pics/stones_2.png" }, | ||
848 | 218 | hotspot = {9, 28}, | ||
849 | 219 | }, | ||
850 | 220 | } | ||
851 | 221 | } | ||
852 | 0 | 222 | ||
853 | === added directory 'data/tribes/immovables/resi/barbarians/pics' | |||
854 | === added file 'data/tribes/immovables/resi/barbarians/pics/coal_1.png' | |||
855 | 1 | Binary files data/tribes/immovables/resi/barbarians/pics/coal_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/coal_1.png 2018-09-14 06:31:21 +0000 differ | 223 | Binary files data/tribes/immovables/resi/barbarians/pics/coal_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/coal_1.png 2018-09-14 06:31:21 +0000 differ |
856 | === added file 'data/tribes/immovables/resi/barbarians/pics/coal_2.png' | |||
857 | 2 | Binary files data/tribes/immovables/resi/barbarians/pics/coal_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/coal_2.png 2018-09-14 06:31:21 +0000 differ | 224 | Binary files data/tribes/immovables/resi/barbarians/pics/coal_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/coal_2.png 2018-09-14 06:31:21 +0000 differ |
858 | === added file 'data/tribes/immovables/resi/barbarians/pics/gold_1.png' | |||
859 | 3 | Binary files data/tribes/immovables/resi/barbarians/pics/gold_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/gold_1.png 2018-09-14 06:31:21 +0000 differ | 225 | Binary files data/tribes/immovables/resi/barbarians/pics/gold_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/gold_1.png 2018-09-14 06:31:21 +0000 differ |
860 | === added file 'data/tribes/immovables/resi/barbarians/pics/gold_2.png' | |||
861 | 4 | Binary files data/tribes/immovables/resi/barbarians/pics/gold_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/gold_2.png 2018-09-14 06:31:21 +0000 differ | 226 | Binary files data/tribes/immovables/resi/barbarians/pics/gold_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/gold_2.png 2018-09-14 06:31:21 +0000 differ |
862 | === added file 'data/tribes/immovables/resi/barbarians/pics/iron_1.png' | |||
863 | 5 | Binary files data/tribes/immovables/resi/barbarians/pics/iron_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/iron_1.png 2018-09-14 06:31:21 +0000 differ | 227 | Binary files data/tribes/immovables/resi/barbarians/pics/iron_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/iron_1.png 2018-09-14 06:31:21 +0000 differ |
864 | === added file 'data/tribes/immovables/resi/barbarians/pics/iron_2.png' | |||
865 | 6 | Binary files data/tribes/immovables/resi/barbarians/pics/iron_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/iron_2.png 2018-09-14 06:31:21 +0000 differ | 228 | Binary files data/tribes/immovables/resi/barbarians/pics/iron_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/iron_2.png 2018-09-14 06:31:21 +0000 differ |
866 | === added file 'data/tribes/immovables/resi/barbarians/pics/none.png' | |||
867 | 7 | Binary files data/tribes/immovables/resi/barbarians/pics/none.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/none.png 2018-09-14 06:31:21 +0000 differ | 229 | Binary files data/tribes/immovables/resi/barbarians/pics/none.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/none.png 2018-09-14 06:31:21 +0000 differ |
868 | === added file 'data/tribes/immovables/resi/barbarians/pics/stones_1.png' | |||
869 | 8 | Binary files data/tribes/immovables/resi/barbarians/pics/stones_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/stones_1.png 2018-09-14 06:31:21 +0000 differ | 230 | Binary files data/tribes/immovables/resi/barbarians/pics/stones_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/stones_1.png 2018-09-14 06:31:21 +0000 differ |
870 | === added file 'data/tribes/immovables/resi/barbarians/pics/stones_2.png' | |||
871 | 9 | Binary files data/tribes/immovables/resi/barbarians/pics/stones_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/stones_2.png 2018-09-14 06:31:21 +0000 differ | 231 | Binary files data/tribes/immovables/resi/barbarians/pics/stones_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/stones_2.png 2018-09-14 06:31:21 +0000 differ |
872 | === added file 'data/tribes/immovables/resi/barbarians/pics/water.png' | |||
873 | 10 | Binary files data/tribes/immovables/resi/barbarians/pics/water.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/water.png 2018-09-14 06:31:21 +0000 differ | 232 | Binary files data/tribes/immovables/resi/barbarians/pics/water.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/barbarians/pics/water.png 2018-09-14 06:31:21 +0000 differ |
874 | === added directory 'data/tribes/immovables/resi/empire' | |||
875 | === added file 'data/tribes/immovables/resi/empire/init.lua' | |||
876 | --- data/tribes/immovables/resi/empire/init.lua 1970-01-01 00:00:00 +0000 | |||
877 | +++ data/tribes/immovables/resi/empire/init.lua 2018-09-14 06:31:21 +0000 | |||
878 | @@ -0,0 +1,221 @@ | |||
879 | 1 | dirname = path.dirname(__file__) | ||
880 | 2 | |||
881 | 3 | tribes:new_immovable_type { | ||
882 | 4 | msgctxt = "immovable", | ||
883 | 5 | name = "empire_resi_none", | ||
884 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
885 | 7 | descname = pgettext("immovable", "Resources: None"), | ||
886 | 8 | helptext_script = dirname .. "../helptexts/none.lua", | ||
887 | 9 | attributes = { "resi" }, | ||
888 | 10 | programs = { | ||
889 | 11 | program = { | ||
890 | 12 | "animate=idle 600000", | ||
891 | 13 | "remove=" | ||
892 | 14 | } | ||
893 | 15 | }, | ||
894 | 16 | |||
895 | 17 | animations = { | ||
896 | 18 | idle = { | ||
897 | 19 | pictures = { dirname .. "pics/none.png" }, | ||
898 | 20 | hotspot = {8, 22}, | ||
899 | 21 | }, | ||
900 | 22 | } | ||
901 | 23 | } | ||
902 | 24 | |||
903 | 25 | tribes:new_immovable_type { | ||
904 | 26 | msgctxt = "immovable", | ||
905 | 27 | name = "empire_resi_water", | ||
906 | 28 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
907 | 29 | descname = pgettext("immovable", "Resources: Water Vein"), | ||
908 | 30 | helptext_script = dirname .. "../helptexts/water.lua", | ||
909 | 31 | attributes = { "resi" }, | ||
910 | 32 | programs = { | ||
911 | 33 | program = { | ||
912 | 34 | "animate=idle 600000", | ||
913 | 35 | "remove=" | ||
914 | 36 | } | ||
915 | 37 | }, | ||
916 | 38 | |||
917 | 39 | animations = { | ||
918 | 40 | idle = { | ||
919 | 41 | pictures = { dirname .. "pics/water.png" }, | ||
920 | 42 | hotspot = {8, 22}, | ||
921 | 43 | }, | ||
922 | 44 | } | ||
923 | 45 | } | ||
924 | 46 | |||
925 | 47 | tribes:new_immovable_type { | ||
926 | 48 | msgctxt = "immovable", | ||
927 | 49 | name = "empire_resi_coal_1", | ||
928 | 50 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
929 | 51 | descname = pgettext("immovable", "Resources: Coal Vein"), | ||
930 | 52 | helptext_script = dirname .. "../helptexts/coal_1.lua", | ||
931 | 53 | attributes = { "resi" }, | ||
932 | 54 | programs = { | ||
933 | 55 | program = { | ||
934 | 56 | "animate=idle 600000", | ||
935 | 57 | "remove=" | ||
936 | 58 | } | ||
937 | 59 | }, | ||
938 | 60 | |||
939 | 61 | animations = { | ||
940 | 62 | idle = { | ||
941 | 63 | pictures = { dirname .. "pics/coal_1.png" }, | ||
942 | 64 | hotspot = {8, 22}, | ||
943 | 65 | }, | ||
944 | 66 | } | ||
945 | 67 | } | ||
946 | 68 | |||
947 | 69 | tribes:new_immovable_type { | ||
948 | 70 | msgctxt = "immovable", | ||
949 | 71 | name = "empire_resi_gold_1", | ||
950 | 72 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
951 | 73 | descname = pgettext("immovable", "Resources: Gold Vein"), | ||
952 | 74 | helptext_script = dirname .. "../helptexts/gold_1.lua", | ||
953 | 75 | attributes = { "resi" }, | ||
954 | 76 | programs = { | ||
955 | 77 | program = { | ||
956 | 78 | "animate=idle 600000", | ||
957 | 79 | "remove=" | ||
958 | 80 | } | ||
959 | 81 | }, | ||
960 | 82 | |||
961 | 83 | animations = { | ||
962 | 84 | idle = { | ||
963 | 85 | pictures = { dirname .. "pics/gold_1.png" }, | ||
964 | 86 | hotspot = {8, 22}, | ||
965 | 87 | }, | ||
966 | 88 | } | ||
967 | 89 | } | ||
968 | 90 | |||
969 | 91 | tribes:new_immovable_type { | ||
970 | 92 | msgctxt = "immovable", | ||
971 | 93 | name = "empire_resi_iron_1", | ||
972 | 94 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
973 | 95 | descname = pgettext("immovable", "Resources: Iron Vein"), | ||
974 | 96 | helptext_script = dirname .. "../helptexts/iron_1.lua", | ||
975 | 97 | attributes = { "resi" }, | ||
976 | 98 | programs = { | ||
977 | 99 | program = { | ||
978 | 100 | "animate=idle 600000", | ||
979 | 101 | "remove=" | ||
980 | 102 | } | ||
981 | 103 | }, | ||
982 | 104 | |||
983 | 105 | animations = { | ||
984 | 106 | idle = { | ||
985 | 107 | pictures = { dirname .. "pics/iron_1.png" }, | ||
986 | 108 | hotspot = {8, 22}, | ||
987 | 109 | }, | ||
988 | 110 | } | ||
989 | 111 | } | ||
990 | 112 | |||
991 | 113 | tribes:new_immovable_type { | ||
992 | 114 | msgctxt = "immovable", | ||
993 | 115 | name = "empire_resi_stones_1", | ||
994 | 116 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
995 | 117 | descname = pgettext("immovable", "Resources: Some Stones"), | ||
996 | 118 | helptext_script = dirname .. "../helptexts/stones_1.lua", | ||
997 | 119 | attributes = { "resi" }, | ||
998 | 120 | programs = { | ||
999 | 121 | program = { | ||
1000 | 122 | "animate=idle 600000", | ||
1001 | 123 | "remove=" | ||
1002 | 124 | } | ||
1003 | 125 | }, | ||
1004 | 126 | |||
1005 | 127 | animations = { | ||
1006 | 128 | idle = { | ||
1007 | 129 | pictures = { dirname .. "pics/stones_1.png" }, | ||
1008 | 130 | hotspot = {8, 22}, | ||
1009 | 131 | }, | ||
1010 | 132 | } | ||
1011 | 133 | } | ||
1012 | 134 | |||
1013 | 135 | tribes:new_immovable_type { | ||
1014 | 136 | msgctxt = "immovable", | ||
1015 | 137 | name = "empire_resi_coal_2", | ||
1016 | 138 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1017 | 139 | descname = pgettext("immovable", "Resources: Main Coal Vein"), | ||
1018 | 140 | helptext_script = dirname .. "../helptexts/coal_2.lua", | ||
1019 | 141 | attributes = { "resi" }, | ||
1020 | 142 | programs = { | ||
1021 | 143 | program = { | ||
1022 | 144 | "animate=idle 600000", | ||
1023 | 145 | "remove=" | ||
1024 | 146 | } | ||
1025 | 147 | }, | ||
1026 | 148 | |||
1027 | 149 | animations = { | ||
1028 | 150 | idle = { | ||
1029 | 151 | pictures = { dirname .. "pics/coal_2.png" }, | ||
1030 | 152 | hotspot = {8, 22}, | ||
1031 | 153 | }, | ||
1032 | 154 | } | ||
1033 | 155 | } | ||
1034 | 156 | |||
1035 | 157 | tribes:new_immovable_type { | ||
1036 | 158 | msgctxt = "immovable", | ||
1037 | 159 | name = "empire_resi_gold_2", | ||
1038 | 160 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1039 | 161 | descname = pgettext("immovable", "Resources: Main Gold Vein"), | ||
1040 | 162 | helptext_script = dirname .. "../helptexts/gold_2.lua", | ||
1041 | 163 | attributes = { "resi" }, | ||
1042 | 164 | programs = { | ||
1043 | 165 | program = { | ||
1044 | 166 | "animate=idle 600000", | ||
1045 | 167 | "remove=" | ||
1046 | 168 | } | ||
1047 | 169 | }, | ||
1048 | 170 | |||
1049 | 171 | animations = { | ||
1050 | 172 | idle = { | ||
1051 | 173 | pictures = { dirname .. "pics/gold_2.png" }, | ||
1052 | 174 | hotspot = {8, 22}, | ||
1053 | 175 | }, | ||
1054 | 176 | } | ||
1055 | 177 | } | ||
1056 | 178 | |||
1057 | 179 | tribes:new_immovable_type { | ||
1058 | 180 | msgctxt = "immovable", | ||
1059 | 181 | name = "empire_resi_iron_2", | ||
1060 | 182 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1061 | 183 | descname = pgettext("immovable", "Resources: Main Iron Vein"), | ||
1062 | 184 | helptext_script = dirname .. "../helptexts/iron_2.lua", | ||
1063 | 185 | attributes = { "resi" }, | ||
1064 | 186 | programs = { | ||
1065 | 187 | program = { | ||
1066 | 188 | "animate=idle 600000", | ||
1067 | 189 | "remove=" | ||
1068 | 190 | } | ||
1069 | 191 | }, | ||
1070 | 192 | |||
1071 | 193 | animations = { | ||
1072 | 194 | idle = { | ||
1073 | 195 | pictures = { dirname .. "pics/iron_2.png" }, | ||
1074 | 196 | hotspot = {8, 22}, | ||
1075 | 197 | }, | ||
1076 | 198 | } | ||
1077 | 199 | } | ||
1078 | 200 | |||
1079 | 201 | tribes:new_immovable_type { | ||
1080 | 202 | msgctxt = "immovable", | ||
1081 | 203 | name = "empire_resi_stones_2", | ||
1082 | 204 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1083 | 205 | descname = pgettext("immovable", "Resources: A Lot of Stones"), | ||
1084 | 206 | helptext_script = dirname .. "../helptexts/stones_2.lua", | ||
1085 | 207 | attributes = { "resi" }, | ||
1086 | 208 | programs = { | ||
1087 | 209 | program = { | ||
1088 | 210 | "animate=idle 600000", | ||
1089 | 211 | "remove=" | ||
1090 | 212 | } | ||
1091 | 213 | }, | ||
1092 | 214 | |||
1093 | 215 | animations = { | ||
1094 | 216 | idle = { | ||
1095 | 217 | pictures = { dirname .. "pics/stones_2.png" }, | ||
1096 | 218 | hotspot = {8, 22}, | ||
1097 | 219 | }, | ||
1098 | 220 | } | ||
1099 | 221 | } | ||
1100 | 0 | 222 | ||
1101 | === added directory 'data/tribes/immovables/resi/empire/pics' | |||
1102 | === added file 'data/tribes/immovables/resi/empire/pics/coal_1.png' | |||
1103 | 1 | Binary files data/tribes/immovables/resi/empire/pics/coal_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/coal_1.png 2018-09-14 06:31:21 +0000 differ | 223 | Binary files data/tribes/immovables/resi/empire/pics/coal_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/coal_1.png 2018-09-14 06:31:21 +0000 differ |
1104 | === added file 'data/tribes/immovables/resi/empire/pics/coal_2.png' | |||
1105 | 2 | Binary files data/tribes/immovables/resi/empire/pics/coal_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/coal_2.png 2018-09-14 06:31:21 +0000 differ | 224 | Binary files data/tribes/immovables/resi/empire/pics/coal_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/coal_2.png 2018-09-14 06:31:21 +0000 differ |
1106 | === added file 'data/tribes/immovables/resi/empire/pics/gold_1.png' | |||
1107 | 3 | Binary files data/tribes/immovables/resi/empire/pics/gold_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/gold_1.png 2018-09-14 06:31:21 +0000 differ | 225 | Binary files data/tribes/immovables/resi/empire/pics/gold_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/gold_1.png 2018-09-14 06:31:21 +0000 differ |
1108 | === added file 'data/tribes/immovables/resi/empire/pics/gold_2.png' | |||
1109 | 4 | Binary files data/tribes/immovables/resi/empire/pics/gold_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/gold_2.png 2018-09-14 06:31:21 +0000 differ | 226 | Binary files data/tribes/immovables/resi/empire/pics/gold_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/gold_2.png 2018-09-14 06:31:21 +0000 differ |
1110 | === added file 'data/tribes/immovables/resi/empire/pics/iron_1.png' | |||
1111 | 5 | Binary files data/tribes/immovables/resi/empire/pics/iron_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/iron_1.png 2018-09-14 06:31:21 +0000 differ | 227 | Binary files data/tribes/immovables/resi/empire/pics/iron_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/iron_1.png 2018-09-14 06:31:21 +0000 differ |
1112 | === added file 'data/tribes/immovables/resi/empire/pics/iron_2.png' | |||
1113 | 6 | Binary files data/tribes/immovables/resi/empire/pics/iron_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/iron_2.png 2018-09-14 06:31:21 +0000 differ | 228 | Binary files data/tribes/immovables/resi/empire/pics/iron_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/iron_2.png 2018-09-14 06:31:21 +0000 differ |
1114 | === added file 'data/tribes/immovables/resi/empire/pics/none.png' | |||
1115 | 7 | Binary files data/tribes/immovables/resi/empire/pics/none.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/none.png 2018-09-14 06:31:21 +0000 differ | 229 | Binary files data/tribes/immovables/resi/empire/pics/none.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/none.png 2018-09-14 06:31:21 +0000 differ |
1116 | === added file 'data/tribes/immovables/resi/empire/pics/stones_1.png' | |||
1117 | 8 | Binary files data/tribes/immovables/resi/empire/pics/stones_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/stones_1.png 2018-09-14 06:31:21 +0000 differ | 230 | Binary files data/tribes/immovables/resi/empire/pics/stones_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/stones_1.png 2018-09-14 06:31:21 +0000 differ |
1118 | === added file 'data/tribes/immovables/resi/empire/pics/stones_2.png' | |||
1119 | 9 | Binary files data/tribes/immovables/resi/empire/pics/stones_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/stones_2.png 2018-09-14 06:31:21 +0000 differ | 231 | Binary files data/tribes/immovables/resi/empire/pics/stones_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/stones_2.png 2018-09-14 06:31:21 +0000 differ |
1120 | === added file 'data/tribes/immovables/resi/empire/pics/water.png' | |||
1121 | 10 | Binary files data/tribes/immovables/resi/empire/pics/water.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/water.png 2018-09-14 06:31:21 +0000 differ | 232 | Binary files data/tribes/immovables/resi/empire/pics/water.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/empire/pics/water.png 2018-09-14 06:31:21 +0000 differ |
1122 | === added directory 'data/tribes/immovables/resi/frisians' | |||
1123 | === added file 'data/tribes/immovables/resi/frisians/init.lua' | |||
1124 | --- data/tribes/immovables/resi/frisians/init.lua 1970-01-01 00:00:00 +0000 | |||
1125 | +++ data/tribes/immovables/resi/frisians/init.lua 2018-09-14 06:31:21 +0000 | |||
1126 | @@ -0,0 +1,230 @@ | |||
1127 | 1 | dirname = path.dirname(__file__) | ||
1128 | 2 | |||
1129 | 3 | tribes:new_immovable_type { | ||
1130 | 4 | msgctxt = "immovable", | ||
1131 | 5 | name = "frisians_resi_none", | ||
1132 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1133 | 7 | descname = pgettext("immovable", "Resources: None"), | ||
1134 | 8 | helptext_script = dirname .. "../helptexts/none.lua", | ||
1135 | 9 | attributes = { "resi" }, | ||
1136 | 10 | programs = { | ||
1137 | 11 | program = { | ||
1138 | 12 | "animate=idle 600000", | ||
1139 | 13 | "remove=" | ||
1140 | 14 | } | ||
1141 | 15 | }, | ||
1142 | 16 | |||
1143 | 17 | animations = { | ||
1144 | 18 | idle = { | ||
1145 | 19 | pictures = { dirname .. "pics/none.png" }, | ||
1146 | 20 | hotspot = {2, 49}, | ||
1147 | 21 | }, | ||
1148 | 22 | } | ||
1149 | 23 | } | ||
1150 | 24 | |||
1151 | 25 | tribes:new_immovable_type { | ||
1152 | 26 | msgctxt = "immovable", | ||
1153 | 27 | name = "frisians_resi_water", | ||
1154 | 28 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1155 | 29 | descname = pgettext("immovable", "Resources: Water Vein"), | ||
1156 | 30 | helptext_script = dirname .. "../helptexts/water.lua", | ||
1157 | 31 | attributes = { "resi" }, | ||
1158 | 32 | programs = { | ||
1159 | 33 | program = { | ||
1160 | 34 | "animate=idle 600000", | ||
1161 | 35 | "remove=" | ||
1162 | 36 | } | ||
1163 | 37 | }, | ||
1164 | 38 | |||
1165 | 39 | animations = { | ||
1166 | 40 | idle = { | ||
1167 | 41 | pictures = path.list_files(dirname .. "pics/water_?.png"), | ||
1168 | 42 | hotspot = {2, 49}, | ||
1169 | 43 | fps = 4, | ||
1170 | 44 | }, | ||
1171 | 45 | } | ||
1172 | 46 | } | ||
1173 | 47 | |||
1174 | 48 | tribes:new_immovable_type { | ||
1175 | 49 | msgctxt = "immovable", | ||
1176 | 50 | name = "frisians_resi_coal_1", | ||
1177 | 51 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1178 | 52 | descname = pgettext("immovable", "Resources: Coal Vein"), | ||
1179 | 53 | helptext_script = dirname .. "../helptexts/coal_1.lua", | ||
1180 | 54 | attributes = { "resi" }, | ||
1181 | 55 | programs = { | ||
1182 | 56 | program = { | ||
1183 | 57 | "animate=idle 600000", | ||
1184 | 58 | "remove=" | ||
1185 | 59 | } | ||
1186 | 60 | }, | ||
1187 | 61 | |||
1188 | 62 | animations = { | ||
1189 | 63 | idle = { | ||
1190 | 64 | pictures = path.list_files(dirname .. "pics/coal_1_?.png"), | ||
1191 | 65 | hotspot = {2, 49}, | ||
1192 | 66 | fps = 4, | ||
1193 | 67 | }, | ||
1194 | 68 | } | ||
1195 | 69 | } | ||
1196 | 70 | |||
1197 | 71 | tribes:new_immovable_type { | ||
1198 | 72 | msgctxt = "immovable", | ||
1199 | 73 | name = "frisians_resi_gold_1", | ||
1200 | 74 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1201 | 75 | descname = pgettext("immovable", "Resources: Gold Vein"), | ||
1202 | 76 | helptext_script = dirname .. "../helptexts/gold_1.lua", | ||
1203 | 77 | attributes = { "resi" }, | ||
1204 | 78 | programs = { | ||
1205 | 79 | program = { | ||
1206 | 80 | "animate=idle 600000", | ||
1207 | 81 | "remove=" | ||
1208 | 82 | } | ||
1209 | 83 | }, | ||
1210 | 84 | |||
1211 | 85 | animations = { | ||
1212 | 86 | idle = { | ||
1213 | 87 | pictures = path.list_files(dirname .. "pics/gold_1_?.png"), | ||
1214 | 88 | hotspot = {2, 49}, | ||
1215 | 89 | fps = 4, | ||
1216 | 90 | }, | ||
1217 | 91 | } | ||
1218 | 92 | } | ||
1219 | 93 | |||
1220 | 94 | tribes:new_immovable_type { | ||
1221 | 95 | msgctxt = "immovable", | ||
1222 | 96 | name = "frisians_resi_iron_1", | ||
1223 | 97 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1224 | 98 | descname = pgettext("immovable", "Resources: Iron Vein"), | ||
1225 | 99 | helptext_script = dirname .. "../helptexts/iron_1.lua", | ||
1226 | 100 | attributes = { "resi" }, | ||
1227 | 101 | programs = { | ||
1228 | 102 | program = { | ||
1229 | 103 | "animate=idle 600000", | ||
1230 | 104 | "remove=" | ||
1231 | 105 | } | ||
1232 | 106 | }, | ||
1233 | 107 | |||
1234 | 108 | animations = { | ||
1235 | 109 | idle = { | ||
1236 | 110 | pictures = path.list_files(dirname .. "pics/iron_1_?.png"), | ||
1237 | 111 | hotspot = {2, 49}, | ||
1238 | 112 | fps = 4, | ||
1239 | 113 | }, | ||
1240 | 114 | } | ||
1241 | 115 | } | ||
1242 | 116 | |||
1243 | 117 | tribes:new_immovable_type { | ||
1244 | 118 | msgctxt = "immovable", | ||
1245 | 119 | name = "frisians_resi_stones_1", | ||
1246 | 120 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1247 | 121 | descname = pgettext("immovable", "Resources: Some Stones"), | ||
1248 | 122 | helptext_script = dirname .. "../helptexts/stones_1.lua", | ||
1249 | 123 | attributes = { "resi" }, | ||
1250 | 124 | programs = { | ||
1251 | 125 | program = { | ||
1252 | 126 | "animate=idle 600000", | ||
1253 | 127 | "remove=" | ||
1254 | 128 | } | ||
1255 | 129 | }, | ||
1256 | 130 | |||
1257 | 131 | animations = { | ||
1258 | 132 | idle = { | ||
1259 | 133 | pictures = path.list_files(dirname .. "pics/stones_1_?.png"), | ||
1260 | 134 | hotspot = {2, 49}, | ||
1261 | 135 | fps = 4, | ||
1262 | 136 | }, | ||
1263 | 137 | } | ||
1264 | 138 | } | ||
1265 | 139 | |||
1266 | 140 | tribes:new_immovable_type { | ||
1267 | 141 | msgctxt = "immovable", | ||
1268 | 142 | name = "frisians_resi_coal_2", | ||
1269 | 143 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1270 | 144 | descname = pgettext("immovable", "Resources: Main Coal Vein"), | ||
1271 | 145 | helptext_script = dirname .. "../helptexts/coal_2.lua", | ||
1272 | 146 | attributes = { "resi" }, | ||
1273 | 147 | programs = { | ||
1274 | 148 | program = { | ||
1275 | 149 | "animate=idle 600000", | ||
1276 | 150 | "remove=" | ||
1277 | 151 | } | ||
1278 | 152 | }, | ||
1279 | 153 | |||
1280 | 154 | animations = { | ||
1281 | 155 | idle = { | ||
1282 | 156 | pictures = path.list_files(dirname .. "pics/coal_2_?.png"), | ||
1283 | 157 | hotspot = {2, 49}, | ||
1284 | 158 | fps = 4, | ||
1285 | 159 | }, | ||
1286 | 160 | } | ||
1287 | 161 | } | ||
1288 | 162 | |||
1289 | 163 | tribes:new_immovable_type { | ||
1290 | 164 | msgctxt = "immovable", | ||
1291 | 165 | name = "frisians_resi_gold_2", | ||
1292 | 166 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1293 | 167 | descname = pgettext("immovable", "Resources: Main Gold Vein"), | ||
1294 | 168 | helptext_script = dirname .. "../helptexts/gold_2.lua", | ||
1295 | 169 | attributes = { "resi" }, | ||
1296 | 170 | programs = { | ||
1297 | 171 | program = { | ||
1298 | 172 | "animate=idle 600000", | ||
1299 | 173 | "remove=" | ||
1300 | 174 | } | ||
1301 | 175 | }, | ||
1302 | 176 | |||
1303 | 177 | animations = { | ||
1304 | 178 | idle = { | ||
1305 | 179 | pictures = path.list_files(dirname .. "pics/gold_2_?.png"), | ||
1306 | 180 | hotspot = {2, 49}, | ||
1307 | 181 | fps = 4, | ||
1308 | 182 | }, | ||
1309 | 183 | } | ||
1310 | 184 | } | ||
1311 | 185 | |||
1312 | 186 | tribes:new_immovable_type { | ||
1313 | 187 | msgctxt = "immovable", | ||
1314 | 188 | name = "frisians_resi_iron_2", | ||
1315 | 189 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1316 | 190 | descname = pgettext("immovable", "Resources: Main Iron Vein"), | ||
1317 | 191 | helptext_script = dirname .. "../helptexts/iron_2.lua", | ||
1318 | 192 | attributes = { "resi" }, | ||
1319 | 193 | programs = { | ||
1320 | 194 | program = { | ||
1321 | 195 | "animate=idle 600000", | ||
1322 | 196 | "remove=" | ||
1323 | 197 | } | ||
1324 | 198 | }, | ||
1325 | 199 | |||
1326 | 200 | animations = { | ||
1327 | 201 | idle = { | ||
1328 | 202 | pictures = path.list_files(dirname .. "pics/iron_2_?.png"), | ||
1329 | 203 | hotspot = {2, 49}, | ||
1330 | 204 | fps = 4, | ||
1331 | 205 | }, | ||
1332 | 206 | } | ||
1333 | 207 | } | ||
1334 | 208 | |||
1335 | 209 | tribes:new_immovable_type { | ||
1336 | 210 | msgctxt = "immovable", | ||
1337 | 211 | name = "frisians_resi_stones_2", | ||
1338 | 212 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1339 | 213 | descname = pgettext("immovable", "Resources: A Lot of Stones"), | ||
1340 | 214 | helptext_script = dirname .. "../helptexts/stones_2.lua", | ||
1341 | 215 | attributes = { "resi" }, | ||
1342 | 216 | programs = { | ||
1343 | 217 | program = { | ||
1344 | 218 | "animate=idle 600000", | ||
1345 | 219 | "remove=" | ||
1346 | 220 | } | ||
1347 | 221 | }, | ||
1348 | 222 | |||
1349 | 223 | animations = { | ||
1350 | 224 | idle = { | ||
1351 | 225 | pictures = path.list_files(dirname .. "pics/stones_2_?.png"), | ||
1352 | 226 | hotspot = {2, 49}, | ||
1353 | 227 | fps = 4, | ||
1354 | 228 | }, | ||
1355 | 229 | } | ||
1356 | 230 | } | ||
1357 | 0 | 231 | ||
1358 | === added directory 'data/tribes/immovables/resi/frisians/pics' | |||
1359 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_1_0.png' | |||
1360 | 1 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_0.png 2018-09-14 06:31:21 +0000 differ | 232 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_0.png 2018-09-14 06:31:21 +0000 differ |
1361 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_1_1.png' | |||
1362 | 2 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_1.png 2018-09-14 06:31:21 +0000 differ | 233 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_1.png 2018-09-14 06:31:21 +0000 differ |
1363 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_1_2.png' | |||
1364 | 3 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_2.png 2018-09-14 06:31:21 +0000 differ | 234 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_2.png 2018-09-14 06:31:21 +0000 differ |
1365 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_1_3.png' | |||
1366 | 4 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_3.png 2018-09-14 06:31:21 +0000 differ | 235 | Binary files data/tribes/immovables/resi/frisians/pics/coal_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_1_3.png 2018-09-14 06:31:21 +0000 differ |
1367 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_2_0.png' | |||
1368 | 5 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_0.png 2018-09-14 06:31:21 +0000 differ | 236 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_0.png 2018-09-14 06:31:21 +0000 differ |
1369 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_2_1.png' | |||
1370 | 6 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_1.png 2018-09-14 06:31:21 +0000 differ | 237 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_1.png 2018-09-14 06:31:21 +0000 differ |
1371 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_2_2.png' | |||
1372 | 7 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_2.png 2018-09-14 06:31:21 +0000 differ | 238 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_2.png 2018-09-14 06:31:21 +0000 differ |
1373 | === added file 'data/tribes/immovables/resi/frisians/pics/coal_2_3.png' | |||
1374 | 8 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_3.png 2018-09-14 06:31:21 +0000 differ | 239 | Binary files data/tribes/immovables/resi/frisians/pics/coal_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/coal_2_3.png 2018-09-14 06:31:21 +0000 differ |
1375 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_1_0.png' | |||
1376 | 9 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_0.png 2018-09-14 06:31:21 +0000 differ | 240 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_0.png 2018-09-14 06:31:21 +0000 differ |
1377 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_1_1.png' | |||
1378 | 10 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_1.png 2018-09-14 06:31:21 +0000 differ | 241 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_1.png 2018-09-14 06:31:21 +0000 differ |
1379 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_1_2.png' | |||
1380 | 11 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_2.png 2018-09-14 06:31:21 +0000 differ | 242 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_2.png 2018-09-14 06:31:21 +0000 differ |
1381 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_1_3.png' | |||
1382 | 12 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_3.png 2018-09-14 06:31:21 +0000 differ | 243 | Binary files data/tribes/immovables/resi/frisians/pics/gold_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_1_3.png 2018-09-14 06:31:21 +0000 differ |
1383 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_2_0.png' | |||
1384 | 13 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_0.png 2018-09-14 06:31:21 +0000 differ | 244 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_0.png 2018-09-14 06:31:21 +0000 differ |
1385 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_2_1.png' | |||
1386 | 14 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_1.png 2018-09-14 06:31:21 +0000 differ | 245 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_1.png 2018-09-14 06:31:21 +0000 differ |
1387 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_2_2.png' | |||
1388 | 15 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_2.png 2018-09-14 06:31:21 +0000 differ | 246 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_2.png 2018-09-14 06:31:21 +0000 differ |
1389 | === added file 'data/tribes/immovables/resi/frisians/pics/gold_2_3.png' | |||
1390 | 16 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_3.png 2018-09-14 06:31:21 +0000 differ | 247 | Binary files data/tribes/immovables/resi/frisians/pics/gold_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/gold_2_3.png 2018-09-14 06:31:21 +0000 differ |
1391 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_1_0.png' | |||
1392 | 17 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_0.png 2018-09-14 06:31:21 +0000 differ | 248 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_0.png 2018-09-14 06:31:21 +0000 differ |
1393 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_1_1.png' | |||
1394 | 18 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_1.png 2018-09-14 06:31:21 +0000 differ | 249 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_1.png 2018-09-14 06:31:21 +0000 differ |
1395 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_1_2.png' | |||
1396 | 19 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_2.png 2018-09-14 06:31:21 +0000 differ | 250 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_2.png 2018-09-14 06:31:21 +0000 differ |
1397 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_1_3.png' | |||
1398 | 20 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_3.png 2018-09-14 06:31:21 +0000 differ | 251 | Binary files data/tribes/immovables/resi/frisians/pics/iron_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_1_3.png 2018-09-14 06:31:21 +0000 differ |
1399 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_2_0.png' | |||
1400 | 21 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_0.png 2018-09-14 06:31:21 +0000 differ | 252 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_0.png 2018-09-14 06:31:21 +0000 differ |
1401 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_2_1.png' | |||
1402 | 22 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_1.png 2018-09-14 06:31:21 +0000 differ | 253 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_1.png 2018-09-14 06:31:21 +0000 differ |
1403 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_2_2.png' | |||
1404 | 23 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_2.png 2018-09-14 06:31:21 +0000 differ | 254 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_2.png 2018-09-14 06:31:21 +0000 differ |
1405 | === added file 'data/tribes/immovables/resi/frisians/pics/iron_2_3.png' | |||
1406 | 24 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_3.png 2018-09-14 06:31:21 +0000 differ | 255 | Binary files data/tribes/immovables/resi/frisians/pics/iron_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/iron_2_3.png 2018-09-14 06:31:21 +0000 differ |
1407 | === added file 'data/tribes/immovables/resi/frisians/pics/none.png' | |||
1408 | 25 | Binary files data/tribes/immovables/resi/frisians/pics/none.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/none.png 2018-09-14 06:31:21 +0000 differ | 256 | Binary files data/tribes/immovables/resi/frisians/pics/none.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/none.png 2018-09-14 06:31:21 +0000 differ |
1409 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_1_0.png' | |||
1410 | 26 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_0.png 2018-09-14 06:31:21 +0000 differ | 257 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_0.png 2018-09-14 06:31:21 +0000 differ |
1411 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_1_1.png' | |||
1412 | 27 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_1.png 2018-09-14 06:31:21 +0000 differ | 258 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_1.png 2018-09-14 06:31:21 +0000 differ |
1413 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_1_2.png' | |||
1414 | 28 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_2.png 2018-09-14 06:31:21 +0000 differ | 259 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_2.png 2018-09-14 06:31:21 +0000 differ |
1415 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_1_3.png' | |||
1416 | 29 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_3.png 2018-09-14 06:31:21 +0000 differ | 260 | Binary files data/tribes/immovables/resi/frisians/pics/stones_1_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_1_3.png 2018-09-14 06:31:21 +0000 differ |
1417 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_2_0.png' | |||
1418 | 30 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_0.png 2018-09-14 06:31:21 +0000 differ | 261 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_0.png 2018-09-14 06:31:21 +0000 differ |
1419 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_2_1.png' | |||
1420 | 31 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_1.png 2018-09-14 06:31:21 +0000 differ | 262 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_1.png 2018-09-14 06:31:21 +0000 differ |
1421 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_2_2.png' | |||
1422 | 32 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_2.png 2018-09-14 06:31:21 +0000 differ | 263 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_2.png 2018-09-14 06:31:21 +0000 differ |
1423 | === added file 'data/tribes/immovables/resi/frisians/pics/stones_2_3.png' | |||
1424 | 33 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_3.png 2018-09-14 06:31:21 +0000 differ | 264 | Binary files data/tribes/immovables/resi/frisians/pics/stones_2_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/stones_2_3.png 2018-09-14 06:31:21 +0000 differ |
1425 | === added file 'data/tribes/immovables/resi/frisians/pics/water_0.png' | |||
1426 | 34 | Binary files data/tribes/immovables/resi/frisians/pics/water_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_0.png 2018-09-14 06:31:21 +0000 differ | 265 | Binary files data/tribes/immovables/resi/frisians/pics/water_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_0.png 2018-09-14 06:31:21 +0000 differ |
1427 | === added file 'data/tribes/immovables/resi/frisians/pics/water_1.png' | |||
1428 | 35 | Binary files data/tribes/immovables/resi/frisians/pics/water_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_1.png 2018-09-14 06:31:21 +0000 differ | 266 | Binary files data/tribes/immovables/resi/frisians/pics/water_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_1.png 2018-09-14 06:31:21 +0000 differ |
1429 | === added file 'data/tribes/immovables/resi/frisians/pics/water_2.png' | |||
1430 | 36 | Binary files data/tribes/immovables/resi/frisians/pics/water_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_2.png 2018-09-14 06:31:21 +0000 differ | 267 | Binary files data/tribes/immovables/resi/frisians/pics/water_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_2.png 2018-09-14 06:31:21 +0000 differ |
1431 | === added file 'data/tribes/immovables/resi/frisians/pics/water_3.png' | |||
1432 | 37 | Binary files data/tribes/immovables/resi/frisians/pics/water_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_3.png 2018-09-14 06:31:21 +0000 differ | 268 | Binary files data/tribes/immovables/resi/frisians/pics/water_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/resi/frisians/pics/water_3.png 2018-09-14 06:31:21 +0000 differ |
1433 | === added directory 'data/tribes/immovables/resi/helptexts' | |||
1434 | === added file 'data/tribes/immovables/resi/helptexts/coal_1.lua' | |||
1435 | --- data/tribes/immovables/resi/helptexts/coal_1.lua 1970-01-01 00:00:00 +0000 | |||
1436 | +++ data/tribes/immovables/resi/helptexts/coal_1.lua 2018-09-14 06:31:21 +0000 | |||
1437 | @@ -0,0 +1,17 @@ | |||
1438 | 1 | function immovable_helptext(tribe) | ||
1439 | 2 | local helptext = { | ||
1440 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1441 | 4 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1442 | 5 | _("Coal veins contain coal that can be dug up by coal mines."), | ||
1443 | 6 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1444 | 7 | _("There is only a little bit of coal here.")) | ||
1445 | 8 | } | ||
1446 | 9 | local result = "" | ||
1447 | 10 | if tribe then | ||
1448 | 11 | result = helptext[tribe] | ||
1449 | 12 | else | ||
1450 | 13 | result = helptext["default"] | ||
1451 | 14 | end | ||
1452 | 15 | if (result == nil) then result = "" end | ||
1453 | 16 | return result | ||
1454 | 17 | end | ||
1455 | 0 | 18 | ||
1456 | === added file 'data/tribes/immovables/resi/helptexts/coal_2.lua' | |||
1457 | --- data/tribes/immovables/resi/helptexts/coal_2.lua 1970-01-01 00:00:00 +0000 | |||
1458 | +++ data/tribes/immovables/resi/helptexts/coal_2.lua 2018-09-14 06:31:21 +0000 | |||
1459 | @@ -0,0 +1,17 @@ | |||
1460 | 1 | function immovable_helptext(tribe) | ||
1461 | 2 | local helptext = { | ||
1462 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1463 | 4 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1464 | 5 | _("Coal veins contain coal that can be dug up by coal mines."), | ||
1465 | 6 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1466 | 7 | _("There is a lot of coal here.")) | ||
1467 | 8 | } | ||
1468 | 9 | local result = "" | ||
1469 | 10 | if tribe then | ||
1470 | 11 | result = helptext[tribe] | ||
1471 | 12 | else | ||
1472 | 13 | result = helptext["default"] | ||
1473 | 14 | end | ||
1474 | 15 | if (result == nil) then result = "" end | ||
1475 | 16 | return result | ||
1476 | 17 | end | ||
1477 | 0 | 18 | ||
1478 | === added file 'data/tribes/immovables/resi/helptexts/gold_1.lua' | |||
1479 | --- data/tribes/immovables/resi/helptexts/gold_1.lua 1970-01-01 00:00:00 +0000 | |||
1480 | +++ data/tribes/immovables/resi/helptexts/gold_1.lua 2018-09-14 06:31:21 +0000 | |||
1481 | @@ -0,0 +1,17 @@ | |||
1482 | 1 | function immovable_helptext(tribe) | ||
1483 | 2 | local helptext = { | ||
1484 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1485 | 4 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1486 | 5 | _("Gold veins contain gold ore that can be dug up by gold mines."), | ||
1487 | 6 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1488 | 7 | _("There is only a little bit of gold here.")) | ||
1489 | 8 | } | ||
1490 | 9 | local result = "" | ||
1491 | 10 | if tribe then | ||
1492 | 11 | result = helptext[tribe] | ||
1493 | 12 | else | ||
1494 | 13 | result = helptext["default"] | ||
1495 | 14 | end | ||
1496 | 15 | if (result == nil) then result = "" end | ||
1497 | 16 | return result | ||
1498 | 17 | end | ||
1499 | 0 | 18 | ||
1500 | === added file 'data/tribes/immovables/resi/helptexts/gold_2.lua' | |||
1501 | --- data/tribes/immovables/resi/helptexts/gold_2.lua 1970-01-01 00:00:00 +0000 | |||
1502 | +++ data/tribes/immovables/resi/helptexts/gold_2.lua 2018-09-14 06:31:21 +0000 | |||
1503 | @@ -0,0 +1,17 @@ | |||
1504 | 1 | function immovable_helptext(tribe) | ||
1505 | 2 | local helptext = { | ||
1506 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1507 | 4 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1508 | 5 | _("Gold veins contain gold ore that can be dug up by gold mines."), | ||
1509 | 6 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1510 | 7 | _("There is a lot of gold here.")) | ||
1511 | 8 | } | ||
1512 | 9 | local result = "" | ||
1513 | 10 | if tribe then | ||
1514 | 11 | result = helptext[tribe] | ||
1515 | 12 | else | ||
1516 | 13 | result = helptext["default"] | ||
1517 | 14 | end | ||
1518 | 15 | if (result == nil) then result = "" end | ||
1519 | 16 | return result | ||
1520 | 17 | end | ||
1521 | 0 | 18 | ||
1522 | === added file 'data/tribes/immovables/resi/helptexts/iron_1.lua' | |||
1523 | --- data/tribes/immovables/resi/helptexts/iron_1.lua 1970-01-01 00:00:00 +0000 | |||
1524 | +++ data/tribes/immovables/resi/helptexts/iron_1.lua 2018-09-14 06:31:21 +0000 | |||
1525 | @@ -0,0 +1,17 @@ | |||
1526 | 1 | function immovable_helptext(tribe) | ||
1527 | 2 | local helptext = { | ||
1528 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1529 | 4 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1530 | 5 | _("Iron veins contain iron ore that can be dug up by iron mines."), | ||
1531 | 6 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1532 | 7 | _("There is only a little bit of iron here.")) | ||
1533 | 8 | } | ||
1534 | 9 | local result = "" | ||
1535 | 10 | if tribe then | ||
1536 | 11 | result = helptext[tribe] | ||
1537 | 12 | else | ||
1538 | 13 | result = helptext["default"] | ||
1539 | 14 | end | ||
1540 | 15 | if (result == nil) then result = "" end | ||
1541 | 16 | return result | ||
1542 | 17 | end | ||
1543 | 0 | 18 | ||
1544 | === added file 'data/tribes/immovables/resi/helptexts/iron_2.lua' | |||
1545 | --- data/tribes/immovables/resi/helptexts/iron_2.lua 1970-01-01 00:00:00 +0000 | |||
1546 | +++ data/tribes/immovables/resi/helptexts/iron_2.lua 2018-09-14 06:31:21 +0000 | |||
1547 | @@ -0,0 +1,17 @@ | |||
1548 | 1 | function immovable_helptext(tribe) | ||
1549 | 2 | local helptext = { | ||
1550 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1551 | 4 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1552 | 5 | _("Iron veins contain iron ore that can be dug up by iron mines."), | ||
1553 | 6 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1554 | 7 | _("There is a lot of iron here.")) | ||
1555 | 8 | } | ||
1556 | 9 | local result = "" | ||
1557 | 10 | if tribe then | ||
1558 | 11 | result = helptext[tribe] | ||
1559 | 12 | else | ||
1560 | 13 | result = helptext["default"] | ||
1561 | 14 | end | ||
1562 | 15 | if (result == nil) then result = "" end | ||
1563 | 16 | return result | ||
1564 | 17 | end | ||
1565 | 0 | 18 | ||
1566 | === added file 'data/tribes/immovables/resi/helptexts/none.lua' | |||
1567 | --- data/tribes/immovables/resi/helptexts/none.lua 1970-01-01 00:00:00 +0000 | |||
1568 | +++ data/tribes/immovables/resi/helptexts/none.lua 2018-09-14 06:31:21 +0000 | |||
1569 | @@ -0,0 +1,14 @@ | |||
1570 | 1 | function immovable_helptext(tribe) | ||
1571 | 2 | local helptext = { | ||
1572 | 3 | -- TRANSLATORS: Helptext for a resource: No resources | ||
1573 | 4 | default = _("There are no resources in the ground here.") | ||
1574 | 5 | } | ||
1575 | 6 | local result = "" | ||
1576 | 7 | if tribe then | ||
1577 | 8 | result = helptext[tribe] | ||
1578 | 9 | else | ||
1579 | 10 | result = helptext["default"] | ||
1580 | 11 | end | ||
1581 | 12 | if (result == nil) then result = "" end | ||
1582 | 13 | return result | ||
1583 | 14 | end | ||
1584 | 0 | 15 | ||
1585 | === added file 'data/tribes/immovables/resi/helptexts/stones_1.lua' | |||
1586 | --- data/tribes/immovables/resi/helptexts/stones_1.lua 1970-01-01 00:00:00 +0000 | |||
1587 | +++ data/tribes/immovables/resi/helptexts/stones_1.lua 2018-09-14 06:31:21 +0000 | |||
1588 | @@ -0,0 +1,32 @@ | |||
1589 | 1 | function immovable_helptext(tribe) | ||
1590 | 2 | local helptext = { | ||
1591 | 3 | atlanteans = pgettext("sentence_separator", "%s %s"):bformat( | ||
1592 | 4 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
1593 | 5 | _("Precious stones are used in the construction of big buildings. They can be dug up by a crystal mine. You will also get granite from the mine."), | ||
1594 | 6 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
1595 | 7 | _("There are only a few precious stones here.")), | ||
1596 | 8 | barbarians = pgettext("sentence_separator", "%s %s"):bformat( | ||
1597 | 9 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
1598 | 10 | _("Granite is a basic building material and can be dug up by a granite mine."), | ||
1599 | 11 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
1600 | 12 | _("There is only a little bit of granite here.")), | ||
1601 | 13 | empire = pgettext("sentence_separator", "%s %s"):bformat( | ||
1602 | 14 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
1603 | 15 | _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."), | ||
1604 | 16 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
1605 | 17 | _("There is only a little bit of marble here.")), | ||
1606 | 18 | frisians = pgettext("sentence_separator", "%s %s"):bformat( | ||
1607 | 19 | -- TRANSLATORS: Helptext for a Frisian resource: Stones | ||
1608 | 20 | _("Granite is a basic building material and can be dug up by a rock mine."), | ||
1609 | 21 | -- TRANSLATORS: Helptext for a Frisian resource: Stones | ||
1610 | 22 | _("There is only a little bit of granite here.")), | ||
1611 | 23 | } | ||
1612 | 24 | local result = "" | ||
1613 | 25 | if tribe then | ||
1614 | 26 | result = helptext[tribe] | ||
1615 | 27 | else | ||
1616 | 28 | result = helptext["default"] | ||
1617 | 29 | end | ||
1618 | 30 | if (result == nil) then result = "" end | ||
1619 | 31 | return result | ||
1620 | 32 | end | ||
1621 | 0 | 33 | ||
1622 | === added file 'data/tribes/immovables/resi/helptexts/stones_2.lua' | |||
1623 | --- data/tribes/immovables/resi/helptexts/stones_2.lua 1970-01-01 00:00:00 +0000 | |||
1624 | +++ data/tribes/immovables/resi/helptexts/stones_2.lua 2018-09-14 06:31:21 +0000 | |||
1625 | @@ -0,0 +1,32 @@ | |||
1626 | 1 | function immovable_helptext(tribe) | ||
1627 | 2 | local helptext = { | ||
1628 | 3 | atlanteans = pgettext("sentence_separator", "%s %s"):bformat( | ||
1629 | 4 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
1630 | 5 | _("Precious stones are used in the construction of big buildings. They can be dug up by a crystal mine. You will also get granite from the mine."), | ||
1631 | 6 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
1632 | 7 | _("There are many precious stones here.")), | ||
1633 | 8 | barbarians = pgettext("sentence_separator", "%s %s"):bformat( | ||
1634 | 9 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
1635 | 10 | _("Granite is a basic building material and can be dug up by a granite mine."), | ||
1636 | 11 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
1637 | 12 | _("There is a lot of granite here.")), | ||
1638 | 13 | empire = pgettext("sentence_separator", "%s %s"):bformat( | ||
1639 | 14 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
1640 | 15 | _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."), | ||
1641 | 16 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
1642 | 17 | _("There is a lot of marble here.")), | ||
1643 | 18 | frisians = pgettext("sentence_separator", "%s %s"):bformat( | ||
1644 | 19 | -- TRANSLATORS: Helptext for a Frisian resource: Stones | ||
1645 | 20 | _("Granite is a basic building material and can be dug up by a rock mine."), | ||
1646 | 21 | -- TRANSLATORS: Helptext for a Frisian resource: Stones | ||
1647 | 22 | _("There is a lot of granite here.")), | ||
1648 | 23 | } | ||
1649 | 24 | local result = "" | ||
1650 | 25 | if tribe then | ||
1651 | 26 | result = helptext[tribe] | ||
1652 | 27 | else | ||
1653 | 28 | result = helptext["default"] | ||
1654 | 29 | end | ||
1655 | 30 | if (result == nil) then result = "" end | ||
1656 | 31 | return result | ||
1657 | 32 | end | ||
1658 | 0 | 33 | ||
1659 | === added file 'data/tribes/immovables/resi/helptexts/water.lua' | |||
1660 | --- data/tribes/immovables/resi/helptexts/water.lua 1970-01-01 00:00:00 +0000 | |||
1661 | +++ data/tribes/immovables/resi/helptexts/water.lua 2018-09-14 06:31:21 +0000 | |||
1662 | @@ -0,0 +1,14 @@ | |||
1663 | 1 | function immovable_helptext(tribe) | ||
1664 | 2 | local helptext = { | ||
1665 | 3 | -- TRANSLATORS: Helptext for a resource: Water | ||
1666 | 4 | default = _("There is water in the ground here that can be pulled up by a well.") | ||
1667 | 5 | } | ||
1668 | 6 | local result = "" | ||
1669 | 7 | if tribe then | ||
1670 | 8 | result = helptext[tribe] | ||
1671 | 9 | else | ||
1672 | 10 | result = helptext["default"] | ||
1673 | 11 | end | ||
1674 | 12 | if (result == nil) then result = "" end | ||
1675 | 13 | return result | ||
1676 | 14 | end | ||
1677 | 0 | 15 | ||
1678 | === removed directory 'data/tribes/immovables/resi_coal1' | |||
1679 | === removed file 'data/tribes/immovables/resi_coal1/helptexts.lua' | |||
1680 | --- data/tribes/immovables/resi_coal1/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1681 | +++ data/tribes/immovables/resi_coal1/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
1682 | @@ -1,17 +0,0 @@ | |||
1683 | 1 | function immovable_helptext(tribe) | ||
1684 | 2 | local helptext = { | ||
1685 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1686 | 4 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1687 | 5 | _("Coal veins contain coal that can be dug up by coal mines."), | ||
1688 | 6 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1689 | 7 | _("There is only a little bit of coal here.")) | ||
1690 | 8 | } | ||
1691 | 9 | local result = "" | ||
1692 | 10 | if tribe then | ||
1693 | 11 | result = helptext[tribe] | ||
1694 | 12 | else | ||
1695 | 13 | result = helptext["default"] | ||
1696 | 14 | end | ||
1697 | 15 | if (result == nil) then result = "" end | ||
1698 | 16 | return result | ||
1699 | 17 | end | ||
1700 | 18 | 0 | ||
1701 | === removed file 'data/tribes/immovables/resi_coal1/idle_00.png' | |||
1702 | 19 | Binary files data/tribes/immovables/resi_coal1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_coal1/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_coal1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_coal1/idle_00.png 1970-01-01 00:00:00 +0000 differ |
1703 | === removed file 'data/tribes/immovables/resi_coal1/init.lua' | |||
1704 | --- data/tribes/immovables/resi_coal1/init.lua 2017-11-18 14:19:28 +0000 | |||
1705 | +++ data/tribes/immovables/resi_coal1/init.lua 1970-01-01 00:00:00 +0000 | |||
1706 | @@ -1,23 +0,0 @@ | |||
1707 | 1 | dirname = path.dirname(__file__) | ||
1708 | 2 | |||
1709 | 3 | tribes:new_immovable_type { | ||
1710 | 4 | msgctxt = "immovable", | ||
1711 | 5 | name = "resi_coal1", | ||
1712 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1713 | 7 | descname = pgettext("immovable", "Resources: Coal Vein"), | ||
1714 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
1715 | 9 | attributes = { "resi" }, | ||
1716 | 10 | programs = { | ||
1717 | 11 | program = { | ||
1718 | 12 | "animate=idle 600000", | ||
1719 | 13 | "remove=" | ||
1720 | 14 | } | ||
1721 | 15 | }, | ||
1722 | 16 | |||
1723 | 17 | animations = { | ||
1724 | 18 | idle = { | ||
1725 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
1726 | 20 | hotspot = { 7, 10 }, | ||
1727 | 21 | }, | ||
1728 | 22 | } | ||
1729 | 23 | } | ||
1730 | 24 | 0 | ||
1731 | === removed directory 'data/tribes/immovables/resi_coal2' | |||
1732 | === removed file 'data/tribes/immovables/resi_coal2/helptexts.lua' | |||
1733 | --- data/tribes/immovables/resi_coal2/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1734 | +++ data/tribes/immovables/resi_coal2/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
1735 | @@ -1,17 +0,0 @@ | |||
1736 | 1 | function immovable_helptext(tribe) | ||
1737 | 2 | local helptext = { | ||
1738 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1739 | 4 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1740 | 5 | _("Coal veins contain coal that can be dug up by coal mines."), | ||
1741 | 6 | -- TRANSLATORS: Helptext for a resource: Coal | ||
1742 | 7 | _("There is a lot of coal here.")) | ||
1743 | 8 | } | ||
1744 | 9 | local result = "" | ||
1745 | 10 | if tribe then | ||
1746 | 11 | result = helptext[tribe] | ||
1747 | 12 | else | ||
1748 | 13 | result = helptext["default"] | ||
1749 | 14 | end | ||
1750 | 15 | if (result == nil) then result = "" end | ||
1751 | 16 | return result | ||
1752 | 17 | end | ||
1753 | 18 | 0 | ||
1754 | === removed file 'data/tribes/immovables/resi_coal2/idle_00.png' | |||
1755 | 19 | Binary files data/tribes/immovables/resi_coal2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_coal2/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_coal2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_coal2/idle_00.png 1970-01-01 00:00:00 +0000 differ |
1756 | === removed file 'data/tribes/immovables/resi_coal2/init.lua' | |||
1757 | --- data/tribes/immovables/resi_coal2/init.lua 2017-11-18 14:19:28 +0000 | |||
1758 | +++ data/tribes/immovables/resi_coal2/init.lua 1970-01-01 00:00:00 +0000 | |||
1759 | @@ -1,23 +0,0 @@ | |||
1760 | 1 | dirname = path.dirname(__file__) | ||
1761 | 2 | |||
1762 | 3 | tribes:new_immovable_type { | ||
1763 | 4 | msgctxt = "immovable", | ||
1764 | 5 | name = "resi_coal2", | ||
1765 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1766 | 7 | descname = pgettext("immovable", "Resources: Main Coal Vein"), | ||
1767 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
1768 | 9 | attributes = { "resi" }, | ||
1769 | 10 | programs = { | ||
1770 | 11 | program = { | ||
1771 | 12 | "animate=idle 600000", | ||
1772 | 13 | "remove=" | ||
1773 | 14 | } | ||
1774 | 15 | }, | ||
1775 | 16 | |||
1776 | 17 | animations = { | ||
1777 | 18 | idle = { | ||
1778 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
1779 | 20 | hotspot = { 7, 10 }, | ||
1780 | 21 | }, | ||
1781 | 22 | } | ||
1782 | 23 | } | ||
1783 | 24 | 0 | ||
1784 | === removed directory 'data/tribes/immovables/resi_gold1' | |||
1785 | === removed file 'data/tribes/immovables/resi_gold1/helptexts.lua' | |||
1786 | --- data/tribes/immovables/resi_gold1/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1787 | +++ data/tribes/immovables/resi_gold1/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
1788 | @@ -1,17 +0,0 @@ | |||
1789 | 1 | function immovable_helptext(tribe) | ||
1790 | 2 | local helptext = { | ||
1791 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1792 | 4 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1793 | 5 | _("Gold veins contain gold ore that can be dug up by gold mines."), | ||
1794 | 6 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1795 | 7 | _("There is only a little bit of gold here.")) | ||
1796 | 8 | } | ||
1797 | 9 | local result = "" | ||
1798 | 10 | if tribe then | ||
1799 | 11 | result = helptext[tribe] | ||
1800 | 12 | else | ||
1801 | 13 | result = helptext["default"] | ||
1802 | 14 | end | ||
1803 | 15 | if (result == nil) then result = "" end | ||
1804 | 16 | return result | ||
1805 | 17 | end | ||
1806 | 18 | 0 | ||
1807 | === removed file 'data/tribes/immovables/resi_gold1/idle_00.png' | |||
1808 | 19 | Binary files data/tribes/immovables/resi_gold1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_gold1/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_gold1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_gold1/idle_00.png 1970-01-01 00:00:00 +0000 differ |
1809 | === removed file 'data/tribes/immovables/resi_gold1/init.lua' | |||
1810 | --- data/tribes/immovables/resi_gold1/init.lua 2017-11-18 14:19:28 +0000 | |||
1811 | +++ data/tribes/immovables/resi_gold1/init.lua 1970-01-01 00:00:00 +0000 | |||
1812 | @@ -1,23 +0,0 @@ | |||
1813 | 1 | dirname = path.dirname(__file__) | ||
1814 | 2 | |||
1815 | 3 | tribes:new_immovable_type { | ||
1816 | 4 | msgctxt = "immovable", | ||
1817 | 5 | name = "resi_gold1", | ||
1818 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1819 | 7 | descname = pgettext("immovable", "Resources: Gold Vein"), | ||
1820 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
1821 | 9 | attributes = { "resi" }, | ||
1822 | 10 | programs = { | ||
1823 | 11 | program = { | ||
1824 | 12 | "animate=idle 600000", | ||
1825 | 13 | "remove=" | ||
1826 | 14 | } | ||
1827 | 15 | }, | ||
1828 | 16 | |||
1829 | 17 | animations = { | ||
1830 | 18 | idle = { | ||
1831 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
1832 | 20 | hotspot = { 7, 10 }, | ||
1833 | 21 | }, | ||
1834 | 22 | } | ||
1835 | 23 | } | ||
1836 | 24 | 0 | ||
1837 | === removed directory 'data/tribes/immovables/resi_gold2' | |||
1838 | === removed file 'data/tribes/immovables/resi_gold2/helptexts.lua' | |||
1839 | --- data/tribes/immovables/resi_gold2/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1840 | +++ data/tribes/immovables/resi_gold2/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
1841 | @@ -1,17 +0,0 @@ | |||
1842 | 1 | function immovable_helptext(tribe) | ||
1843 | 2 | local helptext = { | ||
1844 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1845 | 4 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1846 | 5 | _("Gold veins contain gold ore that can be dug up by gold mines."), | ||
1847 | 6 | -- TRANSLATORS: Helptext for a resource: Gold | ||
1848 | 7 | _("There is a lot of gold here.")) | ||
1849 | 8 | } | ||
1850 | 9 | local result = "" | ||
1851 | 10 | if tribe then | ||
1852 | 11 | result = helptext[tribe] | ||
1853 | 12 | else | ||
1854 | 13 | result = helptext["default"] | ||
1855 | 14 | end | ||
1856 | 15 | if (result == nil) then result = "" end | ||
1857 | 16 | return result | ||
1858 | 17 | end | ||
1859 | 18 | 0 | ||
1860 | === removed file 'data/tribes/immovables/resi_gold2/idle_00.png' | |||
1861 | 19 | Binary files data/tribes/immovables/resi_gold2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_gold2/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_gold2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_gold2/idle_00.png 1970-01-01 00:00:00 +0000 differ |
1862 | === removed file 'data/tribes/immovables/resi_gold2/init.lua' | |||
1863 | --- data/tribes/immovables/resi_gold2/init.lua 2017-11-18 14:19:28 +0000 | |||
1864 | +++ data/tribes/immovables/resi_gold2/init.lua 1970-01-01 00:00:00 +0000 | |||
1865 | @@ -1,23 +0,0 @@ | |||
1866 | 1 | dirname = path.dirname(__file__) | ||
1867 | 2 | |||
1868 | 3 | tribes:new_immovable_type { | ||
1869 | 4 | msgctxt = "immovable", | ||
1870 | 5 | name = "resi_gold2", | ||
1871 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1872 | 7 | descname = pgettext("immovable", "Resources: Main Gold Vein"), | ||
1873 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
1874 | 9 | attributes = { "resi" }, | ||
1875 | 10 | programs = { | ||
1876 | 11 | program = { | ||
1877 | 12 | "animate=idle 600000", | ||
1878 | 13 | "remove=" | ||
1879 | 14 | } | ||
1880 | 15 | }, | ||
1881 | 16 | |||
1882 | 17 | animations = { | ||
1883 | 18 | idle = { | ||
1884 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
1885 | 20 | hotspot = { 7, 10 }, | ||
1886 | 21 | }, | ||
1887 | 22 | } | ||
1888 | 23 | } | ||
1889 | 24 | 0 | ||
1890 | === removed directory 'data/tribes/immovables/resi_iron1' | |||
1891 | === removed file 'data/tribes/immovables/resi_iron1/helptexts.lua' | |||
1892 | --- data/tribes/immovables/resi_iron1/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1893 | +++ data/tribes/immovables/resi_iron1/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
1894 | @@ -1,17 +0,0 @@ | |||
1895 | 1 | function immovable_helptext(tribe) | ||
1896 | 2 | local helptext = { | ||
1897 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1898 | 4 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1899 | 5 | _("Iron veins contain iron ore that can be dug up by iron mines."), | ||
1900 | 6 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1901 | 7 | _("There is only a little bit of iron here.")) | ||
1902 | 8 | } | ||
1903 | 9 | local result = "" | ||
1904 | 10 | if tribe then | ||
1905 | 11 | result = helptext[tribe] | ||
1906 | 12 | else | ||
1907 | 13 | result = helptext["default"] | ||
1908 | 14 | end | ||
1909 | 15 | if (result == nil) then result = "" end | ||
1910 | 16 | return result | ||
1911 | 17 | end | ||
1912 | 18 | 0 | ||
1913 | === removed file 'data/tribes/immovables/resi_iron1/idle_00.png' | |||
1914 | 19 | Binary files data/tribes/immovables/resi_iron1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_iron1/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_iron1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_iron1/idle_00.png 1970-01-01 00:00:00 +0000 differ |
1915 | === removed file 'data/tribes/immovables/resi_iron1/init.lua' | |||
1916 | --- data/tribes/immovables/resi_iron1/init.lua 2017-11-18 14:19:28 +0000 | |||
1917 | +++ data/tribes/immovables/resi_iron1/init.lua 1970-01-01 00:00:00 +0000 | |||
1918 | @@ -1,23 +0,0 @@ | |||
1919 | 1 | dirname = path.dirname(__file__) | ||
1920 | 2 | |||
1921 | 3 | tribes:new_immovable_type { | ||
1922 | 4 | msgctxt = "immovable", | ||
1923 | 5 | name = "resi_iron1", | ||
1924 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1925 | 7 | descname = pgettext("immovable", "Resources: Iron Vein"), | ||
1926 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
1927 | 9 | attributes = { "resi" }, | ||
1928 | 10 | programs = { | ||
1929 | 11 | program = { | ||
1930 | 12 | "animate=idle 600000", | ||
1931 | 13 | "remove=" | ||
1932 | 14 | } | ||
1933 | 15 | }, | ||
1934 | 16 | |||
1935 | 17 | animations = { | ||
1936 | 18 | idle = { | ||
1937 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
1938 | 20 | hotspot = { 7, 10 }, | ||
1939 | 21 | }, | ||
1940 | 22 | } | ||
1941 | 23 | } | ||
1942 | 24 | 0 | ||
1943 | === removed directory 'data/tribes/immovables/resi_iron2' | |||
1944 | === removed file 'data/tribes/immovables/resi_iron2/helptexts.lua' | |||
1945 | --- data/tribes/immovables/resi_iron2/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1946 | +++ data/tribes/immovables/resi_iron2/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
1947 | @@ -1,17 +0,0 @@ | |||
1948 | 1 | function immovable_helptext(tribe) | ||
1949 | 2 | local helptext = { | ||
1950 | 3 | default = pgettext("sentence_separator", "%s %s"):bformat( | ||
1951 | 4 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1952 | 5 | _("Iron veins contain iron ore that can be dug up by iron mines."), | ||
1953 | 6 | -- TRANSLATORS: Helptext for a resource: Iron | ||
1954 | 7 | _("There is a lot of iron here.")) | ||
1955 | 8 | } | ||
1956 | 9 | local result = "" | ||
1957 | 10 | if tribe then | ||
1958 | 11 | result = helptext[tribe] | ||
1959 | 12 | else | ||
1960 | 13 | result = helptext["default"] | ||
1961 | 14 | end | ||
1962 | 15 | if (result == nil) then result = "" end | ||
1963 | 16 | return result | ||
1964 | 17 | end | ||
1965 | 18 | 0 | ||
1966 | === removed file 'data/tribes/immovables/resi_iron2/idle_00.png' | |||
1967 | 19 | Binary files data/tribes/immovables/resi_iron2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_iron2/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_iron2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_iron2/idle_00.png 1970-01-01 00:00:00 +0000 differ |
1968 | === removed file 'data/tribes/immovables/resi_iron2/init.lua' | |||
1969 | --- data/tribes/immovables/resi_iron2/init.lua 2017-11-18 14:19:28 +0000 | |||
1970 | +++ data/tribes/immovables/resi_iron2/init.lua 1970-01-01 00:00:00 +0000 | |||
1971 | @@ -1,23 +0,0 @@ | |||
1972 | 1 | dirname = path.dirname(__file__) | ||
1973 | 2 | |||
1974 | 3 | tribes:new_immovable_type { | ||
1975 | 4 | msgctxt = "immovable", | ||
1976 | 5 | name = "resi_iron2", | ||
1977 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
1978 | 7 | descname = pgettext("immovable", "Resources: Main Iron Vein"), | ||
1979 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
1980 | 9 | attributes = { "resi" }, | ||
1981 | 10 | programs = { | ||
1982 | 11 | program = { | ||
1983 | 12 | "animate=idle 600000", | ||
1984 | 13 | "remove=" | ||
1985 | 14 | } | ||
1986 | 15 | }, | ||
1987 | 16 | |||
1988 | 17 | animations = { | ||
1989 | 18 | idle = { | ||
1990 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
1991 | 20 | hotspot = { 7, 10 }, | ||
1992 | 21 | }, | ||
1993 | 22 | } | ||
1994 | 23 | } | ||
1995 | 24 | 0 | ||
1996 | === removed directory 'data/tribes/immovables/resi_none' | |||
1997 | === removed file 'data/tribes/immovables/resi_none/helptexts.lua' | |||
1998 | --- data/tribes/immovables/resi_none/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
1999 | +++ data/tribes/immovables/resi_none/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
2000 | @@ -1,14 +0,0 @@ | |||
2001 | 1 | function immovable_helptext(tribe) | ||
2002 | 2 | local helptext = { | ||
2003 | 3 | -- TRANSLATORS: Helptext for a resource: No resources | ||
2004 | 4 | default = _("There are no resources in the ground here.") | ||
2005 | 5 | } | ||
2006 | 6 | local result = "" | ||
2007 | 7 | if tribe then | ||
2008 | 8 | result = helptext[tribe] | ||
2009 | 9 | else | ||
2010 | 10 | result = helptext["default"] | ||
2011 | 11 | end | ||
2012 | 12 | if (result == nil) then result = "" end | ||
2013 | 13 | return result | ||
2014 | 14 | end | ||
2015 | 15 | 0 | ||
2016 | === removed file 'data/tribes/immovables/resi_none/idle_00.png' | |||
2017 | 16 | Binary files data/tribes/immovables/resi_none/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_none/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_none/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_none/idle_00.png 1970-01-01 00:00:00 +0000 differ |
2018 | === removed file 'data/tribes/immovables/resi_none/init.lua' | |||
2019 | --- data/tribes/immovables/resi_none/init.lua 2017-11-18 14:19:28 +0000 | |||
2020 | +++ data/tribes/immovables/resi_none/init.lua 1970-01-01 00:00:00 +0000 | |||
2021 | @@ -1,23 +0,0 @@ | |||
2022 | 1 | dirname = path.dirname(__file__) | ||
2023 | 2 | |||
2024 | 3 | tribes:new_immovable_type { | ||
2025 | 4 | msgctxt = "immovable", | ||
2026 | 5 | name = "resi_none", | ||
2027 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
2028 | 7 | descname = pgettext("immovable", "Resources: None"), | ||
2029 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
2030 | 9 | attributes = { "resi" }, | ||
2031 | 10 | programs = { | ||
2032 | 11 | program = { | ||
2033 | 12 | "animate=idle 600000", | ||
2034 | 13 | "remove=" | ||
2035 | 14 | } | ||
2036 | 15 | }, | ||
2037 | 16 | |||
2038 | 17 | animations = { | ||
2039 | 18 | idle = { | ||
2040 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
2041 | 20 | hotspot = { 7, 10 }, | ||
2042 | 21 | }, | ||
2043 | 22 | } | ||
2044 | 23 | } | ||
2045 | 24 | 0 | ||
2046 | === removed directory 'data/tribes/immovables/resi_stones1' | |||
2047 | === removed file 'data/tribes/immovables/resi_stones1/helptexts.lua' | |||
2048 | --- data/tribes/immovables/resi_stones1/helptexts.lua 2017-11-18 14:19:28 +0000 | |||
2049 | +++ data/tribes/immovables/resi_stones1/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
2050 | @@ -1,27 +0,0 @@ | |||
2051 | 1 | function immovable_helptext(tribe) | ||
2052 | 2 | local helptext = { | ||
2053 | 3 | atlanteans = pgettext("sentence_separator", "%s %s"):bformat( | ||
2054 | 4 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
2055 | 5 | _("Precious stones are used in the construction of big buildings. They can be dug up by a crystal mine. You will also get granite from the mine."), | ||
2056 | 6 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
2057 | 7 | _("There are only a few precious stones here.")), | ||
2058 | 8 | barbarians = pgettext("sentence_separator", "%s %s"):bformat( | ||
2059 | 9 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
2060 | 10 | _("Granite is a basic building material and can be dug up by a granite mine."), | ||
2061 | 11 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
2062 | 12 | _("There is only a little bit of granite here.")), | ||
2063 | 13 | empire = pgettext("sentence_separator", "%s %s"):bformat( | ||
2064 | 14 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
2065 | 15 | _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."), | ||
2066 | 16 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
2067 | 17 | _("There is only a little bit of marble here.")) | ||
2068 | 18 | } | ||
2069 | 19 | local result = "" | ||
2070 | 20 | if tribe then | ||
2071 | 21 | result = helptext[tribe] | ||
2072 | 22 | else | ||
2073 | 23 | result = helptext["default"] | ||
2074 | 24 | end | ||
2075 | 25 | if (result == nil) then result = "" end | ||
2076 | 26 | return result | ||
2077 | 27 | end | ||
2078 | 28 | 0 | ||
2079 | === removed file 'data/tribes/immovables/resi_stones1/idle_00.png' | |||
2080 | 29 | Binary files data/tribes/immovables/resi_stones1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_stones1/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_stones1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_stones1/idle_00.png 1970-01-01 00:00:00 +0000 differ |
2081 | === removed file 'data/tribes/immovables/resi_stones1/init.lua' | |||
2082 | --- data/tribes/immovables/resi_stones1/init.lua 2017-11-18 14:19:28 +0000 | |||
2083 | +++ data/tribes/immovables/resi_stones1/init.lua 1970-01-01 00:00:00 +0000 | |||
2084 | @@ -1,23 +0,0 @@ | |||
2085 | 1 | dirname = path.dirname(__file__) | ||
2086 | 2 | |||
2087 | 3 | tribes:new_immovable_type { | ||
2088 | 4 | msgctxt = "immovable", | ||
2089 | 5 | name = "resi_stones1", | ||
2090 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
2091 | 7 | descname = pgettext("immovable", "Resources: Some Stones"), | ||
2092 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
2093 | 9 | attributes = { "resi" }, | ||
2094 | 10 | programs = { | ||
2095 | 11 | program = { | ||
2096 | 12 | "animate=idle 600000", | ||
2097 | 13 | "remove=" | ||
2098 | 14 | } | ||
2099 | 15 | }, | ||
2100 | 16 | |||
2101 | 17 | animations = { | ||
2102 | 18 | idle = { | ||
2103 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
2104 | 20 | hotspot = { 7, 10 }, | ||
2105 | 21 | }, | ||
2106 | 22 | } | ||
2107 | 23 | } | ||
2108 | 24 | 0 | ||
2109 | === removed directory 'data/tribes/immovables/resi_stones2' | |||
2110 | === removed file 'data/tribes/immovables/resi_stones2/helptexts.lua' | |||
2111 | --- data/tribes/immovables/resi_stones2/helptexts.lua 2017-11-18 14:19:28 +0000 | |||
2112 | +++ data/tribes/immovables/resi_stones2/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
2113 | @@ -1,27 +0,0 @@ | |||
2114 | 1 | function immovable_helptext(tribe) | ||
2115 | 2 | local helptext = { | ||
2116 | 3 | atlanteans = pgettext("sentence_separator", "%s %s"):bformat( | ||
2117 | 4 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
2118 | 5 | _("Precious stones are used in the construction of big buildings. They can be dug up by a crystal mine. You will also get granite from the mine."), | ||
2119 | 6 | -- TRANSLATORS: Helptext for an Atlantean resource: Stones | ||
2120 | 7 | _("There are many precious stones here.")), | ||
2121 | 8 | barbarians = pgettext("sentence_separator", "%s %s"):bformat( | ||
2122 | 9 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
2123 | 10 | _("Granite is a basic building material and can be dug up by a granite mine."), | ||
2124 | 11 | -- TRANSLATORS: Helptext for a Barbarian resource: Stones | ||
2125 | 12 | _("There is a lot of granite here.")), | ||
2126 | 13 | empire = pgettext("sentence_separator", "%s %s"):bformat( | ||
2127 | 14 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
2128 | 15 | _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."), | ||
2129 | 16 | -- TRANSLATORS: Helptext for an Empire resource: Stones | ||
2130 | 17 | _("There is a lot of marble here.")) | ||
2131 | 18 | } | ||
2132 | 19 | local result = "" | ||
2133 | 20 | if tribe then | ||
2134 | 21 | result = helptext[tribe] | ||
2135 | 22 | else | ||
2136 | 23 | result = helptext["default"] | ||
2137 | 24 | end | ||
2138 | 25 | if (result == nil) then result = "" end | ||
2139 | 26 | return result | ||
2140 | 27 | end | ||
2141 | 28 | 0 | ||
2142 | === removed file 'data/tribes/immovables/resi_stones2/idle_00.png' | |||
2143 | 29 | Binary files data/tribes/immovables/resi_stones2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_stones2/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_stones2/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_stones2/idle_00.png 1970-01-01 00:00:00 +0000 differ |
2144 | === removed file 'data/tribes/immovables/resi_stones2/init.lua' | |||
2145 | --- data/tribes/immovables/resi_stones2/init.lua 2017-11-18 14:19:28 +0000 | |||
2146 | +++ data/tribes/immovables/resi_stones2/init.lua 1970-01-01 00:00:00 +0000 | |||
2147 | @@ -1,23 +0,0 @@ | |||
2148 | 1 | dirname = path.dirname(__file__) | ||
2149 | 2 | |||
2150 | 3 | tribes:new_immovable_type { | ||
2151 | 4 | msgctxt = "immovable", | ||
2152 | 5 | name = "resi_stones2", | ||
2153 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
2154 | 7 | descname = pgettext("immovable", "Resources: A Lot of Stones"), | ||
2155 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
2156 | 9 | attributes = { "resi" }, | ||
2157 | 10 | programs = { | ||
2158 | 11 | program = { | ||
2159 | 12 | "animate=idle 600000", | ||
2160 | 13 | "remove=" | ||
2161 | 14 | } | ||
2162 | 15 | }, | ||
2163 | 16 | |||
2164 | 17 | animations = { | ||
2165 | 18 | idle = { | ||
2166 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
2167 | 20 | hotspot = { 7, 10 }, | ||
2168 | 21 | }, | ||
2169 | 22 | } | ||
2170 | 23 | } | ||
2171 | 24 | 0 | ||
2172 | === removed directory 'data/tribes/immovables/resi_water1' | |||
2173 | === removed file 'data/tribes/immovables/resi_water1/helptexts.lua' | |||
2174 | --- data/tribes/immovables/resi_water1/helptexts.lua 2017-11-12 16:21:28 +0000 | |||
2175 | +++ data/tribes/immovables/resi_water1/helptexts.lua 1970-01-01 00:00:00 +0000 | |||
2176 | @@ -1,14 +0,0 @@ | |||
2177 | 1 | function immovable_helptext(tribe) | ||
2178 | 2 | local helptext = { | ||
2179 | 3 | -- TRANSLATORS: Helptext for a resource: Water | ||
2180 | 4 | default = _("There is water in the ground here that can be pulled up by a well.") | ||
2181 | 5 | } | ||
2182 | 6 | local result = "" | ||
2183 | 7 | if tribe then | ||
2184 | 8 | result = helptext[tribe] | ||
2185 | 9 | else | ||
2186 | 10 | result = helptext["default"] | ||
2187 | 11 | end | ||
2188 | 12 | if (result == nil) then result = "" end | ||
2189 | 13 | return result | ||
2190 | 14 | end | ||
2191 | 15 | 0 | ||
2192 | === removed file 'data/tribes/immovables/resi_water1/idle_00.png' | |||
2193 | 16 | Binary files data/tribes/immovables/resi_water1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_water1/idle_00.png 1970-01-01 00:00:00 +0000 differ | 1 | Binary files data/tribes/immovables/resi_water1/idle_00.png 2014-12-12 10:21:43 +0000 and data/tribes/immovables/resi_water1/idle_00.png 1970-01-01 00:00:00 +0000 differ |
2194 | === removed file 'data/tribes/immovables/resi_water1/init.lua' | |||
2195 | --- data/tribes/immovables/resi_water1/init.lua 2017-11-18 14:19:28 +0000 | |||
2196 | +++ data/tribes/immovables/resi_water1/init.lua 1970-01-01 00:00:00 +0000 | |||
2197 | @@ -1,23 +0,0 @@ | |||
2198 | 1 | dirname = path.dirname(__file__) | ||
2199 | 2 | |||
2200 | 3 | tribes:new_immovable_type { | ||
2201 | 4 | msgctxt = "immovable", | ||
2202 | 5 | name = "resi_water1", | ||
2203 | 6 | -- TRANSLATORS: This is a resource name used in lists of resources | ||
2204 | 7 | descname = pgettext("immovable", "Resources: Water Vein"), | ||
2205 | 8 | helptext_script = dirname .. "helptexts.lua", | ||
2206 | 9 | attributes = { "resi" }, | ||
2207 | 10 | programs = { | ||
2208 | 11 | program = { | ||
2209 | 12 | "animate=idle 600000", | ||
2210 | 13 | "remove=" | ||
2211 | 14 | } | ||
2212 | 15 | }, | ||
2213 | 16 | |||
2214 | 17 | animations = { | ||
2215 | 18 | idle = { | ||
2216 | 19 | pictures = path.list_files(dirname .. "idle_??.png"), | ||
2217 | 20 | hotspot = { 7, 10 }, | ||
2218 | 21 | }, | ||
2219 | 22 | } | ||
2220 | 23 | } | ||
2221 | 24 | 0 | ||
2222 | === modified file 'data/tribes/init.lua' | |||
2223 | --- data/tribes/init.lua 2018-07-15 10:32:12 +0000 | |||
2224 | +++ data/tribes/init.lua 2018-09-14 06:31:21 +0000 | |||
2225 | @@ -179,16 +179,10 @@ | |||
2226 | 179 | include "tribes/immovables/reed_ripe/init.lua" | 179 | include "tribes/immovables/reed_ripe/init.lua" |
2227 | 180 | include "tribes/immovables/reed_small/init.lua" | 180 | include "tribes/immovables/reed_small/init.lua" |
2228 | 181 | include "tribes/immovables/reed_tiny/init.lua" | 181 | include "tribes/immovables/reed_tiny/init.lua" |
2239 | 182 | include "tribes/immovables/resi_coal1/init.lua" | 182 | include "tribes/immovables/resi/atlanteans/init.lua" |
2240 | 183 | include "tribes/immovables/resi_coal2/init.lua" | 183 | include "tribes/immovables/resi/barbarians/init.lua" |
2241 | 184 | include "tribes/immovables/resi_gold1/init.lua" | 184 | include "tribes/immovables/resi/empire/init.lua" |
2242 | 185 | include "tribes/immovables/resi_gold2/init.lua" | 185 | include "tribes/immovables/resi/frisians/init.lua" |
2233 | 186 | include "tribes/immovables/resi_iron1/init.lua" | ||
2234 | 187 | include "tribes/immovables/resi_iron2/init.lua" | ||
2235 | 188 | include "tribes/immovables/resi_none/init.lua" | ||
2236 | 189 | include "tribes/immovables/resi_stones1/init.lua" | ||
2237 | 190 | include "tribes/immovables/resi_stones2/init.lua" | ||
2238 | 191 | include "tribes/immovables/resi_water1/init.lua" | ||
2243 | 192 | include "tribes/immovables/shipconstruction_atlanteans/init.lua" | 186 | include "tribes/immovables/shipconstruction_atlanteans/init.lua" |
2244 | 193 | include "tribes/immovables/shipconstruction_barbarians/init.lua" | 187 | include "tribes/immovables/shipconstruction_barbarians/init.lua" |
2245 | 194 | include "tribes/immovables/shipconstruction_empire/init.lua" | 188 | include "tribes/immovables/shipconstruction_empire/init.lua" |
2246 | 195 | 189 | ||
2247 | === modified file 'data/tribes/scripting/help/building_help.lua' | |||
2248 | --- data/tribes/scripting/help/building_help.lua 2018-03-24 14:31:37 +0000 | |||
2249 | +++ data/tribes/scripting/help/building_help.lua 2018-09-14 06:31:21 +0000 | |||
2250 | @@ -1,5 +1,3 @@ | |||
2251 | 1 | -- TODO(GunChleoc): get resi_00.png from C++ | ||
2252 | 2 | |||
2253 | 3 | include "tribes/scripting/help/format_help.lua" | 1 | include "tribes/scripting/help/format_help.lua" |
2254 | 4 | 2 | ||
2255 | 5 | -- RST | 3 | -- RST |
2256 | @@ -46,15 +44,24 @@ | |||
2257 | 46 | -- :arg text: comment of the image. | 44 | -- :arg text: comment of the image. |
2258 | 47 | -- :returns: a row of pictures connected by arrows. | 45 | -- :returns: a row of pictures connected by arrows. |
2259 | 48 | -- | 46 | -- |
2261 | 49 | function dependencies_resi(resource, items, text) | 47 | function dependencies_resi(tribename, resource, items, text) |
2262 | 50 | if not text then | 48 | if not text then |
2263 | 51 | text = "" | 49 | text = "" |
2264 | 52 | end | 50 | end |
2266 | 53 | local items_with_resouce = { "tribes/immovables/" .. resource .. "/idle_00.png" } | 51 | local tribe_descr = wl.Game():get_tribe_description(tribename) |
2267 | 52 | local resi | ||
2268 | 53 | local am = 0 | ||
2269 | 54 | for amount,name in pairs(tribe_descr.resource_indicators[resource]) do | ||
2270 | 55 | if amount > am then | ||
2271 | 56 | resi = name | ||
2272 | 57 | am = amount | ||
2273 | 58 | end | ||
2274 | 59 | end | ||
2275 | 60 | local items_with_resource = { wl.Game():get_immovable_description(resi).representative_image } | ||
2276 | 54 | for count, item in pairs(items) do | 61 | for count, item in pairs(items) do |
2278 | 55 | table.insert(items_with_resouce, item.icon_name) | 62 | table.insert(items_with_resource, item.icon_name) |
2279 | 56 | end | 63 | end |
2281 | 57 | return dependencies_basic(items_with_resouce, text) | 64 | return dependencies_basic(items_with_resource, text) |
2282 | 58 | end | 65 | end |
2283 | 59 | 66 | ||
2284 | 60 | 67 | ||
2285 | @@ -301,8 +308,8 @@ | |||
2286 | 301 | elseif(resi_name == "quartz") then resi_name = "stones" | 308 | elseif(resi_name == "quartz") then resi_name = "stones" |
2287 | 302 | elseif(resi_name == "marble") then resi_name = "stones" | 309 | elseif(resi_name == "marble") then resi_name = "stones" |
2288 | 303 | elseif(resi_name == "gold_ore") then resi_name = "gold" end | 310 | elseif(resi_name == "gold_ore") then resi_name = "gold" end |
2291 | 304 | result = result .. dependencies_resi( | 311 | result = result .. dependencies_resi(tribe.name, |
2292 | 305 | "resi_"..resi_name.."2", | 312 | resi_name, |
2293 | 306 | {building_description, ware_description}, | 313 | {building_description, ware_description}, |
2294 | 307 | ware_description.descname | 314 | ware_description.descname |
2295 | 308 | ) | 315 | ) |
2296 | 309 | 316 | ||
2297 | === modified file 'src/logic/editor_game_base.cc' | |||
2298 | --- src/logic/editor_game_base.cc 2018-04-27 06:11:05 +0000 | |||
2299 | +++ src/logic/editor_game_base.cc 2018-09-14 06:31:21 +0000 | |||
2300 | @@ -42,6 +42,7 @@ | |||
2301 | 42 | #include "logic/map_objects/tribes/ware_descr.h" | 42 | #include "logic/map_objects/tribes/ware_descr.h" |
2302 | 43 | #include "logic/map_objects/tribes/worker.h" | 43 | #include "logic/map_objects/tribes/worker.h" |
2303 | 44 | #include "logic/map_objects/world/critter.h" | 44 | #include "logic/map_objects/world/critter.h" |
2304 | 45 | #include "logic/map_objects/world/resource_description.h" | ||
2305 | 45 | #include "logic/map_objects/world/world.h" | 46 | #include "logic/map_objects/world/world.h" |
2306 | 46 | #include "logic/mapregion.h" | 47 | #include "logic/mapregion.h" |
2307 | 47 | #include "logic/player.h" | 48 | #include "logic/player.h" |
2308 | @@ -199,6 +200,20 @@ | |||
2309 | 199 | assert(tribes_); | 200 | assert(tribes_); |
2310 | 200 | tribes_->postload(); | 201 | tribes_->postload(); |
2311 | 201 | 202 | ||
2312 | 203 | for (DescriptionIndex i = 0; i < tribes_->nrtribes(); i++) { | ||
2313 | 204 | const TribeDescr* tribe = tribes_->get_tribe_descr(i); | ||
2314 | 205 | for (DescriptionIndex j = 0; j < world_->get_nr_resources(); j++) { | ||
2315 | 206 | const ResourceDescription* res = world_->get_resource(j); | ||
2316 | 207 | if (res->detectable()) { | ||
2317 | 208 | // This function will throw an exception if this tribe doesn't | ||
2318 | 209 | // have a high enough resource indicator for this resource | ||
2319 | 210 | tribe->get_resource_indicator(res, res->max_amount()); | ||
2320 | 211 | } | ||
2321 | 212 | } | ||
2322 | 213 | // For the "none" indicator | ||
2323 | 214 | tribe->get_resource_indicator(nullptr, 0); | ||
2324 | 215 | } | ||
2325 | 216 | |||
2326 | 202 | // TODO(unknown): postload players? (maybe) | 217 | // TODO(unknown): postload players? (maybe) |
2327 | 203 | } | 218 | } |
2328 | 204 | 219 | ||
2329 | 205 | 220 | ||
2330 | === modified file 'src/logic/map_objects/tribes/tribe_descr.cc' | |||
2331 | --- src/logic/map_objects/tribes/tribe_descr.cc 2018-04-07 16:59:00 +0000 | |||
2332 | +++ src/logic/map_objects/tribes/tribe_descr.cc 2018-09-14 06:31:21 +0000 | |||
2333 | @@ -162,6 +162,20 @@ | |||
2334 | 162 | } | 162 | } |
2335 | 163 | } | 163 | } |
2336 | 164 | 164 | ||
2337 | 165 | items_table = table.get_table("resource_indicators"); | ||
2338 | 166 | for (std::string resource : items_table->keys<std::string>()) { | ||
2339 | 167 | ResourceIndicatorList resis; | ||
2340 | 168 | std::unique_ptr<LuaTable> tbl = items_table->get_table(resource); | ||
2341 | 169 | const std::set<int> keys = tbl->keys<int>(); | ||
2342 | 170 | for (int upper_limit : keys) { | ||
2343 | 171 | resis[upper_limit] = tribes_.safe_immovable_index(tbl->get_string(upper_limit)); | ||
2344 | 172 | } | ||
2345 | 173 | if (resis.empty()) { | ||
2346 | 174 | throw GameDataError("Tribe has no indicators for resource %s.", resource.c_str()); | ||
2347 | 175 | } | ||
2348 | 176 | resource_indicators_[resource] = resis; | ||
2349 | 177 | }; | ||
2350 | 178 | |||
2351 | 165 | ship_names_ = table.get_table("ship_names")->array_entries<std::string>(); | 179 | ship_names_ = table.get_table("ship_names")->array_entries<std::string>(); |
2352 | 166 | 180 | ||
2353 | 167 | for (const std::string& buildingname : | 181 | for (const std::string& buildingname : |
2354 | @@ -226,6 +240,9 @@ | |||
2355 | 226 | const std::set<DescriptionIndex>& TribeDescr::immovables() const { | 240 | const std::set<DescriptionIndex>& TribeDescr::immovables() const { |
2356 | 227 | return immovables_; | 241 | return immovables_; |
2357 | 228 | } | 242 | } |
2358 | 243 | const ResourceIndicatorSet& TribeDescr::resource_indicators() const { | ||
2359 | 244 | return resource_indicators_; | ||
2360 | 245 | } | ||
2361 | 229 | 246 | ||
2362 | 230 | bool TribeDescr::has_building(const DescriptionIndex& index) const { | 247 | bool TribeDescr::has_building(const DescriptionIndex& index) const { |
2363 | 231 | return std::find(buildings_.begin(), buildings_.end(), index) != buildings_.end(); | 248 | return std::find(buildings_.begin(), buildings_.end(), index) != buildings_.end(); |
2364 | @@ -374,41 +391,35 @@ | |||
2365 | 374 | DescriptionIndex TribeDescr::get_resource_indicator(ResourceDescription const* const res, | 391 | DescriptionIndex TribeDescr::get_resource_indicator(ResourceDescription const* const res, |
2366 | 375 | const ResourceAmount amount) const { | 392 | const ResourceAmount amount) const { |
2367 | 376 | if (!res || !amount) { | 393 | if (!res || !amount) { |
2403 | 377 | DescriptionIndex idx = immovable_index("resi_none"); | 394 | auto list = resource_indicators_.find(""); |
2404 | 378 | if (!has_immovable(idx)) { | 395 | if (list == resource_indicators_.end() || list->second.empty()) { |
2405 | 379 | throw GameDataError("There is no resource indicator for resi_none!"); | 396 | throw GameDataError("Tribe '%s' has no indicator for no resources!", descname_.c_str()); |
2406 | 380 | } | 397 | } |
2407 | 381 | return idx; | 398 | return list->second.begin()->second; |
2408 | 382 | } | 399 | } |
2409 | 383 | 400 | ||
2410 | 384 | int32_t i = 1; | 401 | auto list = resource_indicators_.find(res->name()); |
2411 | 385 | int32_t num_indicators = 0; | 402 | if (list == resource_indicators_.end() || list->second.empty()) { |
2412 | 386 | for (;;) { | 403 | throw GameDataError("Tribe '%s' has no indicators for resource '%s'!", descname_.c_str(), res->name().c_str()); |
2413 | 387 | const std::string resi_filename = | 404 | } |
2414 | 388 | (boost::format("resi_%s%i") % res->name().c_str() % i).str(); | 405 | |
2415 | 389 | if (!has_immovable(immovable_index(resi_filename))) { | 406 | uint32_t lowest = 0; |
2416 | 390 | break; | 407 | for (const auto& resi : list->second) { |
2417 | 391 | } | 408 | if (resi.first < amount) { |
2418 | 392 | ++i; | 409 | continue; |
2419 | 393 | ++num_indicators; | 410 | } |
2420 | 394 | } | 411 | else if (lowest < amount || resi.first < lowest) { |
2421 | 395 | 412 | lowest = resi.first; | |
2422 | 396 | if (!num_indicators) { | 413 | } |
2423 | 397 | throw GameDataError("There is no resource indicator for resource %s", res->name().c_str()); | 414 | } |
2424 | 398 | } | 415 | |
2425 | 399 | 416 | if (lowest < amount) { | |
2426 | 400 | int32_t bestmatch = | 417 | throw GameDataError( |
2427 | 401 | static_cast<int32_t>((static_cast<float>(amount) / res->max_amount()) * num_indicators); | 418 | "Tribe '%s' has no indicators for amount %i of resource '%s' (highest possible amount is %i)!", |
2428 | 402 | if (bestmatch > num_indicators) { | 419 | descname_.c_str(), amount, res->name().c_str(), lowest); |
2429 | 403 | throw GameDataError("Amount of %s is %i but max amount is %i", res->name().c_str(), | 420 | } |
2430 | 404 | static_cast<unsigned int>(amount), | 421 | |
2431 | 405 | static_cast<unsigned int>(res->max_amount())); | 422 | return list->second.find(lowest)->second; |
2397 | 406 | } | ||
2398 | 407 | if (amount < res->max_amount()) { | ||
2399 | 408 | bestmatch += 1; // Resi start with 1, not 0 | ||
2400 | 409 | } | ||
2401 | 410 | |||
2402 | 411 | return immovable_index((boost::format("resi_%s%i") % res->name().c_str() % bestmatch).str()); | ||
2432 | 412 | } | 423 | } |
2433 | 413 | 424 | ||
2434 | 414 | void TribeDescr::resize_ware_orders(size_t maxLength) { | 425 | void TribeDescr::resize_ware_orders(size_t maxLength) { |
2435 | 415 | 426 | ||
2436 | === modified file 'src/logic/map_objects/tribes/tribe_descr.h' | |||
2437 | --- src/logic/map_objects/tribes/tribe_descr.h 2018-04-07 16:59:00 +0000 | |||
2438 | +++ src/logic/map_objects/tribes/tribe_descr.h 2018-09-14 06:31:21 +0000 | |||
2439 | @@ -49,6 +49,16 @@ | |||
2440 | 49 | struct Event; | 49 | struct Event; |
2441 | 50 | 50 | ||
2442 | 51 | /* | 51 | /* |
2443 | 52 | * Resource indicators: | ||
2444 | 53 | * A ResourceIndicatorSet maps the resource name to a ResourceIndicatorList. | ||
2445 | 54 | * A ResourceIndicatorList maps resource amounts to the DescriptionIndex of an immovable this player uses. | ||
2446 | 55 | * Special case: The ResourceIndicatorList mapped to "" contains resis that will be used in locations | ||
2447 | 56 | * without resources. If it has several entries, result is arbitrary. | ||
2448 | 57 | */ | ||
2449 | 58 | using ResourceIndicatorList = std::map<uint32_t, DescriptionIndex>; | ||
2450 | 59 | using ResourceIndicatorSet = std::map<std::string, ResourceIndicatorList>; | ||
2451 | 60 | |||
2452 | 61 | /* | ||
2453 | 52 | Tribes | 62 | Tribes |
2454 | 53 | ------ | 63 | ------ |
2455 | 54 | 64 | ||
2456 | @@ -72,6 +82,7 @@ | |||
2457 | 72 | const std::set<DescriptionIndex>& wares() const; | 82 | const std::set<DescriptionIndex>& wares() const; |
2458 | 73 | const std::set<DescriptionIndex>& workers() const; | 83 | const std::set<DescriptionIndex>& workers() const; |
2459 | 74 | const std::set<DescriptionIndex>& immovables() const; | 84 | const std::set<DescriptionIndex>& immovables() const; |
2460 | 85 | const ResourceIndicatorSet& resource_indicators() const; | ||
2461 | 75 | 86 | ||
2462 | 76 | bool has_building(const DescriptionIndex& index) const; | 87 | bool has_building(const DescriptionIndex& index) const; |
2463 | 77 | bool has_ware(const DescriptionIndex& index) const; | 88 | bool has_ware(const DescriptionIndex& index) const; |
2464 | @@ -184,6 +195,7 @@ | |||
2465 | 184 | std::vector<std::string> ship_names_; | 195 | std::vector<std::string> ship_names_; |
2466 | 185 | std::set<DescriptionIndex> workers_; | 196 | std::set<DescriptionIndex> workers_; |
2467 | 186 | std::set<DescriptionIndex> wares_; | 197 | std::set<DescriptionIndex> wares_; |
2468 | 198 | ResourceIndicatorSet resource_indicators_; | ||
2469 | 187 | // The wares that are used by construction sites | 199 | // The wares that are used by construction sites |
2470 | 188 | std::set<DescriptionIndex> construction_materials_; | 200 | std::set<DescriptionIndex> construction_materials_; |
2471 | 189 | // Special units. Some of them are used by the engine, some are only used by the AI. | 201 | // Special units. Some of them are used by the engine, some are only used by the AI. |
2472 | 190 | 202 | ||
2473 | === modified file 'src/map_io/tribes_legacy_lookup_table.cc' | |||
2474 | --- src/map_io/tribes_legacy_lookup_table.cc 2018-04-07 16:59:00 +0000 | |||
2475 | +++ src/map_io/tribes_legacy_lookup_table.cc 2018-09-14 06:31:21 +0000 | |||
2476 | @@ -194,9 +194,19 @@ | |||
2477 | 194 | {"cornfield_m", "cornfield_medium"}, | 194 | {"cornfield_m", "cornfield_medium"}, |
2478 | 195 | {"cornfield_s", "cornfield_small"}, | 195 | {"cornfield_s", "cornfield_small"}, |
2479 | 196 | {"cornfield_t", "cornfield_tiny"}, | 196 | {"cornfield_t", "cornfield_tiny"}, |
2482 | 197 | {"resi_granite1", "resi_stones1"}, | 197 | {"resi_granite1", "atlanteans_resi_stones_1"}, |
2483 | 198 | {"resi_granite2", "resi_stones2"}, | 198 | {"resi_granite2", "atlanteans_resi_stones_2"}, |
2484 | 199 | {"shipconstruction", "atlanteans_shipconstruction"}, | 199 | {"shipconstruction", "atlanteans_shipconstruction"}, |
2485 | 200 | {"resi_coal1", "atlanteans_resi_coal_1"}, | ||
2486 | 201 | {"resi_iron1", "atlanteans_resi_iron_1"}, | ||
2487 | 202 | {"resi_gold1", "atlanteans_resi_gold_1"}, | ||
2488 | 203 | {"resi_stones1", "atlanteans_resi_stones_1"}, | ||
2489 | 204 | {"resi_coal2", "atlanteans_resi_coal_2"}, | ||
2490 | 205 | {"resi_iron2", "atlanteans_resi_iron_2"}, | ||
2491 | 206 | {"resi_gold2", "atlanteans_resi_gold_2"}, | ||
2492 | 207 | {"resi_stones2", "atlanteans_resi_stones_2"}, | ||
2493 | 208 | {"resi_none", "atlanteans_resi_none"}, | ||
2494 | 209 | {"resi_water1", "atlanteans_resi_water"}, | ||
2495 | 200 | }), | 210 | }), |
2496 | 201 | std::make_pair("barbarians", | 211 | std::make_pair("barbarians", |
2497 | 202 | std::map<std::string, std::string>{ | 212 | std::map<std::string, std::string>{ |
2498 | @@ -209,9 +219,19 @@ | |||
2499 | 209 | {"reed0s", "reed_small"}, | 219 | {"reed0s", "reed_small"}, |
2500 | 210 | {"reed0t", "reed_tiny"}, | 220 | {"reed0t", "reed_tiny"}, |
2501 | 211 | {"reed1", "reed_ripe"}, | 221 | {"reed1", "reed_ripe"}, |
2504 | 212 | {"resi_granite1", "resi_stones1"}, | 222 | {"resi_granite1", "barbarians_resi_stones_1"}, |
2505 | 213 | {"resi_granite2", "resi_stones2"}, | 223 | {"resi_granite2", "barbarians_resi_stones_2"}, |
2506 | 214 | {"shipconstruction", "barbarians_shipconstruction"}, | 224 | {"shipconstruction", "barbarians_shipconstruction"}, |
2507 | 225 | {"resi_coal1", "barbarians_resi_coal_1"}, | ||
2508 | 226 | {"resi_iron1", "barbarians_resi_iron_1"}, | ||
2509 | 227 | {"resi_gold1", "barbarians_resi_gold_1"}, | ||
2510 | 228 | {"resi_stones1", "barbarians_resi_stones_1"}, | ||
2511 | 229 | {"resi_coal2", "barbarians_resi_coal_2"}, | ||
2512 | 230 | {"resi_iron2", "barbarians_resi_iron_2"}, | ||
2513 | 231 | {"resi_gold2", "barbarians_resi_gold_2"}, | ||
2514 | 232 | {"resi_stones2", "barbarians_resi_stones_2"}, | ||
2515 | 233 | {"resi_none", "barbarians_resi_none"}, | ||
2516 | 234 | {"resi_water1", "barbarians_resi_water"}, | ||
2517 | 215 | }), | 235 | }), |
2518 | 216 | std::make_pair("empire", | 236 | std::make_pair("empire", |
2519 | 217 | std::map<std::string, std::string>{ | 237 | std::map<std::string, std::string>{ |
2520 | @@ -224,9 +244,32 @@ | |||
2521 | 224 | {"wine0s", "grapevine_small"}, | 244 | {"wine0s", "grapevine_small"}, |
2522 | 225 | {"wine0t", "grapevine_tiny"}, | 245 | {"wine0t", "grapevine_tiny"}, |
2523 | 226 | {"wine1", "grapevine_ripe"}, | 246 | {"wine1", "grapevine_ripe"}, |
2526 | 227 | {"resi_granite1", "resi_stones1"}, | 247 | {"resi_granite1", "empire_resi_stones_1"}, |
2527 | 228 | {"resi_granite2", "resi_stones2"}, | 248 | {"resi_granite2", "empire_resi_stones_2"}, |
2528 | 229 | {"shipconstruction", "empire_shipconstruction"}, | 249 | {"shipconstruction", "empire_shipconstruction"}, |
2529 | 250 | {"resi_coal1", "empire_resi_coal_1"}, | ||
2530 | 251 | {"resi_iron1", "empire_resi_iron_1"}, | ||
2531 | 252 | {"resi_gold1", "empire_resi_gold_1"}, | ||
2532 | 253 | {"resi_stones1", "empire_resi_stones_1"}, | ||
2533 | 254 | {"resi_coal2", "empire_resi_coal_2"}, | ||
2534 | 255 | {"resi_iron2", "empire_resi_iron_2"}, | ||
2535 | 256 | {"resi_gold2", "empire_resi_gold_2"}, | ||
2536 | 257 | {"resi_stones2", "empire_resi_stones_2"}, | ||
2537 | 258 | {"resi_none", "empire_resi_none"}, | ||
2538 | 259 | {"resi_water1", "empire_resi_water"}, | ||
2539 | 260 | }), | ||
2540 | 261 | std::make_pair("frisians", | ||
2541 | 262 | std::map<std::string, std::string>{ | ||
2542 | 263 | {"resi_coal1", "frisians_resi_coal_1"}, | ||
2543 | 264 | {"resi_iron1", "frisians_resi_iron_1"}, | ||
2544 | 265 | {"resi_gold1", "frisians_resi_gold_1"}, | ||
2545 | 266 | {"resi_stones1", "frisians_resi_stones_1"}, | ||
2546 | 267 | {"resi_coal2", "frisians_resi_coal_2"}, | ||
2547 | 268 | {"resi_iron2", "frisians_resi_iron_2"}, | ||
2548 | 269 | {"resi_gold2", "frisians_resi_gold_2"}, | ||
2549 | 270 | {"resi_stones2", "frisians_resi_stones_2"}, | ||
2550 | 271 | {"resi_none", "frisians_resi_none"}, | ||
2551 | 272 | {"resi_water1", "frisians_resi_water"}, | ||
2552 | 230 | }), | 273 | }), |
2553 | 231 | } { | 274 | } { |
2554 | 232 | } | 275 | } |
2555 | 233 | 276 | ||
2556 | === modified file 'src/scripting/lua_map.cc' | |||
2557 | --- src/scripting/lua_map.cc 2018-09-04 15:48:47 +0000 | |||
2558 | +++ src/scripting/lua_map.cc 2018-09-14 06:31:21 +0000 | |||
2559 | @@ -1386,6 +1386,7 @@ | |||
2560 | 1386 | PROP_RO(LuaTribeDescription, descname), | 1386 | PROP_RO(LuaTribeDescription, descname), |
2561 | 1387 | PROP_RO(LuaTribeDescription, geologist), | 1387 | PROP_RO(LuaTribeDescription, geologist), |
2562 | 1388 | PROP_RO(LuaTribeDescription, immovables), | 1388 | PROP_RO(LuaTribeDescription, immovables), |
2563 | 1389 | PROP_RO(LuaTribeDescription, resource_indicators), | ||
2564 | 1389 | PROP_RO(LuaTribeDescription, name), | 1390 | PROP_RO(LuaTribeDescription, name), |
2565 | 1390 | PROP_RO(LuaTribeDescription, port), | 1391 | PROP_RO(LuaTribeDescription, port), |
2566 | 1391 | PROP_RO(LuaTribeDescription, ship), | 1392 | PROP_RO(LuaTribeDescription, ship), |
2567 | @@ -1496,6 +1497,29 @@ | |||
2568 | 1496 | } | 1497 | } |
2569 | 1497 | 1498 | ||
2570 | 1498 | /* RST | 1499 | /* RST |
2571 | 1500 | .. attribute:: resource_indicators | ||
2572 | 1501 | |||
2573 | 1502 | (RO) the table `resource_indicators` as defined in the tribe's `tribename.lua`. | ||
2574 | 1503 | See `data/tribes/atlanteans.lua` for more information on the table structure. | ||
2575 | 1504 | */ | ||
2576 | 1505 | int LuaTribeDescription::get_resource_indicators(lua_State* L) { | ||
2577 | 1506 | const TribeDescr& tribe = *get(); | ||
2578 | 1507 | lua_newtable(L); | ||
2579 | 1508 | const ResourceIndicatorSet resis = tribe.resource_indicators(); | ||
2580 | 1509 | for (const auto& resilist : resis) { | ||
2581 | 1510 | lua_pushstring(L, resilist.first); | ||
2582 | 1511 | lua_newtable(L); | ||
2583 | 1512 | for (const auto& resi : resilist.second) { | ||
2584 | 1513 | lua_pushinteger(L, resi.first); | ||
2585 | 1514 | lua_pushstring(L, tribe.get_immovable_descr(resi.second)->name()); | ||
2586 | 1515 | lua_settable(L, -3); | ||
2587 | 1516 | } | ||
2588 | 1517 | lua_settable(L, -3); | ||
2589 | 1518 | } | ||
2590 | 1519 | return 1; | ||
2591 | 1520 | } | ||
2592 | 1521 | |||
2593 | 1522 | /* RST | ||
2594 | 1499 | .. attribute:: name | 1523 | .. attribute:: name |
2595 | 1500 | 1524 | ||
2596 | 1501 | (RO) a :class:`string` with the tribe's internal name | 1525 | (RO) a :class:`string` with the tribe's internal name |
2597 | 1502 | 1526 | ||
2598 | === modified file 'src/scripting/lua_map.h' | |||
2599 | --- src/scripting/lua_map.h 2018-04-11 06:55:01 +0000 | |||
2600 | +++ src/scripting/lua_map.h 2018-09-14 06:31:21 +0000 | |||
2601 | @@ -134,6 +134,7 @@ | |||
2602 | 134 | int get_carrier2(lua_State*); | 134 | int get_carrier2(lua_State*); |
2603 | 135 | int get_descname(lua_State*); | 135 | int get_descname(lua_State*); |
2604 | 136 | int get_immovables(lua_State*); | 136 | int get_immovables(lua_State*); |
2605 | 137 | int get_resource_indicators(lua_State*); | ||
2606 | 137 | int get_geologist(lua_State*); | 138 | int get_geologist(lua_State*); |
2607 | 138 | int get_name(lua_State*); | 139 | int get_name(lua_State*); |
2608 | 139 | int get_port(lua_State*); | 140 | int get_port(lua_State*); |
Continuous integration builds have changed state:
Travis build 3854. State: passed. Details: https:/ /travis- ci.org/ widelands/ widelands/ builds/ 422215867. /ci.appveyor. com/project/ widelands- dev/widelands/ build/_ widelands_ dev_widelands_ rework_ resource_ indicators- 3652.
Appveyor build 3652. State: success. Details: https:/