Author: ai0867
Date: Wed Jun 3 15:59:02 2009
New Revision: 36045
URL: http://svn.gna.org/viewcvs/wesnoth?rev=36045&view=rev
Log:
Print a "side evaluation" report for every side before announcing which one has
the advantage.
Modified:
trunk/data/multiplayer/eras.cfg
Modified: trunk/data/multiplayer/eras.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/eras.cfg?rev=36045&r1=36044&r2=36045&view=diff
==============================================================================
--- trunk/data/multiplayer/eras.cfg (original)
+++ trunk/data/multiplayer/eras.cfg Wed Jun 3 15:59:02 2009
@@ -80,6 +80,17 @@
end
-- Up to here
local total = units + team.gold + income
+ wesnoth.fire("message", { message =
+ string.format("Side %d\n\nIncome score %d\nUnit score
%d\nGold %d\n\nGrand total %d",
+ side,
+ income,
+ units,
+ team.gold,
+ total
+ ),
+ speaker = "narrator",
+ image = "wesnoth-icon.png"
+ })
if total > total_score then
side_num = side
income_score = income
@@ -89,7 +100,7 @@
end
end
wesnoth.fire("message", { message =
- string.format("Side %d has the advantage with:\nIncome
score %d\nUnit score %d\nGold %d\n\nGrand total %d",
+ string.format("Side %d has the advantage with:\n\nIncome
score %d\nUnit score %d\nGold %d\n\nGrand total %d",
side_num,
income_score,
unit_score,
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits