forked from 0ad/0ad
Do a more explicit sanitycheck in loadCivData (in case we encounter the value false).
Make that viking boat gaia which is more coherent with the other eastereggs. This was SVN commit r17391.
This commit is contained in:
parent
21f032c305
commit
953e745067
@ -21,7 +21,7 @@ function loadCivData(playableOnly = false)
|
|||||||
// Sanity check
|
// Sanity check
|
||||||
for (let prop of ["Code", "Culture", "Name", "Emblem", "History", "Music", "Factions", "CivBonuses",
|
for (let prop of ["Code", "Culture", "Name", "Emblem", "History", "Music", "Factions", "CivBonuses",
|
||||||
"TeamBonuses", "Structures", "StartEntities", "Formations", "AINames","SelectableInGameSetup"])
|
"TeamBonuses", "Structures", "StartEntities", "Formations", "AINames","SelectableInGameSetup"])
|
||||||
if (!data[prop])
|
if (data[prop] == undefined)
|
||||||
error(filename + " doesn't contain " + prop);
|
error(filename + " doesn't contain " + prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@ const g_PlayerColors = g_Settings ? g_Settings.PlayerDefaults.slice(1).map(pData
|
|||||||
const g_RomanNumbers = [undefined, "I", "II", "III", "IV", "V", "VI", "VII", "VIII"];
|
const g_RomanNumbers = [undefined, "I", "II", "III", "IV", "V", "VI", "VII", "VIII"];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load playable civs.
|
* Offer users to select playable civs only.
|
||||||
*/
|
*/
|
||||||
const g_CivData = loadCivData(true);
|
const g_CivData = loadCivData(true);
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Entity parent="template_unit_mechanical_ship_bireme">
|
<Entity parent="template_unit_mechanical_ship_bireme">
|
||||||
<Identity>
|
<Identity>
|
||||||
<Civ>viking</Civ>
|
<Civ>gaia</Civ>
|
||||||
<SpecificName>Longboat</SpecificName>
|
<SpecificName>Longboat</SpecificName>
|
||||||
<History>The first Triremes were built circa 650BC, and by 500BC the Trireme was the most widely used heavy warship of the Greek city-states. In the Trireme the outriggers were now an integral part of the ship's hull. The Trireme also had a partial or full fighting deck above the rowers. The length of the Trireme remained approximately 35-38 meters, and the beam was approximately 3.5 metres. A Trireme carried 170 oarsmen, plus twenty sailors and fourteen marines in Greek navies. The top speed of a Trireme was approximately 11.5 knots. Some Triremes may have been able to reach higher speeds in short bursts. A Trireme travelling from Athens to Mitylene in 427BC made the 350 kilometre trip in only 24 hours, averaging eight knots (14.6 km/h). The Trireme could accelerate much faster than a Bireme or Penteconter, and was much more manoeuvrable. This gave the Trireme an advantage in combat, where higher speed and manoeuvrability meant a better chance of victory.</History>
|
<History>The first Triremes were built circa 650BC, and by 500BC the Trireme was the most widely used heavy warship of the Greek city-states. In the Trireme the outriggers were now an integral part of the ship's hull. The Trireme also had a partial or full fighting deck above the rowers. The length of the Trireme remained approximately 35-38 meters, and the beam was approximately 3.5 metres. A Trireme carried 170 oarsmen, plus twenty sailors and fourteen marines in Greek navies. The top speed of a Trireme was approximately 11.5 knots. Some Triremes may have been able to reach higher speeds in short bursts. A Trireme travelling from Athens to Mitylene in 427BC made the 350 kilometre trip in only 24 hours, averaging eight knots (14.6 km/h). The Trireme could accelerate much faster than a Bireme or Penteconter, and was much more manoeuvrable. This gave the Trireme an advantage in combat, where higher speed and manoeuvrability meant a better chance of victory.</History>
|
||||||
<Icon>units/viking_longboat.png</Icon>
|
<Icon>units/viking_longboat.png</Icon>
|
||||||
|
Loading…
Reference in New Issue
Block a user