'colour' -> 'color'.
This commit is contained in:
parent
4159bd56b1
commit
d2c84fd1c1
1 changed files with 11 additions and 11 deletions
|
@ -112,27 +112,27 @@
|
|||
-- Up to here
|
||||
local total = units + team.gold + income
|
||||
local r, g, b = 255, 255, 255
|
||||
if team.__cfg.colour == 1 then r, g, b = 255, 0, 0
|
||||
elseif team.__cfg.colour == 2 then r, g, b = 0, 0, 255
|
||||
elseif team.__cfg.colour == 3 then r, g, b = 0, 255, 0
|
||||
elseif team.__cfg.colour == 4 then r, g, b = 155, 48, 255
|
||||
elseif team.__cfg.colour == 5 then r, g, b = 0, 0, 0
|
||||
elseif team.__cfg.colour == 6 then r, g, b = 165, 42, 42
|
||||
elseif team.__cfg.colour == 7 then r, g, b = 255, 165, 0
|
||||
elseif team.__cfg.colour == 8 then r, g, b = 255, 255, 255
|
||||
elseif team.__cfg.colour == 9 then r, g, b = 0, 128, 128 end
|
||||
if team.__cfg.color == 1 then r, g, b = 255, 0, 0
|
||||
elseif team.__cfg.color == 2 then r, g, b = 0, 0, 255
|
||||
elseif team.__cfg.color == 3 then r, g, b = 0, 255, 0
|
||||
elseif team.__cfg.color == 4 then r, g, b = 155, 48, 255
|
||||
elseif team.__cfg.color == 5 then r, g, b = 0, 0, 0
|
||||
elseif team.__cfg.color == 6 then r, g, b = 165, 42, 42
|
||||
elseif team.__cfg.color == 7 then r, g, b = 255, 165, 0
|
||||
elseif team.__cfg.color == 8 then r, g, b = 255, 255, 255
|
||||
elseif team.__cfg.color == 9 then r, g, b = 0, 128, 128 end
|
||||
side_comparison = side_comparison ..
|
||||
string.format("<span foreground=\"#%02x%02x%02x\">Side %d</span>: Income score = %d Unit score = %d Gold = %d\nGrand total: <b>%d</b>\n",
|
||||
r, g, b, side, income, units, team.gold, total)
|
||||
if total > total_score then
|
||||
colour = string.format("#%02x%02x%02x", r, g, b)
|
||||
color = string.format("#%02x%02x%02x", r, g, b)
|
||||
side_num = side
|
||||
total_score = total
|
||||
end
|
||||
until true -- end ugly hack
|
||||
end
|
||||
side_comparison = side_comparison ..
|
||||
string.format("\n<span foreground=\"%s\">Side %d</span> has the advantage.", colour, side_num)
|
||||
string.format("\n<span foreground=\"%s\">Side %d</span> has the advantage.", color, side_num)
|
||||
wesnoth.fire("message", { message = side_comparison, speaker = "narrator", image = "wesnoth-icon.png"})
|
||||
>>
|
||||
[/lua]
|
||||
|
|
Loading…
Add table
Reference in a new issue