Merge lp:~widelands-dev/widelands/rework-resource-indicators into lp:widelands

Proposed by Benedikt Straub
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
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.

To post a comment you must log in.
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3854. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/422215867.
Appveyor build 3652. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_rework_resource_indicators-3652.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3858. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/422459572.
Appveyor build 3656. State: failed. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_rework_resource_indicators-3656.

Revision history for this message
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://code.launchpad.net/~widelands-dev/widelands/mipmaps

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_image.

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 ;)

review: Needs Fixing
Revision history for this message
GunChleoc (gunchleoc) wrote :

Code review on the diff done - see comments.

Revision history for this message
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, "".

Revision history for this message
Benedikt Straub (nordfriese) wrote :

Remaining graphics changed. Please test again.

review: Needs Resubmitting
Revision history for this message
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_description.icon_name

Maybe we should use the same trick in the Barbarian scenario too, that will make it more resistant against changes in the implementation details.

Revision history for this message
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_image. The barbarian scenario also uses representative_image for each resi now instead of fixed image paths.
There was no need to define an icon, as representative_image points to the first idle frame by default.

Revision history for this message
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

Revision history for this message
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 ;)

http://accessibility.psu.edu/color/contrasthtml/

Revision history for this message
Benedikt Straub (nordfriese) wrote :

Uploaded new graphics for empire and atlantean resis. How about these?

Revision history for this message
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.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3912. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/426196539.
Appveyor build 3710. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_rework_resource_indicators-3710.

Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Benedikt Straub (nordfriese) wrote :

And another attempt ;)

Revision history for this message
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?

Revision history for this message
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?

Revision history for this message
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*

review: Approve
Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3963. State: failed. Details: https://travis-ci.org/widelands/widelands/builds/428098620.
Appveyor build 3761. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_rework_resource_indicators-3761.

Revision history for this message
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://travis-ci.org/widelands/widelands/builds/428098620.

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3968. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/428511168.
Appveyor build 3766. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_rework_resource_indicators-3766.

Revision history for this message
GunChleoc (gunchleoc) wrote :

@bunnybot merge

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/campaigns/bar01.wmf/scripting/texts.lua'
--- data/campaigns/bar01.wmf/scripting/texts.lua 2018-08-13 16:44:58 +0000
+++ data/campaigns/bar01.wmf/scripting/texts.lua 2018-09-14 06:31:21 +0000
@@ -43,16 +43,16 @@
43 body = objective_text(_"Build coal and iron mines",43 body = objective_text(_"Build coal and iron mines",
44 li(_"Build a coal mine and an iron mine.") ..44 li(_"Build a coal mine and an iron mine.") ..
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:") ..
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") ..
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") ..
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") ..
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") ..
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") ..
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") ..
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") ..
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") ..
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") ..
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") ..
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.]]))
57}57}
5858
5959
=== modified file 'data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua'
--- data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua 2017-05-07 10:30:33 +0000
+++ data/campaigns/tutorial03_seafaring.wmf/scripting/mission_thread.lua 2018-09-14 06:31:21 +0000
@@ -75,7 +75,7 @@
75 local idx = math.random(#fields)75 local idx = math.random(#fields)
76 f = fields[idx]76 f = fields[idx]
77 if ((f.resource == "iron") and not f.immovable) then77 if ((f.resource == "iron") and not f.immovable) then
78 map:place_immovable("resi_iron2",f,"tribes")78 map:place_immovable("atlanteans_resi_iron_2",f,"tribes")
79 successful = true79 successful = true
80 end80 end
81 table.remove(fields,idx)81 table.remove(fields,idx)
8282
=== modified file 'data/images/wui/overlays/mine.png'
83Binary 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 differ83Binary 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
=== modified file 'data/tribes/atlanteans.lua'
--- data/tribes/atlanteans.lua 2017-11-23 09:13:06 +0000
+++ data/tribes/atlanteans.lua 2018-09-14 06:31:21 +0000
@@ -22,6 +22,8 @@
22--22--
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``
24--24--
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.
26--
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.
26--28--
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.
@@ -73,6 +75,31 @@
73 },75 },
74 },76 },
7577
78 resource_indicators = {
79 [""] = {
80 [0] = "atlanteans_resi_none",
81 },
82 coal = {
83 [10] = "atlanteans_resi_coal_1",
84 [20] = "atlanteans_resi_coal_2",
85 },
86 iron = {
87 [10] = "atlanteans_resi_iron_1",
88 [20] = "atlanteans_resi_iron_2",
89 },
90 gold = {
91 [10] = "atlanteans_resi_gold_1",
92 [20] = "atlanteans_resi_gold_2",
93 },
94 stones = {
95 [10] = "atlanteans_resi_stones_1",
96 [20] = "atlanteans_resi_stones_2",
97 },
98 water = {
99 [100] = "atlanteans_resi_water",
100 },
101 },
102
76 -- Wares positions in wares windows.103 -- Wares positions in wares windows.
77 -- This also gives us the information which wares the tribe uses.104 -- This also gives us the information which wares the tribe uses.
78 -- Each subtable is a column in the wares windows.105 -- Each subtable is a column in the wares windows.
@@ -205,16 +232,16 @@
205 "cornfield_ripe",232 "cornfield_ripe",
206 "cornfield_harvested",233 "cornfield_harvested",
207 "destroyed_building",234 "destroyed_building",
208 "resi_coal1",235 "atlanteans_resi_none",
209 "resi_coal2",236 "atlanteans_resi_water",
210 "resi_gold1",237 "atlanteans_resi_coal_1",
211 "resi_gold2",238 "atlanteans_resi_iron_1",
212 "resi_iron1",239 "atlanteans_resi_gold_1",
213 "resi_iron2",240 "atlanteans_resi_stones_1",
214 "resi_none",241 "atlanteans_resi_coal_2",
215 "resi_water1",242 "atlanteans_resi_iron_2",
216 "resi_stones1",243 "atlanteans_resi_gold_2",
217 "resi_stones2",244 "atlanteans_resi_stones_2",
218 "atlanteans_shipconstruction",245 "atlanteans_shipconstruction",
219 },246 },
220247
221248
=== modified file 'data/tribes/barbarians.lua'
--- data/tribes/barbarians.lua 2018-07-15 10:32:12 +0000
+++ data/tribes/barbarians.lua 2018-09-14 06:31:21 +0000
@@ -26,6 +26,31 @@
26 },26 },
27 },27 },
2828
29 resource_indicators = {
30 [""] = {
31 [0] = "barbarians_resi_none",
32 },
33 coal = {
34 [10] = "barbarians_resi_coal_1",
35 [20] = "barbarians_resi_coal_2",
36 },
37 iron = {
38 [10] = "barbarians_resi_iron_1",
39 [20] = "barbarians_resi_iron_2",
40 },
41 gold = {
42 [10] = "barbarians_resi_gold_1",
43 [20] = "barbarians_resi_gold_2",
44 },
45 stones = {
46 [10] = "barbarians_resi_stones_1",
47 [20] = "barbarians_resi_stones_2",
48 },
49 water = {
50 [100] = "barbarians_resi_water",
51 },
52 },
53
29 -- Wares positions in wares windows.54 -- Wares positions in wares windows.
30 -- This also gives us the information which wares the tribe uses.55 -- This also gives us the information which wares the tribe uses.
31 -- Each subtable is a column in the wares windows.56 -- Each subtable is a column in the wares windows.
@@ -155,16 +180,16 @@
155 "reed_small",180 "reed_small",
156 "reed_medium",181 "reed_medium",
157 "reed_ripe",182 "reed_ripe",
158 "resi_coal1",183 "barbarians_resi_none",
159 "resi_coal2",184 "barbarians_resi_water",
160 "resi_gold1",185 "barbarians_resi_coal_1",
161 "resi_gold2",186 "barbarians_resi_iron_1",
162 "resi_iron1",187 "barbarians_resi_gold_1",
163 "resi_iron2",188 "barbarians_resi_stones_1",
164 "resi_none",189 "barbarians_resi_coal_2",
165 "resi_water1",190 "barbarians_resi_iron_2",
166 "resi_stones1",191 "barbarians_resi_gold_2",
167 "resi_stones2",192 "barbarians_resi_stones_2",
168 "barbarians_shipconstruction",193 "barbarians_shipconstruction",
169 },194 },
170195
171196
=== modified file 'data/tribes/empire.lua'
--- data/tribes/empire.lua 2017-11-25 23:32:30 +0000
+++ data/tribes/empire.lua 2018-09-14 06:31:21 +0000
@@ -29,6 +29,31 @@
29 },29 },
30 },30 },
3131
32 resource_indicators = {
33 [""] = {
34 [0] = "empire_resi_none",
35 },
36 coal = {
37 [10] = "empire_resi_coal_1",
38 [20] = "empire_resi_coal_2",
39 },
40 iron = {
41 [10] = "empire_resi_iron_1",
42 [20] = "empire_resi_iron_2",
43 },
44 gold = {
45 [10] = "empire_resi_gold_1",
46 [20] = "empire_resi_gold_2",
47 },
48 stones = {
49 [10] = "empire_resi_stones_1",
50 [20] = "empire_resi_stones_2",
51 },
52 water = {
53 [100] = "empire_resi_water",
54 },
55 },
56
32 -- Wares positions in wares windows.57 -- Wares positions in wares windows.
33 -- This also gives us the information which wares the tribe uses.58 -- This also gives us the information which wares the tribe uses.
34 -- Each subtable is a column in the wares windows.59 -- Each subtable is a column in the wares windows.
@@ -163,16 +188,16 @@
163 "grapevine_small",188 "grapevine_small",
164 "grapevine_medium",189 "grapevine_medium",
165 "grapevine_ripe",190 "grapevine_ripe",
166 "resi_coal1",191 "empire_resi_none",
167 "resi_coal2",192 "empire_resi_water",
168 "resi_gold1",193 "empire_resi_coal_1",
169 "resi_gold2",194 "empire_resi_iron_1",
170 "resi_iron1",195 "empire_resi_gold_1",
171 "resi_iron2",196 "empire_resi_stones_1",
172 "resi_none",197 "empire_resi_coal_2",
173 "resi_water1",198 "empire_resi_iron_2",
174 "resi_stones1",199 "empire_resi_gold_2",
175 "resi_stones2",200 "empire_resi_stones_2",
176 "empire_shipconstruction",201 "empire_shipconstruction",
177 },202 },
178203
179204
=== modified file 'data/tribes/frisians.lua'
--- data/tribes/frisians.lua 2018-05-17 11:02:45 +0000
+++ data/tribes/frisians.lua 2018-09-14 06:31:21 +0000
@@ -27,6 +27,31 @@
27 },27 },
28 },28 },
2929
30 resource_indicators = {
31 [""] = {
32 [0] = "frisians_resi_none",
33 },
34 coal = {
35 [10] = "frisians_resi_coal_1",
36 [20] = "frisians_resi_coal_2",
37 },
38 iron = {
39 [10] = "frisians_resi_iron_1",
40 [20] = "frisians_resi_iron_2",
41 },
42 gold = {
43 [10] = "frisians_resi_gold_1",
44 [20] = "frisians_resi_gold_2",
45 },
46 stones = {
47 [10] = "frisians_resi_stones_1",
48 [20] = "frisians_resi_stones_2",
49 },
50 water = {
51 [100] = "frisians_resi_water",
52 },
53 },
54
30 -- Wares positions in wares windows.55 -- Wares positions in wares windows.
31 -- This also gives us the information which wares the tribe uses.56 -- This also gives us the information which wares the tribe uses.
32 -- Each subtable is a column in the wares windows.57 -- Each subtable is a column in the wares windows.
@@ -201,16 +226,16 @@
201 "reed_small",226 "reed_small",
202 "reed_medium",227 "reed_medium",
203 "reed_ripe",228 "reed_ripe",
204 "resi_coal1",229 "frisians_resi_none",
205 "resi_coal2",230 "frisians_resi_water",
206 "resi_gold1",231 "frisians_resi_coal_1",
207 "resi_gold2",232 "frisians_resi_iron_1",
208 "resi_iron1",233 "frisians_resi_gold_1",
209 "resi_iron2",234 "frisians_resi_stones_1",
210 "resi_none",235 "frisians_resi_coal_2",
211 "resi_water1",236 "frisians_resi_iron_2",
212 "resi_stones1",237 "frisians_resi_gold_2",
213 "resi_stones2",238 "frisians_resi_stones_2",
214 "frisians_shipconstruction",239 "frisians_shipconstruction",
215 --These non-frisian immovables can be used by bee-keepers240 --These non-frisian immovables can be used by bee-keepers
216 "field_medium",241 "field_medium",
217242
=== added directory 'data/tribes/immovables/resi'
=== added directory 'data/tribes/immovables/resi/atlanteans'
=== added file 'data/tribes/immovables/resi/atlanteans/init.lua'
--- data/tribes/immovables/resi/atlanteans/init.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/atlanteans/init.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,230 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "atlanteans_resi_none",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: None"),
8 helptext_script = dirname .. "../helptexts/none.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "pics/none_?.png"),
20 hotspot = {10, 36},
21 },
22 }
23}
24
25tribes:new_immovable_type {
26 msgctxt = "immovable",
27 name = "atlanteans_resi_water",
28 -- TRANSLATORS: This is a resource name used in lists of resources
29 descname = pgettext("immovable", "Resources: Water Vein"),
30 helptext_script = dirname .. "../helptexts/water.lua",
31 attributes = { "resi" },
32 programs = {
33 program = {
34 "animate=idle 600000",
35 "remove="
36 }
37 },
38
39 animations = {
40 idle = {
41 pictures = path.list_files(dirname .. "pics/water_?.png"),
42 hotspot = {10, 36},
43 fps = 4,
44 },
45 }
46}
47
48tribes:new_immovable_type {
49 msgctxt = "immovable",
50 name = "atlanteans_resi_coal_1",
51 -- TRANSLATORS: This is a resource name used in lists of resources
52 descname = pgettext("immovable", "Resources: Coal Vein"),
53 helptext_script = dirname .. "../helptexts/coal_1.lua",
54 attributes = { "resi" },
55 programs = {
56 program = {
57 "animate=idle 600000",
58 "remove="
59 }
60 },
61
62 animations = {
63 idle = {
64 pictures = path.list_files(dirname .. "pics/coal_1_?.png"),
65 hotspot = {10, 36},
66 fps = 4,
67 },
68 }
69}
70
71tribes:new_immovable_type {
72 msgctxt = "immovable",
73 name = "atlanteans_resi_gold_1",
74 -- TRANSLATORS: This is a resource name used in lists of resources
75 descname = pgettext("immovable", "Resources: Gold Vein"),
76 helptext_script = dirname .. "../helptexts/gold_1.lua",
77 attributes = { "resi" },
78 programs = {
79 program = {
80 "animate=idle 600000",
81 "remove="
82 }
83 },
84
85 animations = {
86 idle = {
87 pictures = path.list_files(dirname .. "pics/gold_1_?.png"),
88 hotspot = {10, 36},
89 fps = 4,
90 },
91 }
92}
93
94tribes:new_immovable_type {
95 msgctxt = "immovable",
96 name = "atlanteans_resi_iron_1",
97 -- TRANSLATORS: This is a resource name used in lists of resources
98 descname = pgettext("immovable", "Resources: Iron Vein"),
99 helptext_script = dirname .. "../helptexts/iron_1.lua",
100 attributes = { "resi" },
101 programs = {
102 program = {
103 "animate=idle 600000",
104 "remove="
105 }
106 },
107
108 animations = {
109 idle = {
110 pictures = path.list_files(dirname .. "pics/iron_1_?.png"),
111 hotspot = {10, 36},
112 fps = 4,
113 },
114 }
115}
116
117tribes:new_immovable_type {
118 msgctxt = "immovable",
119 name = "atlanteans_resi_stones_1",
120 -- TRANSLATORS: This is a resource name used in lists of resources
121 descname = pgettext("immovable", "Resources: Some Stones"),
122 helptext_script = dirname .. "../helptexts/stones_1.lua",
123 attributes = { "resi" },
124 programs = {
125 program = {
126 "animate=idle 600000",
127 "remove="
128 }
129 },
130
131 animations = {
132 idle = {
133 pictures = path.list_files(dirname .. "pics/stones_1_?.png"),
134 hotspot = {10, 36},
135 fps = 4,
136 },
137 }
138}
139
140tribes:new_immovable_type {
141 msgctxt = "immovable",
142 name = "atlanteans_resi_coal_2",
143 -- TRANSLATORS: This is a resource name used in lists of resources
144 descname = pgettext("immovable", "Resources: Main Coal Vein"),
145 helptext_script = dirname .. "../helptexts/coal_2.lua",
146 attributes = { "resi" },
147 programs = {
148 program = {
149 "animate=idle 600000",
150 "remove="
151 }
152 },
153
154 animations = {
155 idle = {
156 pictures = path.list_files(dirname .. "pics/coal_2_?.png"),
157 hotspot = {10, 36},
158 fps = 4,
159 },
160 }
161}
162
163tribes:new_immovable_type {
164 msgctxt = "immovable",
165 name = "atlanteans_resi_gold_2",
166 -- TRANSLATORS: This is a resource name used in lists of resources
167 descname = pgettext("immovable", "Resources: Main Gold Vein"),
168 helptext_script = dirname .. "../helptexts/gold_2.lua",
169 attributes = { "resi" },
170 programs = {
171 program = {
172 "animate=idle 600000",
173 "remove="
174 }
175 },
176
177 animations = {
178 idle = {
179 pictures = path.list_files(dirname .. "pics/gold_2_?.png"),
180 hotspot = {10, 36},
181 fps = 4,
182 },
183 }
184}
185
186tribes:new_immovable_type {
187 msgctxt = "immovable",
188 name = "atlanteans_resi_iron_2",
189 -- TRANSLATORS: This is a resource name used in lists of resources
190 descname = pgettext("immovable", "Resources: Main Iron Vein"),
191 helptext_script = dirname .. "../helptexts/iron_2.lua",
192 attributes = { "resi" },
193 programs = {
194 program = {
195 "animate=idle 600000",
196 "remove="
197 }
198 },
199
200 animations = {
201 idle = {
202 pictures = path.list_files(dirname .. "pics/iron_2_?.png"),
203 hotspot = {10, 36},
204 fps = 4,
205 },
206 }
207}
208
209tribes:new_immovable_type {
210 msgctxt = "immovable",
211 name = "atlanteans_resi_stones_2",
212 -- TRANSLATORS: This is a resource name used in lists of resources
213 descname = pgettext("immovable", "Resources: A Lot of Stones"),
214 helptext_script = dirname .. "../helptexts/stones_2.lua",
215 attributes = { "resi" },
216 programs = {
217 program = {
218 "animate=idle 600000",
219 "remove="
220 }
221 },
222
223 animations = {
224 idle = {
225 pictures = path.list_files(dirname .. "pics/stones_2_?.png"),
226 hotspot = {10, 36},
227 fps = 4,
228 },
229 }
230}
0231
=== added directory 'data/tribes/immovables/resi/atlanteans/pics'
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_0.png'
1Binary 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 differ232Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_1.png'
2Binary 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 differ233Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_2.png'
3Binary 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 differ234Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_1_3.png'
4Binary 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 differ235Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_0.png'
5Binary 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 differ236Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_1.png'
6Binary 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 differ237Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_2.png'
7Binary 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 differ238Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/coal_2_3.png'
8Binary 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 differ239Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_0.png'
9Binary 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 differ240Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_1.png'
10Binary 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 differ241Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_2.png'
11Binary 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 differ242Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_1_3.png'
12Binary 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 differ243Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_0.png'
13Binary 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 differ244Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_1.png'
14Binary 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 differ245Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_2.png'
15Binary 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 differ246Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/gold_2_3.png'
16Binary 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 differ247Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_0.png'
17Binary 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 differ248Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_1.png'
18Binary 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 differ249Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_2.png'
19Binary 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 differ250Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_1_3.png'
20Binary 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 differ251Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_0.png'
21Binary 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 differ252Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_1.png'
22Binary 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 differ253Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_2.png'
23Binary 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 differ254Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/iron_2_3.png'
24Binary 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 differ255Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/none_0.png'
25Binary 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 differ256Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/none_1.png'
26Binary 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 differ257Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/none_2.png'
27Binary 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 differ258Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/none_3.png'
28Binary 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 differ259Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_0.png'
29Binary 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 differ260Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_1.png'
30Binary 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 differ261Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_2.png'
31Binary 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 differ262Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_1_3.png'
32Binary 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 differ263Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_0.png'
33Binary 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 differ264Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_1.png'
34Binary 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 differ265Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_2.png'
35Binary 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 differ266Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/stones_2_3.png'
36Binary 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 differ267Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/water_0.png'
37Binary 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 differ268Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/water_1.png'
38Binary 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 differ269Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/water_2.png'
39Binary 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 differ270Binary 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
=== added file 'data/tribes/immovables/resi/atlanteans/pics/water_3.png'
40Binary 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 differ271Binary 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
=== added directory 'data/tribes/immovables/resi/barbarians'
=== added file 'data/tribes/immovables/resi/barbarians/init.lua'
--- data/tribes/immovables/resi/barbarians/init.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/barbarians/init.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,221 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "barbarians_resi_none",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: None"),
8 helptext_script = dirname .. "../helptexts/none.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = { dirname .. "pics/none.png" },
20 hotspot = {9, 28},
21 },
22 }
23}
24
25tribes:new_immovable_type {
26 msgctxt = "immovable",
27 name = "barbarians_resi_water",
28 -- TRANSLATORS: This is a resource name used in lists of resources
29 descname = pgettext("immovable", "Resources: Water Vein"),
30 helptext_script = dirname .. "../helptexts/water.lua",
31 attributes = { "resi" },
32 programs = {
33 program = {
34 "animate=idle 600000",
35 "remove="
36 }
37 },
38
39 animations = {
40 idle = {
41 pictures = { dirname .. "pics/water.png" },
42 hotspot = {9, 28},
43 },
44 }
45}
46
47tribes:new_immovable_type {
48 msgctxt = "immovable",
49 name = "barbarians_resi_coal_1",
50 -- TRANSLATORS: This is a resource name used in lists of resources
51 descname = pgettext("immovable", "Resources: Coal Vein"),
52 helptext_script = dirname .. "../helptexts/coal_1.lua",
53 attributes = { "resi" },
54 programs = {
55 program = {
56 "animate=idle 600000",
57 "remove="
58 }
59 },
60
61 animations = {
62 idle = {
63 pictures = { dirname .. "pics/coal_1.png" },
64 hotspot = {9, 28},
65 },
66 }
67}
68
69tribes:new_immovable_type {
70 msgctxt = "immovable",
71 name = "barbarians_resi_gold_1",
72 -- TRANSLATORS: This is a resource name used in lists of resources
73 descname = pgettext("immovable", "Resources: Gold Vein"),
74 helptext_script = dirname .. "../helptexts/gold_1.lua",
75 attributes = { "resi" },
76 programs = {
77 program = {
78 "animate=idle 600000",
79 "remove="
80 }
81 },
82
83 animations = {
84 idle = {
85 pictures = { dirname .. "pics/gold_1.png" },
86 hotspot = {9, 28},
87 },
88 }
89}
90
91tribes:new_immovable_type {
92 msgctxt = "immovable",
93 name = "barbarians_resi_iron_1",
94 -- TRANSLATORS: This is a resource name used in lists of resources
95 descname = pgettext("immovable", "Resources: Iron Vein"),
96 helptext_script = dirname .. "../helptexts/iron_1.lua",
97 attributes = { "resi" },
98 programs = {
99 program = {
100 "animate=idle 600000",
101 "remove="
102 }
103 },
104
105 animations = {
106 idle = {
107 pictures = { dirname .. "pics/iron_1.png" },
108 hotspot = {9, 28},
109 },
110 }
111}
112
113tribes:new_immovable_type {
114 msgctxt = "immovable",
115 name = "barbarians_resi_stones_1",
116 -- TRANSLATORS: This is a resource name used in lists of resources
117 descname = pgettext("immovable", "Resources: Some Stones"),
118 helptext_script = dirname .. "../helptexts/stones_1.lua",
119 attributes = { "resi" },
120 programs = {
121 program = {
122 "animate=idle 600000",
123 "remove="
124 }
125 },
126
127 animations = {
128 idle = {
129 pictures = { dirname .. "pics/stones_1.png" },
130 hotspot = {9, 28},
131 },
132 }
133}
134
135tribes:new_immovable_type {
136 msgctxt = "immovable",
137 name = "barbarians_resi_coal_2",
138 -- TRANSLATORS: This is a resource name used in lists of resources
139 descname = pgettext("immovable", "Resources: Main Coal Vein"),
140 helptext_script = dirname .. "../helptexts/coal_2.lua",
141 attributes = { "resi" },
142 programs = {
143 program = {
144 "animate=idle 600000",
145 "remove="
146 }
147 },
148
149 animations = {
150 idle = {
151 pictures = { dirname .. "pics/coal_2.png" },
152 hotspot = {9, 28},
153 },
154 }
155}
156
157tribes:new_immovable_type {
158 msgctxt = "immovable",
159 name = "barbarians_resi_gold_2",
160 -- TRANSLATORS: This is a resource name used in lists of resources
161 descname = pgettext("immovable", "Resources: Main Gold Vein"),
162 helptext_script = dirname .. "../helptexts/gold_2.lua",
163 attributes = { "resi" },
164 programs = {
165 program = {
166 "animate=idle 600000",
167 "remove="
168 }
169 },
170
171 animations = {
172 idle = {
173 pictures = { dirname .. "pics/gold_2.png" },
174 hotspot = {9, 28},
175 },
176 }
177}
178
179tribes:new_immovable_type {
180 msgctxt = "immovable",
181 name = "barbarians_resi_iron_2",
182 -- TRANSLATORS: This is a resource name used in lists of resources
183 descname = pgettext("immovable", "Resources: Main Iron Vein"),
184 helptext_script = dirname .. "../helptexts/iron_2.lua",
185 attributes = { "resi" },
186 programs = {
187 program = {
188 "animate=idle 600000",
189 "remove="
190 }
191 },
192
193 animations = {
194 idle = {
195 pictures = { dirname .. "pics/iron_2.png" },
196 hotspot = {9, 28},
197 },
198 }
199}
200
201tribes:new_immovable_type {
202 msgctxt = "immovable",
203 name = "barbarians_resi_stones_2",
204 -- TRANSLATORS: This is a resource name used in lists of resources
205 descname = pgettext("immovable", "Resources: A Lot of Stones"),
206 helptext_script = dirname .. "../helptexts/stones_2.lua",
207 attributes = { "resi" },
208 programs = {
209 program = {
210 "animate=idle 600000",
211 "remove="
212 }
213 },
214
215 animations = {
216 idle = {
217 pictures = { dirname .. "pics/stones_2.png" },
218 hotspot = {9, 28},
219 },
220 }
221}
0222
=== added directory 'data/tribes/immovables/resi/barbarians/pics'
=== added file 'data/tribes/immovables/resi/barbarians/pics/coal_1.png'
1Binary 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 differ223Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/coal_2.png'
2Binary 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 differ224Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/gold_1.png'
3Binary 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 differ225Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/gold_2.png'
4Binary 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 differ226Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/iron_1.png'
5Binary 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 differ227Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/iron_2.png'
6Binary 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 differ228Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/none.png'
7Binary 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 differ229Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/stones_1.png'
8Binary 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 differ230Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/stones_2.png'
9Binary 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 differ231Binary 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
=== added file 'data/tribes/immovables/resi/barbarians/pics/water.png'
10Binary 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 differ232Binary 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
=== added directory 'data/tribes/immovables/resi/empire'
=== added file 'data/tribes/immovables/resi/empire/init.lua'
--- data/tribes/immovables/resi/empire/init.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/empire/init.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,221 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "empire_resi_none",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: None"),
8 helptext_script = dirname .. "../helptexts/none.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = { dirname .. "pics/none.png" },
20 hotspot = {8, 22},
21 },
22 }
23}
24
25tribes:new_immovable_type {
26 msgctxt = "immovable",
27 name = "empire_resi_water",
28 -- TRANSLATORS: This is a resource name used in lists of resources
29 descname = pgettext("immovable", "Resources: Water Vein"),
30 helptext_script = dirname .. "../helptexts/water.lua",
31 attributes = { "resi" },
32 programs = {
33 program = {
34 "animate=idle 600000",
35 "remove="
36 }
37 },
38
39 animations = {
40 idle = {
41 pictures = { dirname .. "pics/water.png" },
42 hotspot = {8, 22},
43 },
44 }
45}
46
47tribes:new_immovable_type {
48 msgctxt = "immovable",
49 name = "empire_resi_coal_1",
50 -- TRANSLATORS: This is a resource name used in lists of resources
51 descname = pgettext("immovable", "Resources: Coal Vein"),
52 helptext_script = dirname .. "../helptexts/coal_1.lua",
53 attributes = { "resi" },
54 programs = {
55 program = {
56 "animate=idle 600000",
57 "remove="
58 }
59 },
60
61 animations = {
62 idle = {
63 pictures = { dirname .. "pics/coal_1.png" },
64 hotspot = {8, 22},
65 },
66 }
67}
68
69tribes:new_immovable_type {
70 msgctxt = "immovable",
71 name = "empire_resi_gold_1",
72 -- TRANSLATORS: This is a resource name used in lists of resources
73 descname = pgettext("immovable", "Resources: Gold Vein"),
74 helptext_script = dirname .. "../helptexts/gold_1.lua",
75 attributes = { "resi" },
76 programs = {
77 program = {
78 "animate=idle 600000",
79 "remove="
80 }
81 },
82
83 animations = {
84 idle = {
85 pictures = { dirname .. "pics/gold_1.png" },
86 hotspot = {8, 22},
87 },
88 }
89}
90
91tribes:new_immovable_type {
92 msgctxt = "immovable",
93 name = "empire_resi_iron_1",
94 -- TRANSLATORS: This is a resource name used in lists of resources
95 descname = pgettext("immovable", "Resources: Iron Vein"),
96 helptext_script = dirname .. "../helptexts/iron_1.lua",
97 attributes = { "resi" },
98 programs = {
99 program = {
100 "animate=idle 600000",
101 "remove="
102 }
103 },
104
105 animations = {
106 idle = {
107 pictures = { dirname .. "pics/iron_1.png" },
108 hotspot = {8, 22},
109 },
110 }
111}
112
113tribes:new_immovable_type {
114 msgctxt = "immovable",
115 name = "empire_resi_stones_1",
116 -- TRANSLATORS: This is a resource name used in lists of resources
117 descname = pgettext("immovable", "Resources: Some Stones"),
118 helptext_script = dirname .. "../helptexts/stones_1.lua",
119 attributes = { "resi" },
120 programs = {
121 program = {
122 "animate=idle 600000",
123 "remove="
124 }
125 },
126
127 animations = {
128 idle = {
129 pictures = { dirname .. "pics/stones_1.png" },
130 hotspot = {8, 22},
131 },
132 }
133}
134
135tribes:new_immovable_type {
136 msgctxt = "immovable",
137 name = "empire_resi_coal_2",
138 -- TRANSLATORS: This is a resource name used in lists of resources
139 descname = pgettext("immovable", "Resources: Main Coal Vein"),
140 helptext_script = dirname .. "../helptexts/coal_2.lua",
141 attributes = { "resi" },
142 programs = {
143 program = {
144 "animate=idle 600000",
145 "remove="
146 }
147 },
148
149 animations = {
150 idle = {
151 pictures = { dirname .. "pics/coal_2.png" },
152 hotspot = {8, 22},
153 },
154 }
155}
156
157tribes:new_immovable_type {
158 msgctxt = "immovable",
159 name = "empire_resi_gold_2",
160 -- TRANSLATORS: This is a resource name used in lists of resources
161 descname = pgettext("immovable", "Resources: Main Gold Vein"),
162 helptext_script = dirname .. "../helptexts/gold_2.lua",
163 attributes = { "resi" },
164 programs = {
165 program = {
166 "animate=idle 600000",
167 "remove="
168 }
169 },
170
171 animations = {
172 idle = {
173 pictures = { dirname .. "pics/gold_2.png" },
174 hotspot = {8, 22},
175 },
176 }
177}
178
179tribes:new_immovable_type {
180 msgctxt = "immovable",
181 name = "empire_resi_iron_2",
182 -- TRANSLATORS: This is a resource name used in lists of resources
183 descname = pgettext("immovable", "Resources: Main Iron Vein"),
184 helptext_script = dirname .. "../helptexts/iron_2.lua",
185 attributes = { "resi" },
186 programs = {
187 program = {
188 "animate=idle 600000",
189 "remove="
190 }
191 },
192
193 animations = {
194 idle = {
195 pictures = { dirname .. "pics/iron_2.png" },
196 hotspot = {8, 22},
197 },
198 }
199}
200
201tribes:new_immovable_type {
202 msgctxt = "immovable",
203 name = "empire_resi_stones_2",
204 -- TRANSLATORS: This is a resource name used in lists of resources
205 descname = pgettext("immovable", "Resources: A Lot of Stones"),
206 helptext_script = dirname .. "../helptexts/stones_2.lua",
207 attributes = { "resi" },
208 programs = {
209 program = {
210 "animate=idle 600000",
211 "remove="
212 }
213 },
214
215 animations = {
216 idle = {
217 pictures = { dirname .. "pics/stones_2.png" },
218 hotspot = {8, 22},
219 },
220 }
221}
0222
=== added directory 'data/tribes/immovables/resi/empire/pics'
=== added file 'data/tribes/immovables/resi/empire/pics/coal_1.png'
1Binary 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 differ223Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/coal_2.png'
2Binary 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 differ224Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/gold_1.png'
3Binary 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 differ225Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/gold_2.png'
4Binary 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 differ226Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/iron_1.png'
5Binary 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 differ227Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/iron_2.png'
6Binary 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 differ228Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/none.png'
7Binary 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 differ229Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/stones_1.png'
8Binary 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 differ230Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/stones_2.png'
9Binary 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 differ231Binary 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
=== added file 'data/tribes/immovables/resi/empire/pics/water.png'
10Binary 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 differ232Binary 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
=== added directory 'data/tribes/immovables/resi/frisians'
=== added file 'data/tribes/immovables/resi/frisians/init.lua'
--- data/tribes/immovables/resi/frisians/init.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/frisians/init.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,230 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "frisians_resi_none",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: None"),
8 helptext_script = dirname .. "../helptexts/none.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = { dirname .. "pics/none.png" },
20 hotspot = {2, 49},
21 },
22 }
23}
24
25tribes:new_immovable_type {
26 msgctxt = "immovable",
27 name = "frisians_resi_water",
28 -- TRANSLATORS: This is a resource name used in lists of resources
29 descname = pgettext("immovable", "Resources: Water Vein"),
30 helptext_script = dirname .. "../helptexts/water.lua",
31 attributes = { "resi" },
32 programs = {
33 program = {
34 "animate=idle 600000",
35 "remove="
36 }
37 },
38
39 animations = {
40 idle = {
41 pictures = path.list_files(dirname .. "pics/water_?.png"),
42 hotspot = {2, 49},
43 fps = 4,
44 },
45 }
46}
47
48tribes:new_immovable_type {
49 msgctxt = "immovable",
50 name = "frisians_resi_coal_1",
51 -- TRANSLATORS: This is a resource name used in lists of resources
52 descname = pgettext("immovable", "Resources: Coal Vein"),
53 helptext_script = dirname .. "../helptexts/coal_1.lua",
54 attributes = { "resi" },
55 programs = {
56 program = {
57 "animate=idle 600000",
58 "remove="
59 }
60 },
61
62 animations = {
63 idle = {
64 pictures = path.list_files(dirname .. "pics/coal_1_?.png"),
65 hotspot = {2, 49},
66 fps = 4,
67 },
68 }
69}
70
71tribes:new_immovable_type {
72 msgctxt = "immovable",
73 name = "frisians_resi_gold_1",
74 -- TRANSLATORS: This is a resource name used in lists of resources
75 descname = pgettext("immovable", "Resources: Gold Vein"),
76 helptext_script = dirname .. "../helptexts/gold_1.lua",
77 attributes = { "resi" },
78 programs = {
79 program = {
80 "animate=idle 600000",
81 "remove="
82 }
83 },
84
85 animations = {
86 idle = {
87 pictures = path.list_files(dirname .. "pics/gold_1_?.png"),
88 hotspot = {2, 49},
89 fps = 4,
90 },
91 }
92}
93
94tribes:new_immovable_type {
95 msgctxt = "immovable",
96 name = "frisians_resi_iron_1",
97 -- TRANSLATORS: This is a resource name used in lists of resources
98 descname = pgettext("immovable", "Resources: Iron Vein"),
99 helptext_script = dirname .. "../helptexts/iron_1.lua",
100 attributes = { "resi" },
101 programs = {
102 program = {
103 "animate=idle 600000",
104 "remove="
105 }
106 },
107
108 animations = {
109 idle = {
110 pictures = path.list_files(dirname .. "pics/iron_1_?.png"),
111 hotspot = {2, 49},
112 fps = 4,
113 },
114 }
115}
116
117tribes:new_immovable_type {
118 msgctxt = "immovable",
119 name = "frisians_resi_stones_1",
120 -- TRANSLATORS: This is a resource name used in lists of resources
121 descname = pgettext("immovable", "Resources: Some Stones"),
122 helptext_script = dirname .. "../helptexts/stones_1.lua",
123 attributes = { "resi" },
124 programs = {
125 program = {
126 "animate=idle 600000",
127 "remove="
128 }
129 },
130
131 animations = {
132 idle = {
133 pictures = path.list_files(dirname .. "pics/stones_1_?.png"),
134 hotspot = {2, 49},
135 fps = 4,
136 },
137 }
138}
139
140tribes:new_immovable_type {
141 msgctxt = "immovable",
142 name = "frisians_resi_coal_2",
143 -- TRANSLATORS: This is a resource name used in lists of resources
144 descname = pgettext("immovable", "Resources: Main Coal Vein"),
145 helptext_script = dirname .. "../helptexts/coal_2.lua",
146 attributes = { "resi" },
147 programs = {
148 program = {
149 "animate=idle 600000",
150 "remove="
151 }
152 },
153
154 animations = {
155 idle = {
156 pictures = path.list_files(dirname .. "pics/coal_2_?.png"),
157 hotspot = {2, 49},
158 fps = 4,
159 },
160 }
161}
162
163tribes:new_immovable_type {
164 msgctxt = "immovable",
165 name = "frisians_resi_gold_2",
166 -- TRANSLATORS: This is a resource name used in lists of resources
167 descname = pgettext("immovable", "Resources: Main Gold Vein"),
168 helptext_script = dirname .. "../helptexts/gold_2.lua",
169 attributes = { "resi" },
170 programs = {
171 program = {
172 "animate=idle 600000",
173 "remove="
174 }
175 },
176
177 animations = {
178 idle = {
179 pictures = path.list_files(dirname .. "pics/gold_2_?.png"),
180 hotspot = {2, 49},
181 fps = 4,
182 },
183 }
184}
185
186tribes:new_immovable_type {
187 msgctxt = "immovable",
188 name = "frisians_resi_iron_2",
189 -- TRANSLATORS: This is a resource name used in lists of resources
190 descname = pgettext("immovable", "Resources: Main Iron Vein"),
191 helptext_script = dirname .. "../helptexts/iron_2.lua",
192 attributes = { "resi" },
193 programs = {
194 program = {
195 "animate=idle 600000",
196 "remove="
197 }
198 },
199
200 animations = {
201 idle = {
202 pictures = path.list_files(dirname .. "pics/iron_2_?.png"),
203 hotspot = {2, 49},
204 fps = 4,
205 },
206 }
207}
208
209tribes:new_immovable_type {
210 msgctxt = "immovable",
211 name = "frisians_resi_stones_2",
212 -- TRANSLATORS: This is a resource name used in lists of resources
213 descname = pgettext("immovable", "Resources: A Lot of Stones"),
214 helptext_script = dirname .. "../helptexts/stones_2.lua",
215 attributes = { "resi" },
216 programs = {
217 program = {
218 "animate=idle 600000",
219 "remove="
220 }
221 },
222
223 animations = {
224 idle = {
225 pictures = path.list_files(dirname .. "pics/stones_2_?.png"),
226 hotspot = {2, 49},
227 fps = 4,
228 },
229 }
230}
0231
=== added directory 'data/tribes/immovables/resi/frisians/pics'
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_1_0.png'
1Binary 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 differ232Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_1_1.png'
2Binary 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 differ233Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_1_2.png'
3Binary 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 differ234Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_1_3.png'
4Binary 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 differ235Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_2_0.png'
5Binary 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 differ236Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_2_1.png'
6Binary 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 differ237Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_2_2.png'
7Binary 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 differ238Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/coal_2_3.png'
8Binary 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 differ239Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_1_0.png'
9Binary 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 differ240Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_1_1.png'
10Binary 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 differ241Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_1_2.png'
11Binary 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 differ242Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_1_3.png'
12Binary 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 differ243Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_2_0.png'
13Binary 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 differ244Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_2_1.png'
14Binary 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 differ245Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_2_2.png'
15Binary 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 differ246Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/gold_2_3.png'
16Binary 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 differ247Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_1_0.png'
17Binary 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 differ248Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_1_1.png'
18Binary 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 differ249Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_1_2.png'
19Binary 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 differ250Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_1_3.png'
20Binary 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 differ251Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_2_0.png'
21Binary 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 differ252Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_2_1.png'
22Binary 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 differ253Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_2_2.png'
23Binary 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 differ254Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/iron_2_3.png'
24Binary 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 differ255Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/none.png'
25Binary 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 differ256Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_1_0.png'
26Binary 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 differ257Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_1_1.png'
27Binary 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 differ258Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_1_2.png'
28Binary 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 differ259Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_1_3.png'
29Binary 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 differ260Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_2_0.png'
30Binary 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 differ261Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_2_1.png'
31Binary 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 differ262Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_2_2.png'
32Binary 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 differ263Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/stones_2_3.png'
33Binary 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 differ264Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/water_0.png'
34Binary 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 differ265Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/water_1.png'
35Binary 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 differ266Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/water_2.png'
36Binary 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 differ267Binary 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
=== added file 'data/tribes/immovables/resi/frisians/pics/water_3.png'
37Binary 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 differ268Binary 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
=== added directory 'data/tribes/immovables/resi/helptexts'
=== added file 'data/tribes/immovables/resi/helptexts/coal_1.lua'
--- data/tribes/immovables/resi/helptexts/coal_1.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/coal_1.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,17 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Coal
5 _("Coal veins contain coal that can be dug up by coal mines."),
6 -- TRANSLATORS: Helptext for a resource: Coal
7 _("There is only a little bit of coal here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
018
=== added file 'data/tribes/immovables/resi/helptexts/coal_2.lua'
--- data/tribes/immovables/resi/helptexts/coal_2.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/coal_2.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,17 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Coal
5 _("Coal veins contain coal that can be dug up by coal mines."),
6 -- TRANSLATORS: Helptext for a resource: Coal
7 _("There is a lot of coal here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
018
=== added file 'data/tribes/immovables/resi/helptexts/gold_1.lua'
--- data/tribes/immovables/resi/helptexts/gold_1.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/gold_1.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,17 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Gold
5 _("Gold veins contain gold ore that can be dug up by gold mines."),
6 -- TRANSLATORS: Helptext for a resource: Gold
7 _("There is only a little bit of gold here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
018
=== added file 'data/tribes/immovables/resi/helptexts/gold_2.lua'
--- data/tribes/immovables/resi/helptexts/gold_2.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/gold_2.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,17 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Gold
5 _("Gold veins contain gold ore that can be dug up by gold mines."),
6 -- TRANSLATORS: Helptext for a resource: Gold
7 _("There is a lot of gold here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
018
=== added file 'data/tribes/immovables/resi/helptexts/iron_1.lua'
--- data/tribes/immovables/resi/helptexts/iron_1.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/iron_1.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,17 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Iron
5 _("Iron veins contain iron ore that can be dug up by iron mines."),
6 -- TRANSLATORS: Helptext for a resource: Iron
7 _("There is only a little bit of iron here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
018
=== added file 'data/tribes/immovables/resi/helptexts/iron_2.lua'
--- data/tribes/immovables/resi/helptexts/iron_2.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/iron_2.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,17 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Iron
5 _("Iron veins contain iron ore that can be dug up by iron mines."),
6 -- TRANSLATORS: Helptext for a resource: Iron
7 _("There is a lot of iron here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
018
=== added file 'data/tribes/immovables/resi/helptexts/none.lua'
--- data/tribes/immovables/resi/helptexts/none.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/none.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,14 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 -- TRANSLATORS: Helptext for a resource: No resources
4 default = _("There are no resources in the ground here.")
5 }
6 local result = ""
7 if tribe then
8 result = helptext[tribe]
9 else
10 result = helptext["default"]
11 end
12 if (result == nil) then result = "" end
13 return result
14end
015
=== added file 'data/tribes/immovables/resi/helptexts/stones_1.lua'
--- data/tribes/immovables/resi/helptexts/stones_1.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/stones_1.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,32 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 atlanteans = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
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."),
6 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
7 _("There are only a few precious stones here.")),
8 barbarians = pgettext("sentence_separator", "%s %s"):bformat(
9 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
10 _("Granite is a basic building material and can be dug up by a granite mine."),
11 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
12 _("There is only a little bit of granite here.")),
13 empire = pgettext("sentence_separator", "%s %s"):bformat(
14 -- TRANSLATORS: Helptext for an Empire resource: Stones
15 _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."),
16 -- TRANSLATORS: Helptext for an Empire resource: Stones
17 _("There is only a little bit of marble here.")),
18 frisians = pgettext("sentence_separator", "%s %s"):bformat(
19 -- TRANSLATORS: Helptext for a Frisian resource: Stones
20 _("Granite is a basic building material and can be dug up by a rock mine."),
21 -- TRANSLATORS: Helptext for a Frisian resource: Stones
22 _("There is only a little bit of granite here.")),
23 }
24 local result = ""
25 if tribe then
26 result = helptext[tribe]
27 else
28 result = helptext["default"]
29 end
30 if (result == nil) then result = "" end
31 return result
32end
033
=== added file 'data/tribes/immovables/resi/helptexts/stones_2.lua'
--- data/tribes/immovables/resi/helptexts/stones_2.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/stones_2.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,32 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 atlanteans = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
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."),
6 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
7 _("There are many precious stones here.")),
8 barbarians = pgettext("sentence_separator", "%s %s"):bformat(
9 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
10 _("Granite is a basic building material and can be dug up by a granite mine."),
11 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
12 _("There is a lot of granite here.")),
13 empire = pgettext("sentence_separator", "%s %s"):bformat(
14 -- TRANSLATORS: Helptext for an Empire resource: Stones
15 _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."),
16 -- TRANSLATORS: Helptext for an Empire resource: Stones
17 _("There is a lot of marble here.")),
18 frisians = pgettext("sentence_separator", "%s %s"):bformat(
19 -- TRANSLATORS: Helptext for a Frisian resource: Stones
20 _("Granite is a basic building material and can be dug up by a rock mine."),
21 -- TRANSLATORS: Helptext for a Frisian resource: Stones
22 _("There is a lot of granite here.")),
23 }
24 local result = ""
25 if tribe then
26 result = helptext[tribe]
27 else
28 result = helptext["default"]
29 end
30 if (result == nil) then result = "" end
31 return result
32end
033
=== added file 'data/tribes/immovables/resi/helptexts/water.lua'
--- data/tribes/immovables/resi/helptexts/water.lua 1970-01-01 00:00:00 +0000
+++ data/tribes/immovables/resi/helptexts/water.lua 2018-09-14 06:31:21 +0000
@@ -0,0 +1,14 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 -- TRANSLATORS: Helptext for a resource: Water
4 default = _("There is water in the ground here that can be pulled up by a well.")
5 }
6 local result = ""
7 if tribe then
8 result = helptext[tribe]
9 else
10 result = helptext["default"]
11 end
12 if (result == nil) then result = "" end
13 return result
14end
015
=== removed directory 'data/tribes/immovables/resi_coal1'
=== removed file 'data/tribes/immovables/resi_coal1/helptexts.lua'
--- data/tribes/immovables/resi_coal1/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_coal1/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Coal
5 _("Coal veins contain coal that can be dug up by coal mines."),
6 -- TRANSLATORS: Helptext for a resource: Coal
7 _("There is only a little bit of coal here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
180
=== removed file 'data/tribes/immovables/resi_coal1/idle_00.png'
19Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_coal1/init.lua'
--- data/tribes/immovables/resi_coal1/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_coal1/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_coal1",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Coal Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_coal2'
=== removed file 'data/tribes/immovables/resi_coal2/helptexts.lua'
--- data/tribes/immovables/resi_coal2/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_coal2/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Coal
5 _("Coal veins contain coal that can be dug up by coal mines."),
6 -- TRANSLATORS: Helptext for a resource: Coal
7 _("There is a lot of coal here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
180
=== removed file 'data/tribes/immovables/resi_coal2/idle_00.png'
19Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_coal2/init.lua'
--- data/tribes/immovables/resi_coal2/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_coal2/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_coal2",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Main Coal Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_gold1'
=== removed file 'data/tribes/immovables/resi_gold1/helptexts.lua'
--- data/tribes/immovables/resi_gold1/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_gold1/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Gold
5 _("Gold veins contain gold ore that can be dug up by gold mines."),
6 -- TRANSLATORS: Helptext for a resource: Gold
7 _("There is only a little bit of gold here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
180
=== removed file 'data/tribes/immovables/resi_gold1/idle_00.png'
19Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_gold1/init.lua'
--- data/tribes/immovables/resi_gold1/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_gold1/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_gold1",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Gold Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_gold2'
=== removed file 'data/tribes/immovables/resi_gold2/helptexts.lua'
--- data/tribes/immovables/resi_gold2/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_gold2/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Gold
5 _("Gold veins contain gold ore that can be dug up by gold mines."),
6 -- TRANSLATORS: Helptext for a resource: Gold
7 _("There is a lot of gold here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
180
=== removed file 'data/tribes/immovables/resi_gold2/idle_00.png'
19Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_gold2/init.lua'
--- data/tribes/immovables/resi_gold2/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_gold2/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_gold2",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Main Gold Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_iron1'
=== removed file 'data/tribes/immovables/resi_iron1/helptexts.lua'
--- data/tribes/immovables/resi_iron1/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_iron1/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Iron
5 _("Iron veins contain iron ore that can be dug up by iron mines."),
6 -- TRANSLATORS: Helptext for a resource: Iron
7 _("There is only a little bit of iron here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
180
=== removed file 'data/tribes/immovables/resi_iron1/idle_00.png'
19Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_iron1/init.lua'
--- data/tribes/immovables/resi_iron1/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_iron1/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_iron1",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Iron Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_iron2'
=== removed file 'data/tribes/immovables/resi_iron2/helptexts.lua'
--- data/tribes/immovables/resi_iron2/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_iron2/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,17 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 default = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for a resource: Iron
5 _("Iron veins contain iron ore that can be dug up by iron mines."),
6 -- TRANSLATORS: Helptext for a resource: Iron
7 _("There is a lot of iron here."))
8 }
9 local result = ""
10 if tribe then
11 result = helptext[tribe]
12 else
13 result = helptext["default"]
14 end
15 if (result == nil) then result = "" end
16 return result
17end
180
=== removed file 'data/tribes/immovables/resi_iron2/idle_00.png'
19Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_iron2/init.lua'
--- data/tribes/immovables/resi_iron2/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_iron2/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_iron2",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Main Iron Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_none'
=== removed file 'data/tribes/immovables/resi_none/helptexts.lua'
--- data/tribes/immovables/resi_none/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_none/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 -- TRANSLATORS: Helptext for a resource: No resources
4 default = _("There are no resources in the ground here.")
5 }
6 local result = ""
7 if tribe then
8 result = helptext[tribe]
9 else
10 result = helptext["default"]
11 end
12 if (result == nil) then result = "" end
13 return result
14end
150
=== removed file 'data/tribes/immovables/resi_none/idle_00.png'
16Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_none/init.lua'
--- data/tribes/immovables/resi_none/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_none/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_none",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: None"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_stones1'
=== removed file 'data/tribes/immovables/resi_stones1/helptexts.lua'
--- data/tribes/immovables/resi_stones1/helptexts.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_stones1/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 atlanteans = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
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."),
6 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
7 _("There are only a few precious stones here.")),
8 barbarians = pgettext("sentence_separator", "%s %s"):bformat(
9 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
10 _("Granite is a basic building material and can be dug up by a granite mine."),
11 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
12 _("There is only a little bit of granite here.")),
13 empire = pgettext("sentence_separator", "%s %s"):bformat(
14 -- TRANSLATORS: Helptext for an Empire resource: Stones
15 _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."),
16 -- TRANSLATORS: Helptext for an Empire resource: Stones
17 _("There is only a little bit of marble here."))
18 }
19 local result = ""
20 if tribe then
21 result = helptext[tribe]
22 else
23 result = helptext["default"]
24 end
25 if (result == nil) then result = "" end
26 return result
27end
280
=== removed file 'data/tribes/immovables/resi_stones1/idle_00.png'
29Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_stones1/init.lua'
--- data/tribes/immovables/resi_stones1/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_stones1/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_stones1",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Some Stones"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_stones2'
=== removed file 'data/tribes/immovables/resi_stones2/helptexts.lua'
--- data/tribes/immovables/resi_stones2/helptexts.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_stones2/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,27 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 atlanteans = pgettext("sentence_separator", "%s %s"):bformat(
4 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
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."),
6 -- TRANSLATORS: Helptext for an Atlantean resource: Stones
7 _("There are many precious stones here.")),
8 barbarians = pgettext("sentence_separator", "%s %s"):bformat(
9 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
10 _("Granite is a basic building material and can be dug up by a granite mine."),
11 -- TRANSLATORS: Helptext for a Barbarian resource: Stones
12 _("There is a lot of granite here.")),
13 empire = pgettext("sentence_separator", "%s %s"):bformat(
14 -- TRANSLATORS: Helptext for an Empire resource: Stones
15 _("Marble is a basic building material and can be dug up by a marble mine. You will also get granite from the mine."),
16 -- TRANSLATORS: Helptext for an Empire resource: Stones
17 _("There is a lot of marble here."))
18 }
19 local result = ""
20 if tribe then
21 result = helptext[tribe]
22 else
23 result = helptext["default"]
24 end
25 if (result == nil) then result = "" end
26 return result
27end
280
=== removed file 'data/tribes/immovables/resi_stones2/idle_00.png'
29Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_stones2/init.lua'
--- data/tribes/immovables/resi_stones2/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_stones2/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_stones2",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: A Lot of Stones"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== removed directory 'data/tribes/immovables/resi_water1'
=== removed file 'data/tribes/immovables/resi_water1/helptexts.lua'
--- data/tribes/immovables/resi_water1/helptexts.lua 2017-11-12 16:21:28 +0000
+++ data/tribes/immovables/resi_water1/helptexts.lua 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1function immovable_helptext(tribe)
2 local helptext = {
3 -- TRANSLATORS: Helptext for a resource: Water
4 default = _("There is water in the ground here that can be pulled up by a well.")
5 }
6 local result = ""
7 if tribe then
8 result = helptext[tribe]
9 else
10 result = helptext["default"]
11 end
12 if (result == nil) then result = "" end
13 return result
14end
150
=== removed file 'data/tribes/immovables/resi_water1/idle_00.png'
16Binary 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 differ1Binary 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
=== removed file 'data/tribes/immovables/resi_water1/init.lua'
--- data/tribes/immovables/resi_water1/init.lua 2017-11-18 14:19:28 +0000
+++ data/tribes/immovables/resi_water1/init.lua 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1dirname = path.dirname(__file__)
2
3tribes:new_immovable_type {
4 msgctxt = "immovable",
5 name = "resi_water1",
6 -- TRANSLATORS: This is a resource name used in lists of resources
7 descname = pgettext("immovable", "Resources: Water Vein"),
8 helptext_script = dirname .. "helptexts.lua",
9 attributes = { "resi" },
10 programs = {
11 program = {
12 "animate=idle 600000",
13 "remove="
14 }
15 },
16
17 animations = {
18 idle = {
19 pictures = path.list_files(dirname .. "idle_??.png"),
20 hotspot = { 7, 10 },
21 },
22 }
23}
240
=== modified file 'data/tribes/init.lua'
--- data/tribes/init.lua 2018-07-15 10:32:12 +0000
+++ data/tribes/init.lua 2018-09-14 06:31:21 +0000
@@ -179,16 +179,10 @@
179 include "tribes/immovables/reed_ripe/init.lua"179 include "tribes/immovables/reed_ripe/init.lua"
180 include "tribes/immovables/reed_small/init.lua"180 include "tribes/immovables/reed_small/init.lua"
181 include "tribes/immovables/reed_tiny/init.lua"181 include "tribes/immovables/reed_tiny/init.lua"
182 include "tribes/immovables/resi_coal1/init.lua"182 include "tribes/immovables/resi/atlanteans/init.lua"
183 include "tribes/immovables/resi_coal2/init.lua"183 include "tribes/immovables/resi/barbarians/init.lua"
184 include "tribes/immovables/resi_gold1/init.lua"184 include "tribes/immovables/resi/empire/init.lua"
185 include "tribes/immovables/resi_gold2/init.lua"185 include "tribes/immovables/resi/frisians/init.lua"
186 include "tribes/immovables/resi_iron1/init.lua"
187 include "tribes/immovables/resi_iron2/init.lua"
188 include "tribes/immovables/resi_none/init.lua"
189 include "tribes/immovables/resi_stones1/init.lua"
190 include "tribes/immovables/resi_stones2/init.lua"
191 include "tribes/immovables/resi_water1/init.lua"
192 include "tribes/immovables/shipconstruction_atlanteans/init.lua"186 include "tribes/immovables/shipconstruction_atlanteans/init.lua"
193 include "tribes/immovables/shipconstruction_barbarians/init.lua"187 include "tribes/immovables/shipconstruction_barbarians/init.lua"
194 include "tribes/immovables/shipconstruction_empire/init.lua"188 include "tribes/immovables/shipconstruction_empire/init.lua"
195189
=== modified file 'data/tribes/scripting/help/building_help.lua'
--- data/tribes/scripting/help/building_help.lua 2018-03-24 14:31:37 +0000
+++ data/tribes/scripting/help/building_help.lua 2018-09-14 06:31:21 +0000
@@ -1,5 +1,3 @@
1-- TODO(GunChleoc): get resi_00.png from C++
2
3include "tribes/scripting/help/format_help.lua"1include "tribes/scripting/help/format_help.lua"
42
5-- RST3-- RST
@@ -46,15 +44,24 @@
46-- :arg text: comment of the image.44-- :arg text: comment of the image.
47-- :returns: a row of pictures connected by arrows.45-- :returns: a row of pictures connected by arrows.
48--46--
49function dependencies_resi(resource, items, text)47function dependencies_resi(tribename, resource, items, text)
50 if not text then48 if not text then
51 text = ""49 text = ""
52 end50 end
53 local items_with_resouce = { "tribes/immovables/" .. resource .. "/idle_00.png" }51 local tribe_descr = wl.Game():get_tribe_description(tribename)
52 local resi
53 local am = 0
54 for amount,name in pairs(tribe_descr.resource_indicators[resource]) do
55 if amount > am then
56 resi = name
57 am = amount
58 end
59 end
60 local items_with_resource = { wl.Game():get_immovable_description(resi).representative_image }
54 for count, item in pairs(items) do61 for count, item in pairs(items) do
55 table.insert(items_with_resouce, item.icon_name)62 table.insert(items_with_resource, item.icon_name)
56 end63 end
57 return dependencies_basic(items_with_resouce, text)64 return dependencies_basic(items_with_resource, text)
58end65end
5966
6067
@@ -301,8 +308,8 @@
301 elseif(resi_name == "quartz") then resi_name = "stones"308 elseif(resi_name == "quartz") then resi_name = "stones"
302 elseif(resi_name == "marble") then resi_name = "stones"309 elseif(resi_name == "marble") then resi_name = "stones"
303 elseif(resi_name == "gold_ore") then resi_name = "gold" end310 elseif(resi_name == "gold_ore") then resi_name = "gold" end
304 result = result .. dependencies_resi(311 result = result .. dependencies_resi(tribe.name,
305 "resi_"..resi_name.."2",312 resi_name,
306 {building_description, ware_description},313 {building_description, ware_description},
307 ware_description.descname314 ware_description.descname
308 )315 )
309316
=== modified file 'src/logic/editor_game_base.cc'
--- src/logic/editor_game_base.cc 2018-04-27 06:11:05 +0000
+++ src/logic/editor_game_base.cc 2018-09-14 06:31:21 +0000
@@ -42,6 +42,7 @@
42#include "logic/map_objects/tribes/ware_descr.h"42#include "logic/map_objects/tribes/ware_descr.h"
43#include "logic/map_objects/tribes/worker.h"43#include "logic/map_objects/tribes/worker.h"
44#include "logic/map_objects/world/critter.h"44#include "logic/map_objects/world/critter.h"
45#include "logic/map_objects/world/resource_description.h"
45#include "logic/map_objects/world/world.h"46#include "logic/map_objects/world/world.h"
46#include "logic/mapregion.h"47#include "logic/mapregion.h"
47#include "logic/player.h"48#include "logic/player.h"
@@ -199,6 +200,20 @@
199 assert(tribes_);200 assert(tribes_);
200 tribes_->postload();201 tribes_->postload();
201202
203 for (DescriptionIndex i = 0; i < tribes_->nrtribes(); i++) {
204 const TribeDescr* tribe = tribes_->get_tribe_descr(i);
205 for (DescriptionIndex j = 0; j < world_->get_nr_resources(); j++) {
206 const ResourceDescription* res = world_->get_resource(j);
207 if (res->detectable()) {
208 // This function will throw an exception if this tribe doesn't
209 // have a high enough resource indicator for this resource
210 tribe->get_resource_indicator(res, res->max_amount());
211 }
212 }
213 // For the "none" indicator
214 tribe->get_resource_indicator(nullptr, 0);
215 }
216
202 // TODO(unknown): postload players? (maybe)217 // TODO(unknown): postload players? (maybe)
203}218}
204219
205220
=== modified file 'src/logic/map_objects/tribes/tribe_descr.cc'
--- src/logic/map_objects/tribes/tribe_descr.cc 2018-04-07 16:59:00 +0000
+++ src/logic/map_objects/tribes/tribe_descr.cc 2018-09-14 06:31:21 +0000
@@ -162,6 +162,20 @@
162 }162 }
163 }163 }
164164
165 items_table = table.get_table("resource_indicators");
166 for (std::string resource : items_table->keys<std::string>()) {
167 ResourceIndicatorList resis;
168 std::unique_ptr<LuaTable> tbl = items_table->get_table(resource);
169 const std::set<int> keys = tbl->keys<int>();
170 for (int upper_limit : keys) {
171 resis[upper_limit] = tribes_.safe_immovable_index(tbl->get_string(upper_limit));
172 }
173 if (resis.empty()) {
174 throw GameDataError("Tribe has no indicators for resource %s.", resource.c_str());
175 }
176 resource_indicators_[resource] = resis;
177 };
178
165 ship_names_ = table.get_table("ship_names")->array_entries<std::string>();179 ship_names_ = table.get_table("ship_names")->array_entries<std::string>();
166180
167 for (const std::string& buildingname :181 for (const std::string& buildingname :
@@ -226,6 +240,9 @@
226const std::set<DescriptionIndex>& TribeDescr::immovables() const {240const std::set<DescriptionIndex>& TribeDescr::immovables() const {
227 return immovables_;241 return immovables_;
228}242}
243const ResourceIndicatorSet& TribeDescr::resource_indicators() const {
244 return resource_indicators_;
245}
229246
230bool TribeDescr::has_building(const DescriptionIndex& index) const {247bool TribeDescr::has_building(const DescriptionIndex& index) const {
231 return std::find(buildings_.begin(), buildings_.end(), index) != buildings_.end();248 return std::find(buildings_.begin(), buildings_.end(), index) != buildings_.end();
@@ -374,41 +391,35 @@
374DescriptionIndex TribeDescr::get_resource_indicator(ResourceDescription const* const res,391DescriptionIndex TribeDescr::get_resource_indicator(ResourceDescription const* const res,
375 const ResourceAmount amount) const {392 const ResourceAmount amount) const {
376 if (!res || !amount) {393 if (!res || !amount) {
377 DescriptionIndex idx = immovable_index("resi_none");394 auto list = resource_indicators_.find("");
378 if (!has_immovable(idx)) {395 if (list == resource_indicators_.end() || list->second.empty()) {
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());
380 }397 }
381 return idx;398 return list->second.begin()->second;
382 }399 }
383400
384 int32_t i = 1;401 auto list = resource_indicators_.find(res->name());
385 int32_t num_indicators = 0;402 if (list == resource_indicators_.end() || list->second.empty()) {
386 for (;;) {403 throw GameDataError("Tribe '%s' has no indicators for resource '%s'!", descname_.c_str(), res->name().c_str());
387 const std::string resi_filename =404 }
388 (boost::format("resi_%s%i") % res->name().c_str() % i).str();405
389 if (!has_immovable(immovable_index(resi_filename))) {406 uint32_t lowest = 0;
390 break;407 for (const auto& resi : list->second) {
391 }408 if (resi.first < amount) {
392 ++i;409 continue;
393 ++num_indicators;410 }
394 }411 else if (lowest < amount || resi.first < lowest) {
395412 lowest = resi.first;
396 if (!num_indicators) {413 }
397 throw GameDataError("There is no resource indicator for resource %s", res->name().c_str());414 }
398 }415
399416 if (lowest < amount) {
400 int32_t bestmatch =417 throw GameDataError(
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)!",
402 if (bestmatch > num_indicators) {419 descname_.c_str(), amount, res->name().c_str(), lowest);
403 throw GameDataError("Amount of %s is %i but max amount is %i", res->name().c_str(),420 }
404 static_cast<unsigned int>(amount),421
405 static_cast<unsigned int>(res->max_amount()));422 return list->second.find(lowest)->second;
406 }
407 if (amount < res->max_amount()) {
408 bestmatch += 1; // Resi start with 1, not 0
409 }
410
411 return immovable_index((boost::format("resi_%s%i") % res->name().c_str() % bestmatch).str());
412}423}
413424
414void TribeDescr::resize_ware_orders(size_t maxLength) {425void TribeDescr::resize_ware_orders(size_t maxLength) {
415426
=== modified file 'src/logic/map_objects/tribes/tribe_descr.h'
--- src/logic/map_objects/tribes/tribe_descr.h 2018-04-07 16:59:00 +0000
+++ src/logic/map_objects/tribes/tribe_descr.h 2018-09-14 06:31:21 +0000
@@ -49,6 +49,16 @@
49struct Event;49struct Event;
5050
51/*51/*
52 * Resource indicators:
53 * A ResourceIndicatorSet maps the resource name to a ResourceIndicatorList.
54 * A ResourceIndicatorList maps resource amounts to the DescriptionIndex of an immovable this player uses.
55 * Special case: The ResourceIndicatorList mapped to "" contains resis that will be used in locations
56 * without resources. If it has several entries, result is arbitrary.
57*/
58using ResourceIndicatorList = std::map<uint32_t, DescriptionIndex>;
59using ResourceIndicatorSet = std::map<std::string, ResourceIndicatorList>;
60
61/*
52Tribes62Tribes
53------63------
5464
@@ -72,6 +82,7 @@
72 const std::set<DescriptionIndex>& wares() const;82 const std::set<DescriptionIndex>& wares() const;
73 const std::set<DescriptionIndex>& workers() const;83 const std::set<DescriptionIndex>& workers() const;
74 const std::set<DescriptionIndex>& immovables() const;84 const std::set<DescriptionIndex>& immovables() const;
85 const ResourceIndicatorSet& resource_indicators() const;
7586
76 bool has_building(const DescriptionIndex& index) const;87 bool has_building(const DescriptionIndex& index) const;
77 bool has_ware(const DescriptionIndex& index) const;88 bool has_ware(const DescriptionIndex& index) const;
@@ -184,6 +195,7 @@
184 std::vector<std::string> ship_names_;195 std::vector<std::string> ship_names_;
185 std::set<DescriptionIndex> workers_;196 std::set<DescriptionIndex> workers_;
186 std::set<DescriptionIndex> wares_;197 std::set<DescriptionIndex> wares_;
198 ResourceIndicatorSet resource_indicators_;
187 // The wares that are used by construction sites199 // The wares that are used by construction sites
188 std::set<DescriptionIndex> construction_materials_;200 std::set<DescriptionIndex> construction_materials_;
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.
190202
=== modified file 'src/map_io/tribes_legacy_lookup_table.cc'
--- src/map_io/tribes_legacy_lookup_table.cc 2018-04-07 16:59:00 +0000
+++ src/map_io/tribes_legacy_lookup_table.cc 2018-09-14 06:31:21 +0000
@@ -194,9 +194,19 @@
194 {"cornfield_m", "cornfield_medium"},194 {"cornfield_m", "cornfield_medium"},
195 {"cornfield_s", "cornfield_small"},195 {"cornfield_s", "cornfield_small"},
196 {"cornfield_t", "cornfield_tiny"},196 {"cornfield_t", "cornfield_tiny"},
197 {"resi_granite1", "resi_stones1"},197 {"resi_granite1", "atlanteans_resi_stones_1"},
198 {"resi_granite2", "resi_stones2"},198 {"resi_granite2", "atlanteans_resi_stones_2"},
199 {"shipconstruction", "atlanteans_shipconstruction"},199 {"shipconstruction", "atlanteans_shipconstruction"},
200 {"resi_coal1", "atlanteans_resi_coal_1"},
201 {"resi_iron1", "atlanteans_resi_iron_1"},
202 {"resi_gold1", "atlanteans_resi_gold_1"},
203 {"resi_stones1", "atlanteans_resi_stones_1"},
204 {"resi_coal2", "atlanteans_resi_coal_2"},
205 {"resi_iron2", "atlanteans_resi_iron_2"},
206 {"resi_gold2", "atlanteans_resi_gold_2"},
207 {"resi_stones2", "atlanteans_resi_stones_2"},
208 {"resi_none", "atlanteans_resi_none"},
209 {"resi_water1", "atlanteans_resi_water"},
200 }),210 }),
201 std::make_pair("barbarians",211 std::make_pair("barbarians",
202 std::map<std::string, std::string>{212 std::map<std::string, std::string>{
@@ -209,9 +219,19 @@
209 {"reed0s", "reed_small"},219 {"reed0s", "reed_small"},
210 {"reed0t", "reed_tiny"},220 {"reed0t", "reed_tiny"},
211 {"reed1", "reed_ripe"},221 {"reed1", "reed_ripe"},
212 {"resi_granite1", "resi_stones1"},222 {"resi_granite1", "barbarians_resi_stones_1"},
213 {"resi_granite2", "resi_stones2"},223 {"resi_granite2", "barbarians_resi_stones_2"},
214 {"shipconstruction", "barbarians_shipconstruction"},224 {"shipconstruction", "barbarians_shipconstruction"},
225 {"resi_coal1", "barbarians_resi_coal_1"},
226 {"resi_iron1", "barbarians_resi_iron_1"},
227 {"resi_gold1", "barbarians_resi_gold_1"},
228 {"resi_stones1", "barbarians_resi_stones_1"},
229 {"resi_coal2", "barbarians_resi_coal_2"},
230 {"resi_iron2", "barbarians_resi_iron_2"},
231 {"resi_gold2", "barbarians_resi_gold_2"},
232 {"resi_stones2", "barbarians_resi_stones_2"},
233 {"resi_none", "barbarians_resi_none"},
234 {"resi_water1", "barbarians_resi_water"},
215 }),235 }),
216 std::make_pair("empire",236 std::make_pair("empire",
217 std::map<std::string, std::string>{237 std::map<std::string, std::string>{
@@ -224,9 +244,32 @@
224 {"wine0s", "grapevine_small"},244 {"wine0s", "grapevine_small"},
225 {"wine0t", "grapevine_tiny"},245 {"wine0t", "grapevine_tiny"},
226 {"wine1", "grapevine_ripe"},246 {"wine1", "grapevine_ripe"},
227 {"resi_granite1", "resi_stones1"},247 {"resi_granite1", "empire_resi_stones_1"},
228 {"resi_granite2", "resi_stones2"},248 {"resi_granite2", "empire_resi_stones_2"},
229 {"shipconstruction", "empire_shipconstruction"},249 {"shipconstruction", "empire_shipconstruction"},
250 {"resi_coal1", "empire_resi_coal_1"},
251 {"resi_iron1", "empire_resi_iron_1"},
252 {"resi_gold1", "empire_resi_gold_1"},
253 {"resi_stones1", "empire_resi_stones_1"},
254 {"resi_coal2", "empire_resi_coal_2"},
255 {"resi_iron2", "empire_resi_iron_2"},
256 {"resi_gold2", "empire_resi_gold_2"},
257 {"resi_stones2", "empire_resi_stones_2"},
258 {"resi_none", "empire_resi_none"},
259 {"resi_water1", "empire_resi_water"},
260 }),
261 std::make_pair("frisians",
262 std::map<std::string, std::string>{
263 {"resi_coal1", "frisians_resi_coal_1"},
264 {"resi_iron1", "frisians_resi_iron_1"},
265 {"resi_gold1", "frisians_resi_gold_1"},
266 {"resi_stones1", "frisians_resi_stones_1"},
267 {"resi_coal2", "frisians_resi_coal_2"},
268 {"resi_iron2", "frisians_resi_iron_2"},
269 {"resi_gold2", "frisians_resi_gold_2"},
270 {"resi_stones2", "frisians_resi_stones_2"},
271 {"resi_none", "frisians_resi_none"},
272 {"resi_water1", "frisians_resi_water"},
230 }),273 }),
231 } {274 } {
232}275}
233276
=== modified file 'src/scripting/lua_map.cc'
--- src/scripting/lua_map.cc 2018-09-04 15:48:47 +0000
+++ src/scripting/lua_map.cc 2018-09-14 06:31:21 +0000
@@ -1386,6 +1386,7 @@
1386 PROP_RO(LuaTribeDescription, descname),1386 PROP_RO(LuaTribeDescription, descname),
1387 PROP_RO(LuaTribeDescription, geologist),1387 PROP_RO(LuaTribeDescription, geologist),
1388 PROP_RO(LuaTribeDescription, immovables),1388 PROP_RO(LuaTribeDescription, immovables),
1389 PROP_RO(LuaTribeDescription, resource_indicators),
1389 PROP_RO(LuaTribeDescription, name),1390 PROP_RO(LuaTribeDescription, name),
1390 PROP_RO(LuaTribeDescription, port),1391 PROP_RO(LuaTribeDescription, port),
1391 PROP_RO(LuaTribeDescription, ship),1392 PROP_RO(LuaTribeDescription, ship),
@@ -1496,6 +1497,29 @@
1496}1497}
14971498
1498/* RST1499/* RST
1500 .. attribute:: resource_indicators
1501
1502 (RO) the table `resource_indicators` as defined in the tribe's `tribename.lua`.
1503 See `data/tribes/atlanteans.lua` for more information on the table structure.
1504*/
1505int LuaTribeDescription::get_resource_indicators(lua_State* L) {
1506 const TribeDescr& tribe = *get();
1507 lua_newtable(L);
1508 const ResourceIndicatorSet resis = tribe.resource_indicators();
1509 for (const auto& resilist : resis) {
1510 lua_pushstring(L, resilist.first);
1511 lua_newtable(L);
1512 for (const auto& resi : resilist.second) {
1513 lua_pushinteger(L, resi.first);
1514 lua_pushstring(L, tribe.get_immovable_descr(resi.second)->name());
1515 lua_settable(L, -3);
1516 }
1517 lua_settable(L, -3);
1518 }
1519 return 1;
1520}
1521
1522/* RST
1499 .. attribute:: name1523 .. attribute:: name
15001524
1501 (RO) a :class:`string` with the tribe's internal name1525 (RO) a :class:`string` with the tribe's internal name
15021526
=== modified file 'src/scripting/lua_map.h'
--- src/scripting/lua_map.h 2018-04-11 06:55:01 +0000
+++ src/scripting/lua_map.h 2018-09-14 06:31:21 +0000
@@ -134,6 +134,7 @@
134 int get_carrier2(lua_State*);134 int get_carrier2(lua_State*);
135 int get_descname(lua_State*);135 int get_descname(lua_State*);
136 int get_immovables(lua_State*);136 int get_immovables(lua_State*);
137 int get_resource_indicators(lua_State*);
137 int get_geologist(lua_State*);138 int get_geologist(lua_State*);
138 int get_name(lua_State*);139 int get_name(lua_State*);
139 int get_port(lua_State*);140 int get_port(lua_State*);

Subscribers

People subscribed via source and target branches

to status/vote changes: