equal
deleted
inserted
replaced
158 variants[varName]["weapons"] = {amPortalGun, amSineGun, amIceGun} |
158 variants[varName]["weapons"] = {amPortalGun, amSineGun, amIceGun} |
159 variants[varName]["helperLimit"] = 1 |
159 variants[varName]["helperLimit"] = 1 |
160 variants[varName]["helpers"] = {amTeleport, amJetpack} |
160 variants[varName]["helpers"] = {amTeleport, amJetpack} |
161 variants[varName]["special"] = false |
161 variants[varName]["special"] = false |
162 |
162 |
163 varName = "Air-General" |
163 varName = "Air General" |
164 variants[varName] = {} |
164 variants[varName] = {} |
165 variants[varName]["chance"] = 5 |
165 variants[varName]["chance"] = 5 |
166 variants[varName]["hat"] = "war_desertofficer" |
166 variants[varName]["hat"] = "war_desertofficer" |
167 variants[varName]["hp"] = 50 |
167 variants[varName]["hp"] = 50 |
168 variants[varName]["hogLimit"] = 1 |
168 variants[varName]["hogLimit"] = 1 |
1510 |
1510 |
1511 function onGameStart() |
1511 function onGameStart() |
1512 -- If we are not on points mode, we start randomizing everything |
1512 -- If we are not on points mode, we start randomizing everything |
1513 if mode ~= 'points' then |
1513 if mode ~= 'points' then |
1514 if GetGameFlag(gfBorder) or MapHasBorder() then |
1514 if GetGameFlag(gfBorder) or MapHasBorder() then |
1515 variants["Air-General"] = nil |
1515 variants["Air General"] = nil |
1516 variants['Athlete'] = nil |
1516 variants['Athlete'] = nil |
1517 end |
1517 end |
1518 |
1518 |
1519 if mode == 'king' then |
1519 if mode == 'king' then |
1520 variants['King']['chance'] = 0 |
1520 variants['King']['chance'] = 0 |
1535 -- Shuffle group for more randomness |
1535 -- Shuffle group for more randomness |
1536 shuffle(group['all']) |
1536 shuffle(group['all']) |
1537 -- We are in points mode, setup other weapons |
1537 -- We are in points mode, setup other weapons |
1538 elseif mode == 'points' then |
1538 elseif mode == 'points' then |
1539 --variants['King']['chance'] = 0 |
1539 --variants['King']['chance'] = 0 |
1540 --if variants['Air-General'] ~= nil then |
1540 --if variants['Air General'] ~= nil then |
1541 -- variants['Air-General']['chance'] = 0 |
1541 -- variants['Air General']['chance'] = 0 |
1542 --end |
1542 --end |
1543 |
1543 |
1544 -- Translate [ammo] -> points to [points] -> {ammo1, ammo2} |
1544 -- Translate [ammo] -> points to [points] -> {ammo1, ammo2} |
1545 for ammoType, ammoPoints in pairs(pointsWeaponVal) do |
1545 for ammoType, ammoPoints in pairs(pointsWeaponVal) do |
1546 if pointsToWep[ammoPoints] == nil then |
1546 if pointsToWep[ammoPoints] == nil then |
1647 txt = txt .. string.format(loc("Turns: King's health is set to %d%% of the team health"), kingLinkPerc).."|" |
1647 txt = txt .. string.format(loc("Turns: King's health is set to %d%% of the team health"), kingLinkPerc).."|" |
1648 icon = 0 -- Golen Crown |
1648 icon = 0 -- Golen Crown |
1649 elseif mode == 'points' then |
1649 elseif mode == 'points' then |
1650 txt = txt .. " |" |
1650 txt = txt .. " |" |
1651 txt = txt .. loc("--- Points ---").."|" |
1651 txt = txt .. loc("--- Points ---").."|" |
1652 txt = txt .. loc("Variants: King and air general are disabled").."|" |
1652 txt = txt .. loc("Variants: Kings and air generals are disabled").."|" |
1653 txt = txt .. string.format(loc("Weapons: Each team starts with %d weapon points"), pointsWepBase).."|" |
1653 txt = txt .. string.format(loc("Weapons: Each team starts with %d weapon points"), pointsWepBase).."|" |
1654 txt = txt .. string.format(loc("Helpers: Each team starts with %d helper points"), pointsHlpBase).."|" |
1654 txt = txt .. string.format(loc("Helpers: Each team starts with %d helper points"), pointsHlpBase).."|" |
1655 txt = txt .. string.format(loc("Turns: Refill %d weapon and %d helper points|and randomize weapons and helpers based on team points"), pointsWepTurn, pointsHlpTurn).."|" |
1655 txt = txt .. string.format(loc("Turns: Refill %d weapon and %d helper points|and randomize weapons and helpers based on team points"), pointsWepTurn, pointsHlpTurn).."|" |
1656 icon = 4 -- Golden Star |
1656 icon = 4 -- Golden Star |
1657 else |
1657 else |