Update WoF (#7480)

This commit is contained in:
Jonathan-Kelly 2023-03-27 22:14:03 -04:00 committed by GitHub
parent c1a9408d91
commit 3775ec81ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 51 additions and 18 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 B

View file

@ -64,9 +64,16 @@ local function determine_advantage()
side_comparison = side_comparison .. "\n" .. comparison_text:vformat{side_number = winning_sides[1], other_side_number = winning_sides[2]}
result = "tie"
end
if dialog_type == "turnsover" then
-- po: "Turns Over", meaning "turn limit reached" is the title of the end-of-match summary dialog
local a, b = gui.show_popup(_ "dialog^Turns Over", side_comparison)
local a, b = gui.show_popup(_ "dialog^Turns Over", side_comparison)
else
local a, b = gui.show_popup(_ "dialog^Advantage", side_comparison)
end
return result
end
arg={...}
-- There need to be two different dialog titles, but the title is not passed directly as a string because it wouldn't be translatable in that case.
dialog_type=arg[1]
return determine_advantage()

View file

@ -16,12 +16,12 @@
[part]
background={KARRON_PORTRAIT}
scale_background=no
story={CAPTION ( _ "Karron")} + _ "Savory... (<i>crunch</i>)"
story={CAPTION ( _ "Karron")} + _ "Savory..."
[/part]
[part]
background={KARRON_PORTRAIT}
scale_background=no
story={CAPTION ( _ "Karron")} + _ "Sapid... (<i>chewing</i>)"
story={CAPTION ( _ "Karron")} + _ "Sapid..."
[/part]
[part]
background={KARRON_PORTRAIT}
@ -48,14 +48,8 @@ Speak of it."
[part]
background={KARRON_PORTRAIT}
scale_background=no
story={CAPTION ( _ "Karron")} + _ "(<i>examining his meal</i>)
... Orkchops"
[/part]
[part]
background={KARRON_PORTRAIT}
scale_background=no
story={CAPTION ( _ "Karron")} + _ "(<i>CRUNCH</i>)"
#po: This is a pun of “Pork chops”
story={CAPTION ( _ "Karron")} + _ "Hmm... Ork chops"
[/part]
[part]
background={RESHAN_PORTRAIT}

View file

@ -201,9 +201,13 @@
[event]
name=prestart
{MODIFY_UNIT side=1 facing s}
[store_side]
side=2
variable=side_2
[/store_side]
[objectives]
[objective]
description= _ "Hold the advantage by turn 24"
description= _ "Hold the advantage at the end of turn 24"
condition=win
[/objective]
[objective]
@ -212,7 +216,7 @@
condition=win
[/objective]
[objective]
description= _ "Not hold the advantage by turn 24"
description= _ "Not hold the advantage at the end of turn 24"
condition=lose
[/objective]
[objective]
@ -223,8 +227,13 @@
carryover_percentage=0
[/gold_carryover]
[note]
description= _ "Advantage is determined by the sum of gold, income and the value of all drakes on the field"
description= _ "Advantage is determined by adding the gold, the value of the drakes on the field, and five times the income; Right-click to see the current score"
[/note]
#ifndef EASY
[note]
description= _ "Karron will get an income of $side_2.village_gold gold per village"
[/note]
#endif
[note]
description= _ "You must recruit one drake from each caste before recruiting any more"
[/note]
@ -235,9 +244,10 @@
description= _ "Any drake you lose in combat will not be killed and may be recalled in future scenarios"
[/note]
[note]
description= _ "From now on, Gorlack will have loyal intendants from the fighter and clasher castes; if one dies, the next recalled drake of the same caste will replace it, if that drake is level 2 or higher"
description= _ "From now on, Gorlack will have loyal intendants from the fighter and clasher castes; if one dies, the next recalled drake of the same caste will replace it as long as that drake is level 2 or higher"
[/note]
[/objectives]
{CLEAR_VARIABLE side_2}
[/event]
[event]
@ -342,12 +352,33 @@ You shall learn a pivotal lesson in humility!"
[/put_to_recall_list]
[/event]
[event]
name=prestart
[set_menu_item]
id=advantage_dialog
description= _ "Show Advantage"
image="icons/advantage.png"
[command]
[lua]
code = << wml.variables["result"] = wesnoth.dofile("campaigns/Winds_of_Fate/lua/lua.lua", "advantage") >>
[/lua]
[/command]
[/set_menu_item]
[/event]
[event]
name=victory
[clear_menu_item]
id=advantage_dialog
[/clear_menu_item]
[/event]
[event]
name=time over
first_time_only=no
# Determine which side has the advantage.
[lua]
code = << wml.variables["result"] = wesnoth.dofile("campaigns/Winds_of_Fate/lua/lua.lua") >>
code = << wml.variables["result"] = wesnoth.dofile("campaigns/Winds_of_Fate/lua/lua.lua", "turnsover") >>
[/lua]
[switch]
variable=result

View file

@ -146,11 +146,11 @@
[objectives]
side=1
[objective]
description= _ "Hold all villages by the end of turn 18"
description= _ "Hold all villages at the end of turn 18"
condition=win
[/objective]
[objective]
description= _ "Not hold all villages by the end of turn 18"
description= _ "Not hold all villages at the end of turn 18"
condition=lose
[/objective]
[objective]

View file

@ -742,6 +742,7 @@ Their resemblance is so strikingly of hatchlings..."
speaker=Arinexis
image_pos=right
mirror=yes
#po: This "rapid clicking" is either a sound made by the saurian tongue or by a non-mammalian vocal organ like the avian syrinx.
message= _ "Ssso these are Fire Dragons, eh Zedrix?
Hail, dragons! (<i>rapid clicking</i>) Down here!" # no spellcheck