Merge lp:~widelands-dev/widelands/frisians-fix into lp:widelands

Proposed by Benedikt Straub
Status: Merged
Merged at revision: 8664
Proposed branch: lp:~widelands-dev/widelands/frisians-fix
Merge into: lp:widelands
Diff against target: 257 lines (+129/-5)
9 files modified
data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/collectors_house/init.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/drinking_hall/helptexts.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/honey_bread_bakery/helptexts.lua (+1/-1)
data/tribes/frisians.lua (+4/-0)
data/tribes/immovables/berry_bushes/juniper/helptexts.lua (+13/-0)
data/tribes/immovables/berry_bushes/juniper/init.lua (+106/-0)
data/tribes/init.lua (+1/-0)
To merge this branch: bzr merge lp:~widelands-dev/widelands/frisians-fix
Reviewer Review Type Date Requested Status
hessenfarmer playtest Approve
GunChleoc Approve
Review via email: mp+343755@code.launchpad.net

Commit message

Three small changes to the frisians tribe:
- Corrected requires_supporters AI hint in aqua farm, beekeeper, fruit collector
- Corrected drinking hall helptext
- New juniper shrub

Description of the change

Three small changes to the frisians tribe:
· Corrected requires_supporters AI hint in aqua farm, beekeeper, fruit collector
· Corrected drinking hall helptext
· New juniper shrub

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

Continuous integration builds have changed state:

Travis build 3394. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/369582958.
Appveyor build 3200. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_frisians_fix-3200.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Code LGTM, not tested

review: Approve
Revision history for this message
hessenfarmer (stephan-lutz) wrote :

please do a quick check of the lore text for the Honeybread bakery imo the honey is missing in the text would sound better ... that koneybread is sweeter

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

OK, I added the honey to the bread

Revision history for this message
GunChleoc (gunchleoc) wrote :

Only do this change if you like it yourself - I think it sounds less poetic, and Hessenfarmer & I don't agree on the issue. You're the author, so let's make you the arbiter.

Keep in mind that this is a flavor text and not an instruction to the player. Frisians would get the joke without "honey" in it.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

As we don't fully agree on the issue regarding the honey. We do fully agree on the matter that you should just implement things you are happy with.
Generally spoken: If you have something implemented intentionally I would be happy with the explanation as well instead of having things changed.

Revision history for this message
hessenfarmer (stephan-lutz) wrote :

Ok I did a playtest of four AI Players on Full Moon map. Beekeepers and fruit collectors were build in the vicinity of the relevant supporters.
However I noticed some things which I Need to analyze.
AI built very few claypits (only one AI built 2 of them still lacking clay extremely. This maybe fixed with Training, otherwise we Need to dig into the code.
Vicinity of supporter (supporters_nearby in the code) currently seems to be defined in a way, that it is sufficient that the working Areas just overlap by one field this is not good in terms of efficiency of the supported building, Will try to analyze this and discuss it with Tibor

review: Approve (playtest)
Revision history for this message
GunChleoc (gunchleoc) wrote :

Sounds good to me. Thanks for testing!

Let's have this branch and do further improvements in a follow-up branch.

@bunnybot merge

Revision history for this message
TiborB (tiborb95) wrote :

@hessenfarmer

the issue with working areas of supporters sound interesting - we can discuss it on forum or elsewhere...

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua'
2--- data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua 2018-04-15 18:38:30 +0000
3+++ data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua 2018-04-22 15:54:03 +0000
4@@ -33,7 +33,7 @@
5
6 aihints = {
7 prohibited_till = 760,
8- requires_helper = true
9+ requires_supporters = true
10 },
11
12 working_positions = {
13
14=== modified file 'data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua'
15--- data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua 2018-04-15 18:38:30 +0000
16+++ data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua 2018-04-22 15:54:03 +0000
17@@ -33,7 +33,7 @@
18
19 aihints = {
20 prohibited_till = 620,
21- requires_helper = true
22+ requires_supporters = true
23 },
24
25 working_positions = {
26
27=== modified file 'data/tribes/buildings/productionsites/frisians/collectors_house/init.lua'
28--- data/tribes/buildings/productionsites/frisians/collectors_house/init.lua 2018-04-15 18:38:30 +0000
29+++ data/tribes/buildings/productionsites/frisians/collectors_house/init.lua 2018-04-22 15:54:03 +0000
30@@ -33,7 +33,7 @@
31
32 aihints = {
33 prohibited_till = 470,
34- requires_helper = true
35+ requires_supporters = true
36 },
37
38 working_positions = {
39
40=== modified file 'data/tribes/buildings/productionsites/frisians/drinking_hall/helptexts.lua'
41--- data/tribes/buildings/productionsites/frisians/drinking_hall/helptexts.lua 2018-01-22 13:40:13 +0000
42+++ data/tribes/buildings/productionsites/frisians/drinking_hall/helptexts.lua 2018-04-22 15:54:03 +0000
43@@ -13,7 +13,7 @@
44
45 function building_helptext_purpose()
46 -- TRANSLATORS: Purpose helptext for a building
47- return pgettext("building", "Prepares rations and meals to feed the miners in the basic and deep mines.")
48+ return pgettext("frisians_building", "Prepares rations for scouts and rations and meals to feed the miners in all mines.")
49 end
50
51 function building_helptext_note()
52
53=== modified file 'data/tribes/buildings/productionsites/frisians/honey_bread_bakery/helptexts.lua'
54--- data/tribes/buildings/productionsites/frisians/honey_bread_bakery/helptexts.lua 2018-02-17 15:41:29 +0000
55+++ data/tribes/buildings/productionsites/frisians/honey_bread_bakery/helptexts.lua 2018-04-22 15:54:03 +0000
56@@ -3,7 +3,7 @@
57
58 function building_helptext_lore ()
59 -- TRANSLATORS: Lore helptext for a building
60- return pgettext ("frisians_building", "Rookies will say that vengeance is sweet. Heroes will say that bread is sweeter.")
61+ return pgettext ("frisians_building", "Rookies will say that vengeance is sweet. Heroes will say that honey bread is sweeter.")
62 end
63
64 function building_helptext_lore_author ()
65
66=== modified file 'data/tribes/frisians.lua'
67--- data/tribes/frisians.lua 2018-03-27 08:12:55 +0000
68+++ data/tribes/frisians.lua 2018-04-22 15:54:03 +0000
69@@ -164,6 +164,10 @@
70 "berry_bush_currant_red_small",
71 "berry_bush_currant_red_medium",
72 "berry_bush_currant_red_ripe",
73+ "berry_bush_juniper_tiny",
74+ "berry_bush_juniper_small",
75+ "berry_bush_juniper_medium",
76+ "berry_bush_juniper_ripe",
77 "berry_bush_raspberry_tiny",
78 "berry_bush_raspberry_small",
79 "berry_bush_raspberry_medium",
80
81=== added directory 'data/tribes/immovables/berry_bushes/juniper'
82=== added file 'data/tribes/immovables/berry_bushes/juniper/helptexts.lua'
83--- data/tribes/immovables/berry_bushes/juniper/helptexts.lua 1970-01-01 00:00:00 +0000
84+++ data/tribes/immovables/berry_bushes/juniper/helptexts.lua 2018-04-22 15:54:03 +0000
85@@ -0,0 +1,13 @@
86+function immovable_helptext(tribe)
87+ local helptext = {
88+ default = ""
89+ }
90+ local result = ""
91+ if tribe then
92+ result = helptext[tribe]
93+ else
94+ result = helptext["default"]
95+ end
96+ if (result == nil) then result = "" end
97+ return result
98+end
99
100=== added file 'data/tribes/immovables/berry_bushes/juniper/init.lua'
101--- data/tribes/immovables/berry_bushes/juniper/init.lua 1970-01-01 00:00:00 +0000
102+++ data/tribes/immovables/berry_bushes/juniper/init.lua 2018-04-22 15:54:03 +0000
103@@ -0,0 +1,106 @@
104+dirname = path.dirname (__file__)
105+
106+terrain_affinity = {
107+ preferred_temperature = 115,
108+ preferred_humidity = 0.6,
109+ preferred_fertility = 0.2,
110+ pickiness = 0.15,
111+}
112+
113+tribes:new_immovable_type {
114+ msgctxt = "immovable",
115+ name = "berry_bush_juniper_tiny",
116+ descname = _ "Juniper (tiny)",
117+ size = "small",
118+ helptext_script = dirname .. "helptexts.lua",
119+ attributes = { "seed_berrybush" },
120+ terrain_affinity = terrain_affinity,
121+ programs = {
122+ program = {
123+ "animate=idle 10000",
124+ "remove=60",
125+ "grow=berry_bush_juniper_small",
126+ },
127+ },
128+ animations = {
129+ idle = {
130+ pictures = path.list_files (dirname .. "tiny/idle_?.png"),
131+ hotspot = {3, 15},
132+ scale = 2,
133+ },
134+ },
135+}
136+
137+tribes:new_immovable_type {
138+ msgctxt = "immovable",
139+ name = "berry_bush_juniper_small",
140+ descname = _ "Juniper (small)",
141+ size = "small",
142+ helptext_script = dirname .. "helptexts.lua",
143+ attributes = {},
144+ terrain_affinity = terrain_affinity,
145+ programs = {
146+ program = {
147+ "animate=idle 10000",
148+ "remove=20",
149+ "grow=berry_bush_juniper_medium",
150+ },
151+ },
152+ animations = {
153+ idle = {
154+ pictures = path.list_files (dirname .. "small/idle_?.png"),
155+ hotspot = {6, 30},
156+ scale = 2,
157+ },
158+ },
159+}
160+
161+tribes:new_immovable_type {
162+ msgctxt = "immovable",
163+ name = "berry_bush_juniper_medium",
164+ descname = _ "Juniper (medium)",
165+ size = "small",
166+ helptext_script = dirname .. "helptexts.lua",
167+ attributes = { "flowering" },
168+ terrain_affinity = terrain_affinity,
169+ programs = {
170+ program = {
171+ "animate=idle 70000",
172+ "remove=10",
173+ "grow=berry_bush_juniper_ripe",
174+ },
175+ },
176+ animations = {
177+ idle = {
178+ pictures = path.list_files (dirname .. "medium/idle_?.png"),
179+ hotspot = {10, 47},
180+ scale = 2,
181+ },
182+ },
183+}
184+
185+tribes:new_immovable_type {
186+ msgctxt = "immovable",
187+ name = "berry_bush_juniper_ripe",
188+ descname = _ "Juniper (ripe)",
189+ size = "small",
190+ helptext_script = dirname .. "helptexts.lua",
191+ attributes = { "ripe_bush" },
192+ terrain_affinity = terrain_affinity,
193+ programs = {
194+ program = {
195+ "animate=idle 800000",
196+ "remove=",
197+ },
198+ harvest = {
199+ "remove=",
200+ }
201+ },
202+ animations = {
203+ idle = {
204+ pictures = path.list_files (dirname .. "ripe/idle_?.png"),
205+ hotspot = {11, 49},
206+ scale = 2,
207+ },
208+ },
209+}
210
211=== added directory 'data/tribes/immovables/berry_bushes/juniper/medium'
212=== added file 'data/tribes/immovables/berry_bushes/juniper/medium/idle_0.png'
213Binary files data/tribes/immovables/berry_bushes/juniper/medium/idle_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/medium/idle_0.png 2018-04-22 15:54:03 +0000 differ
214=== added file 'data/tribes/immovables/berry_bushes/juniper/medium/idle_1.png'
215Binary files data/tribes/immovables/berry_bushes/juniper/medium/idle_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/medium/idle_1.png 2018-04-22 15:54:03 +0000 differ
216=== added file 'data/tribes/immovables/berry_bushes/juniper/medium/idle_2.png'
217Binary files data/tribes/immovables/berry_bushes/juniper/medium/idle_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/medium/idle_2.png 2018-04-22 15:54:03 +0000 differ
218=== added file 'data/tribes/immovables/berry_bushes/juniper/medium/idle_3.png'
219Binary files data/tribes/immovables/berry_bushes/juniper/medium/idle_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/medium/idle_3.png 2018-04-22 15:54:03 +0000 differ
220=== added directory 'data/tribes/immovables/berry_bushes/juniper/ripe'
221=== added file 'data/tribes/immovables/berry_bushes/juniper/ripe/idle_0.png'
222Binary files data/tribes/immovables/berry_bushes/juniper/ripe/idle_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/ripe/idle_0.png 2018-04-22 15:54:03 +0000 differ
223=== added file 'data/tribes/immovables/berry_bushes/juniper/ripe/idle_1.png'
224Binary files data/tribes/immovables/berry_bushes/juniper/ripe/idle_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/ripe/idle_1.png 2018-04-22 15:54:03 +0000 differ
225=== added file 'data/tribes/immovables/berry_bushes/juniper/ripe/idle_2.png'
226Binary files data/tribes/immovables/berry_bushes/juniper/ripe/idle_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/ripe/idle_2.png 2018-04-22 15:54:03 +0000 differ
227=== added file 'data/tribes/immovables/berry_bushes/juniper/ripe/idle_3.png'
228Binary files data/tribes/immovables/berry_bushes/juniper/ripe/idle_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/ripe/idle_3.png 2018-04-22 15:54:03 +0000 differ
229=== added directory 'data/tribes/immovables/berry_bushes/juniper/small'
230=== added file 'data/tribes/immovables/berry_bushes/juniper/small/idle_0.png'
231Binary files data/tribes/immovables/berry_bushes/juniper/small/idle_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/small/idle_0.png 2018-04-22 15:54:03 +0000 differ
232=== added file 'data/tribes/immovables/berry_bushes/juniper/small/idle_1.png'
233Binary files data/tribes/immovables/berry_bushes/juniper/small/idle_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/small/idle_1.png 2018-04-22 15:54:03 +0000 differ
234=== added file 'data/tribes/immovables/berry_bushes/juniper/small/idle_2.png'
235Binary files data/tribes/immovables/berry_bushes/juniper/small/idle_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/small/idle_2.png 2018-04-22 15:54:03 +0000 differ
236=== added file 'data/tribes/immovables/berry_bushes/juniper/small/idle_3.png'
237Binary files data/tribes/immovables/berry_bushes/juniper/small/idle_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/small/idle_3.png 2018-04-22 15:54:03 +0000 differ
238=== added directory 'data/tribes/immovables/berry_bushes/juniper/tiny'
239=== added file 'data/tribes/immovables/berry_bushes/juniper/tiny/idle_0.png'
240Binary files data/tribes/immovables/berry_bushes/juniper/tiny/idle_0.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/tiny/idle_0.png 2018-04-22 15:54:03 +0000 differ
241=== added file 'data/tribes/immovables/berry_bushes/juniper/tiny/idle_1.png'
242Binary files data/tribes/immovables/berry_bushes/juniper/tiny/idle_1.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/tiny/idle_1.png 2018-04-22 15:54:03 +0000 differ
243=== added file 'data/tribes/immovables/berry_bushes/juniper/tiny/idle_2.png'
244Binary files data/tribes/immovables/berry_bushes/juniper/tiny/idle_2.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/tiny/idle_2.png 2018-04-22 15:54:03 +0000 differ
245=== added file 'data/tribes/immovables/berry_bushes/juniper/tiny/idle_3.png'
246Binary files data/tribes/immovables/berry_bushes/juniper/tiny/idle_3.png 1970-01-01 00:00:00 +0000 and data/tribes/immovables/berry_bushes/juniper/tiny/idle_3.png 2018-04-22 15:54:03 +0000 differ
247=== modified file 'data/tribes/init.lua'
248--- data/tribes/init.lua 2018-03-06 09:50:54 +0000
249+++ data/tribes/init.lua 2018-04-22 15:54:03 +0000
250@@ -200,6 +200,7 @@
251 include "tribes/immovables/berry_bushes/strawberry/init.lua"
252 include "tribes/immovables/berry_bushes/sea_buckthorn/init.lua"
253 include "tribes/immovables/berry_bushes/desert_hackberry/init.lua"
254+ include "tribes/immovables/berry_bushes/juniper/init.lua"
255 include "tribes/immovables/barleyfield_tiny/init.lua"
256 include "tribes/immovables/barleyfield_small/init.lua"
257 include "tribes/immovables/barleyfield_medium/init.lua"

Subscribers

People subscribed via source and target branches

to status/vote changes: