diff --git a/binaries/data/mods/official/entities/structures/celt_ho_1.xml b/binaries/data/mods/official/entities/structures/celt_ho.xml similarity index 75% rename from binaries/data/mods/official/entities/structures/celt_ho_1.xml rename to binaries/data/mods/official/entities/structures/celt_ho.xml index 309d4183d6..7e3e132392 100644 --- a/binaries/data/mods/official/entities/structures/celt_ho_1.xml +++ b/binaries/data/mods/official/entities/structures/celt_ho.xml @@ -1,6 +1,6 @@ - + - structures/celt_ho_a.xml + structures/celt_ho.xml \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/celt_ho_2.xml b/binaries/data/mods/official/entities/structures/celt_ho_2.xml deleted file mode 100644 index a9f4714eee..0000000000 --- a/binaries/data/mods/official/entities/structures/celt_ho_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/celt_ho_b.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/celt_ho_3.xml b/binaries/data/mods/official/entities/structures/celt_ho_3.xml deleted file mode 100644 index f042511a16..0000000000 --- a/binaries/data/mods/official/entities/structures/celt_ho_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/celt_ho_c.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/hele_ho_1.xml b/binaries/data/mods/official/entities/structures/hele_ho.xml similarity index 82% rename from binaries/data/mods/official/entities/structures/hele_ho_1.xml rename to binaries/data/mods/official/entities/structures/hele_ho.xml index 85718f603c..18361b2ade 100644 --- a/binaries/data/mods/official/entities/structures/hele_ho_1.xml +++ b/binaries/data/mods/official/entities/structures/hele_ho.xml @@ -1,6 +1,6 @@ - + - structures/hele_ho_a.xml + structures/hele_ho.xml \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/hele_ho_2.xml b/binaries/data/mods/official/entities/structures/hele_ho_2.xml deleted file mode 100644 index 95692ec86e..0000000000 --- a/binaries/data/mods/official/entities/structures/hele_ho_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/hele_ho_b.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/hele_ho_3.xml b/binaries/data/mods/official/entities/structures/hele_ho_3.xml deleted file mode 100644 index 9d1739ae53..0000000000 --- a/binaries/data/mods/official/entities/structures/hele_ho_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/hele_ho_c.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/kart_ho_1.xml b/binaries/data/mods/official/entities/structures/kart_ho.xml similarity index 86% rename from binaries/data/mods/official/entities/structures/kart_ho_1.xml rename to binaries/data/mods/official/entities/structures/kart_ho.xml index 67977e84b9..f7b12d7c3d 100644 --- a/binaries/data/mods/official/entities/structures/kart_ho_1.xml +++ b/binaries/data/mods/official/entities/structures/kart_ho.xml @@ -1,6 +1,6 @@ - + - structures/kart_ho_a.xml + structures/kart_ho.xml \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/kart_ho_2.xml b/binaries/data/mods/official/entities/structures/kart_ho_2.xml deleted file mode 100644 index a99dd663f0..0000000000 --- a/binaries/data/mods/official/entities/structures/kart_ho_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/kart_ho_b.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/kart_ho_3.xml b/binaries/data/mods/official/entities/structures/kart_ho_3.xml deleted file mode 100644 index 45d4091906..0000000000 --- a/binaries/data/mods/official/entities/structures/kart_ho_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/kart_ho_c.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/pers_ho_1.xml b/binaries/data/mods/official/entities/structures/pers_ho.xml similarity index 79% rename from binaries/data/mods/official/entities/structures/pers_ho_1.xml rename to binaries/data/mods/official/entities/structures/pers_ho.xml index dd9ce9276c..75a4e70a95 100644 --- a/binaries/data/mods/official/entities/structures/pers_ho_1.xml +++ b/binaries/data/mods/official/entities/structures/pers_ho.xml @@ -1,6 +1,6 @@ - + - structures/pers_ho_a.xml + structures/pers_ho.xml \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/pers_ho_2.xml b/binaries/data/mods/official/entities/structures/pers_ho_2.xml deleted file mode 100644 index f54d70a072..0000000000 --- a/binaries/data/mods/official/entities/structures/pers_ho_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/pers_ho_b.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/pers_ho_3.xml b/binaries/data/mods/official/entities/structures/pers_ho_3.xml deleted file mode 100644 index d824fac42a..0000000000 --- a/binaries/data/mods/official/entities/structures/pers_ho_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/pers_ho_c.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/rome_ho_1.xml b/binaries/data/mods/official/entities/structures/rome_ho.xml similarity index 79% rename from binaries/data/mods/official/entities/structures/rome_ho_1.xml rename to binaries/data/mods/official/entities/structures/rome_ho.xml index aa3c237a61..e6345c0f70 100644 --- a/binaries/data/mods/official/entities/structures/rome_ho_1.xml +++ b/binaries/data/mods/official/entities/structures/rome_ho.xml @@ -1,6 +1,6 @@ - + - structures/rome_ho_a.xml + structures/rome_ho.xml \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/rome_ho_2.xml b/binaries/data/mods/official/entities/structures/rome_ho_2.xml deleted file mode 100644 index 77a7d85c3a..0000000000 --- a/binaries/data/mods/official/entities/structures/rome_ho_2.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/rome_ho_b.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/entities/structures/rome_ho_3.xml b/binaries/data/mods/official/entities/structures/rome_ho_3.xml deleted file mode 100644 index fa864e2efd..0000000000 --- a/binaries/data/mods/official/entities/structures/rome_ho_3.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - structures/rome_ho_c.xml - \ No newline at end of file diff --git a/binaries/data/mods/official/gui/test/functions_pregame_load.js b/binaries/data/mods/official/gui/test/functions_pregame_load.js index ff91c5942b..590cf2008f 100644 --- a/binaries/data/mods/official/gui/test/functions_pregame_load.js +++ b/binaries/data/mods/official/gui/test/functions_pregame_load.js @@ -104,15 +104,15 @@ function setupSession() // For example, create the resource types. // Initialise Resource Pools by attaching them to the Player object. // (CPlayer code takes care of giving a copy to each player.) - player = new Object(); // I shouldn't need to do this. Need to find the existing Player to add these to. - player.resource = new Object(); - player.resource.food = 0; - player.resource.wood = 0; - player.resource.stone = 0; - player.resource.ore = 0; - player.resource.pop = new Object(); - player.resource.pop.curr = 0; - player.resource.pop.housing = 0; +// player = new Object(); // I shouldn't need to do this. Need to find the existing Player to add these to. + localPlayer.resource = new Object(); + localPlayer.resource.food = 0; + localPlayer.resource.wood = 0; + localPlayer.resource.stone = 0; + localPlayer.resource.ore = 0; + localPlayer.resource.pop = new Object(); + localPlayer.resource.pop.curr = 0; + localPlayer.resource.pop.housing = 0; // Start refreshing the session controls. setInterval( getObjectInfo, 1, 1000 ); diff --git a/binaries/data/mods/official/gui/test/functions_session_resource_pool.js b/binaries/data/mods/official/gui/test/functions_session_resource_pool.js index 5f11d94ac7..cc0f2467bd 100755 --- a/binaries/data/mods/official/gui/test/functions_session_resource_pool.js +++ b/binaries/data/mods/official/gui/test/functions_session_resource_pool.js @@ -52,16 +52,16 @@ function GiveResources(resourceName, resourceQty) switch (resourceName) { case "Food": - player.resource.food += resourceQty; + localPlayer.resource.food += resourceQty; break; case "Wood": - player.resource.wood += resourceQty; + localPlayer.resource.wood += resourceQty; break; case "Stone": - player.resource.stone += resourceQty; + localPlayer.resource.stone += resourceQty; break; case "Ore": - player.resource.ore += resourceQty; + localPlayer.resource.ore += resourceQty; break; default: break; @@ -74,9 +74,9 @@ function GiveResources(resourceName, resourceQty) function UpdateResourcePool() { - getGUIObjectByName("SN_RESOURCE_COUNTER_FOOD").caption = player.resource.food; - getGUIObjectByName("SN_RESOURCE_COUNTER_WOOD").caption = player.resource.wood; - getGUIObjectByName("SN_RESOURCE_COUNTER_STONE").caption = player.resource.stone; - getGUIObjectByName("SN_RESOURCE_COUNTER_ORE").caption = player.resource.ore; - getGUIObjectByName("SN_RESOURCE_COUNTER_POPULATION").caption = player.resource.pop.curr + "/" + player.resource.pop.housing; + getGUIObjectByName("SN_RESOURCE_COUNTER_FOOD").caption = localPlayer.resource.food; + getGUIObjectByName("SN_RESOURCE_COUNTER_WOOD").caption = localPlayer.resource.wood; + getGUIObjectByName("SN_RESOURCE_COUNTER_STONE").caption = localPlayer.resource.stone; + getGUIObjectByName("SN_RESOURCE_COUNTER_ORE").caption = localPlayer.resource.ore; + getGUIObjectByName("SN_RESOURCE_COUNTER_POPULATION").caption = localPlayer.resource.pop.curr + "/" + localPlayer.resource.pop.housing; } \ No newline at end of file