From 812cf08f702990130fbccf65d9569ad30355f1da Mon Sep 17 00:00:00 2001 From: Matei Date: Thu, 13 Jul 2006 20:31:35 +0000 Subject: [PATCH] This was SVN commit r4097. --- .../mods/official/scripts/entity_functions.js | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/binaries/data/mods/official/scripts/entity_functions.js b/binaries/data/mods/official/scripts/entity_functions.js index 3bfe0afbe5..4e2d022dda 100644 --- a/binaries/data/mods/official/scripts/entity_functions.js +++ b/binaries/data/mods/official/scripts/entity_functions.js @@ -403,6 +403,27 @@ function entityInitQuasi() } stopXTimer(8); + + var ob = new Object(); + ob.traits = new Object(); + ob.traits.id = new Object(); + ob.traits.id.civ = "hellenes"; + + startXTimer(9); + + if (ob.traits.id && ob.traits.id.civ) + { + var id = ob.traits.id; + id.civ_code = id.civ.toString().substring (0, 4); + id.civ_code = id.civ_code.toString().toLowerCase(); + + // Exception to make the Romans into rome. + if (id.civ_code == "roma") id.civ_code = "rome"; + // Exception to make the Hellenes into hele. + if (id.civ_code == "hell") id.civ_code = "hele"; + } + + stopXTimer(9); } // ====================================================================