Ticket #2749: t2749_ceaefire_add_3minute_limit.patch

File t2749_ceaefire_add_3minute_limit.patch, 1.8 KB (added by elexis, 9 years ago)

Adds another ceasefire timeout option (3 minutes).

  • binaries/data/mods/public/gui/gamesetup/gamesetup.js

     
    1313// Translation: Amount of starting resources.
    1414const STARTING_RESOURCES = [translateWithContext("startingResources", "Very Low"), translateWithContext("startingResources", "Low"), translateWithContext("startingResources", "Medium"), translateWithContext("startingResources", "High"), translateWithContext("startingResources", "Very High"), translateWithContext("startingResources", "Deathmatch")];
    1515const STARTING_RESOURCES_DATA = [100, 300, 500, 1000, 3000, 50000];
    1616const STARTING_RESOURCES_DEFAULTIDX = 1;
    1717// Translation: Ceasefire.
    18 const CEASEFIRE = [translateWithContext("ceasefire", "No ceasefire"), translateWithContext("ceasefire", "5 minutes"), translateWithContext("ceasefire", "10 minutes"), translateWithContext("ceasefire", "15 minutes"), translateWithContext("ceasefire", "20 minutes"), translateWithContext("ceasefire", "30 minutes"), translateWithContext("ceasefire", "45 minutes"), translateWithContext("ceasefire", "60 minutes")];
    19 const CEASEFIRE_DATA = [0, 5, 10, 15, 20, 30, 45, 60];
     18const CEASEFIRE = [translate("No ceasefire"), translate("3 minutes"), translate("5 minutes"), translate("10 minutes"), translate("15 minutes"), translate("20 minutes"), translate("30 minutes"), translate("45 minutes"), translate("60 minutes")];
     19const CEASEFIRE_DATA = [0, 3, 5, 10, 15, 20, 30, 45, 60];
    2020const CEASEFIRE_DEFAULTIDX = 0;
    2121// Max number of players for any map
    2222const MAX_PLAYERS = 8;
    2323
    2424////////////////////////////////////////////////////////////////////////////////////////////////