Merge lp:~widelands-dev/widelands/fri-02-fix into lp:widelands

Proposed by Benedikt Straub
Status: Merged
Merged at revision: 8658
Proposed branch: lp:~widelands-dev/widelands/fri-02-fix
Merge into: lp:widelands
Diff against target: 57 lines (+8/-6)
4 files modified
data/campaigns/fri02.wmf/scripting/mission_thread.lua (+5/-5)
data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua (+1/-1)
data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua (+1/-0)
data/tribes/buildings/productionsites/frisians/collectors_house/init.lua (+1/-0)
To merge this branch: bzr merge lp:~widelands-dev/widelands/fri-02-fix
Reviewer Review Type Date Requested Status
GunChleoc Approve
Review via email: mp+343280@code.launchpad.net

Commit message

Fixed a crash in the second frisian scenario.
Also, some buildings now use the requires_helper AI hint.

Description of the change

Fixed a crash in the second frisian scenario.
Also, some buildings now use the requires_helper AI hint, which seems to have been overlooked somehow.

I didn´t play the whole scenario, but I tested the fix in a script and there it works.

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

Did you test whether new AI hint works as supposed?

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

Shouldn't we add the Aim hint to the woodcutter's_house as well?

Revision history for this message
TiborB (tiborb95) wrote :

No, I think it is bad idea, but if you think that specifically for frisians it does make sense - I dont care.

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

Why this should be a bad idea?

Revision history for this message
bunnybot (widelandsofficial) wrote :

Continuous integration builds have changed state:

Travis build 3380. State: passed. Details: https://travis-ci.org/widelands/widelands/builds/366868075.
Appveyor build 3186. State: success. Details: https://ci.appveyor.com/project/widelands-dev/widelands/build/_widelands_dev_widelands_fri_02_fix-3186.

Revision history for this message
TiborB (tiborb95) wrote :

Because you just dont neet a ranger nearby to cut trees. E.g. - you want to clean an area from trees.

Revision history for this message
GunChleoc (gunchleoc) wrote :

Code LGTM.

Have you ever played the scenario to its end in both forks? You should always test yourself before starting a merge request.

@bunnybot merge

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'data/campaigns/fri02.wmf/scripting/mission_thread.lua'
2--- data/campaigns/fri02.wmf/scripting/mission_thread.lua 2018-03-06 09:50:54 +0000
3+++ data/campaigns/fri02.wmf/scripting/mission_thread.lua 2018-04-15 18:49:40 +0000
4@@ -207,11 +207,11 @@
5 local hq = p2:get_buildings("empire_headquarters")[1]
6
7 -- transfer all wares that frisians and empire have in common
8- for idx,name in ipairs(p1.tribe.wares) do
9- if p2.tribe:has_ware(name) then
10- local amount = wh:get_wares(name)
11- wh:set_wares(name, 0)
12- hq:set_wares(name, hq:get_wares(name) + amount)
13+ for idx,ware in ipairs(p1.tribe.wares) do
14+ if p2.tribe:has_ware(ware.name) then
15+ local amount = wh:get_wares(ware.name)
16+ wh:set_wares(ware.name, 0)
17+ hq:set_wares(ware.name, hq:get_wares(ware.name) + amount)
18 end
19 end
20 campaign_message_box(supply_murilius_thanks)
21
22=== modified file 'data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua'
23--- data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua 2018-02-23 07:18:54 +0000
24+++ data/tribes/buildings/productionsites/frisians/aqua_farm/init.lua 2018-04-15 18:49:40 +0000
25@@ -33,7 +33,7 @@
26
27 aihints = {
28 prohibited_till = 760,
29- supports_production_of = { "clay" },
30+ requires_helper = true
31 },
32
33 working_positions = {
34
35=== modified file 'data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua'
36--- data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua 2018-03-24 15:53:51 +0000
37+++ data/tribes/buildings/productionsites/frisians/beekeepers_house/init.lua 2018-04-15 18:49:40 +0000
38@@ -33,6 +33,7 @@
39
40 aihints = {
41 prohibited_till = 620,
42+ requires_helper = true
43 },
44
45 working_positions = {
46
47=== modified file 'data/tribes/buildings/productionsites/frisians/collectors_house/init.lua'
48--- data/tribes/buildings/productionsites/frisians/collectors_house/init.lua 2018-02-17 15:41:29 +0000
49+++ data/tribes/buildings/productionsites/frisians/collectors_house/init.lua 2018-04-15 18:49:40 +0000
50@@ -33,6 +33,7 @@
51
52 aihints = {
53 prohibited_till = 470,
54+ requires_helper = true
55 },
56
57 working_positions = {

Subscribers

People subscribed via source and target branches

to status/vote changes: