WC: fix campaign abbrev

previously it was unclear what the trailing number meant,
also the order couldn't be changed in the translation.

Also the player number was shown 2 times in the savefile name,
resulting in names like 'WC1-WCII 1 -Start-Auto-Save.gz' so i
removed it from the scenario name.
This commit is contained in:
gfgtdf 2024-02-23 02:09:38 +01:00
parent c762c01924
commit bf4ad3bb42
2 changed files with 16 additions and 4 deletions

View file

@ -123,13 +123,13 @@ function wc_ii_generate_scenario(nplayers, gen_args)
-- set the correct scenario name.
if scenario_num == 1 then --first map
scenario.name = "WC_II_" .. nplayers .. " - " .. _"Start"
scenario.name = _"Start"
else
local scenario_desc = _ "Scenario" .. scenario_num
local scenario_desc = _ "Scenario " .. scenario_num
if scenario_num == 5 then
scenario_desc = _"Final Battle"
end
scenario.name = "WC_II_" .. nplayers .. " " .. scenario_desc .. " - "--.. scenario.map_name
scenario.name = scenario_desc
end
local res = wc2_convert.lon_to_wml(scenario, "scenario")

View file

@ -13,6 +13,18 @@ _ "World Conquest 3p" #enddef
#define WC_II_CAMPAIGN_NAME_4P
_ "World Conquest 4p" #enddef
#define WC_II_ABBREV_1P
_ "WC1p" #enddef
#define WC_II_ABBREV_2P
_ "WC2p" #enddef
#define WC_II_ABBREV_3P
_ "WC3p" #enddef
#define WC_II_ABBREV_4P
_ "WC4p" #enddef
#define WC_II_CAMPAIGN_DESC_1P
_ "A randomly generated campaign for 1 player. It has 6 levels of difficulty.
(Expert level, 5 scenarios.)" #enddef
@ -101,7 +113,7 @@ _ "World Conquest 4p" #enddef
icon = {ICON}
image = {IMAGE_ONE}
type = mp
abbrev = _ "WC" + {PLAYERS}\
abbrev = {WC_II_ABBREV_{PLAYERS}P}
{WC2_CAMPAIGN_DIFFICULTY VERY_EASY {WC2_HUMAN_DIFFICULTY human-peasants/peasant purple} _"Peasant" _"Beginner" 6 2 2 10 yes 0}
{WC2_CAMPAIGN_DIFFICULTY EASY {WC2_HUMAN_DIFFICULTY human-loyalists/sergeant black} _"Sergeant" _"Easy" 7 3 2 7 yes 5}
{WC2_CAMPAIGN_DIFFICULTY NORMAL {WC2_HUMAN_DIFFICULTY human-loyalists/lieutenant brown} _"Lieutenant" _"Medium" 8 4 2 5 yes 10} {DEFAULT_DIFFICULTY}