Index: ps/trunk/binaries/data/mods/public/simulation/components/Identity.js
===================================================================
--- ps/trunk/binaries/data/mods/public/simulation/components/Identity.js (revision 20681)
+++ ps/trunk/binaries/data/mods/public/simulation/components/Identity.js (revision 20682)
@@ -1,169 +1,169 @@
function Identity() {}
Identity.prototype.Schema =
"Specifies various names and values associated with the unit type, typically for GUI display to users." +
"" +
"athen" +
"Athenian Hoplite" +
"Hoplī́tēs Athēnaïkós" +
"units/athen_infantry_spearman.png" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"Basic" +
"Advanced" +
"Elite" +
"" +
"" +
"" +
"" +
"" +
"" +
"tokens" +
"" +
"" +
"" +
"" +
"" +
- "" +
+ "" +
"" +
"tokens" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"tokens" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"" +
"";
Identity.prototype.Init = function()
{
this.classesList = GetIdentityClasses(this.template);
this.visibleClassesList = GetVisibleIdentityClasses(this.template);
};
Identity.prototype.Deserialize = function ()
{
this.Init();
};
Identity.prototype.Serialize = null; // we have no dynamic state to save
Identity.prototype.GetCiv = function()
{
return this.template.Civ;
};
Identity.prototype.GetLang = function()
{
return this.template.Lang || "greek"; // ugly default
};
Identity.prototype.GetGender = function()
{
return this.template.Gender || "male"; // ugly default
};
Identity.prototype.GetRank = function()
{
return this.template.Rank || "";
};
Identity.prototype.GetClassesList = function()
{
return this.classesList;
};
Identity.prototype.GetVisibleClassesList = function()
{
return this.visibleClassesList;
};
Identity.prototype.HasClass = function(name)
{
return this.GetClassesList().indexOf(name) != -1;
};
Identity.prototype.GetFormationsList = function()
{
if (this.template.Formations && this.template.Formations._string)
return this.template.Formations._string.split(/\s+/);
return [];
};
Identity.prototype.CanUseFormation = function(template)
{
return this.GetFormationsList().indexOf(template) != -1;
};
Identity.prototype.GetSelectionGroupName = function()
{
return this.template.SelectionGroupName || "";
};
Identity.prototype.GetGenericName = function()
{
return this.template.GenericName;
};
Identity.prototype.IsUndeletable = function()
{
return this.template.Undeletable == "true";
};
Engine.RegisterComponentType(IID_Identity, "Identity", Identity);
Index: ps/trunk/binaries/data/mods/public/simulation/data/technologies/attack_steel_working.json
===================================================================
--- ps/trunk/binaries/data/mods/public/simulation/data/technologies/attack_steel_working.json (revision 20681)
+++ ps/trunk/binaries/data/mods/public/simulation/data/technologies/attack_steel_working.json (revision 20682)
@@ -1,17 +1,17 @@
{
"genericName": "Steel Working",
"specificName": {
"maur": "Wootz Steel",
"iber": "Toledo Steel"
},
"description": "Secret steel working techniques give sword blades distinctive and beautiful markings. Not only that, but the steel's hardness is unparalleled.",
"cost": { "food": 0, "wood": 200, "stone": 0, "metal": 200 },
"requirements": { "all": [{ "tech": "phase_city" }, { "any": [{ "civ": "iber" }, { "civ": "maur" }] }] },
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "metalworker.png",
"researchTime": 60,
"tooltip": "+20% Hack attack for all sword units.",
"modifications": [{ "value": "Attack/Melee/Hack", "multiply": 1.2 }],
- "affects": ["Sword"],
+ "affects": ["Sword", "Maceman"],
"soundComplete": "interface/alarm/alarm_upgradearmory.xml"
}
Index: ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_maceman.xml
===================================================================
--- ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_maceman.xml (nonexistent)
+++ ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_maceman.xml (revision 20682)
@@ -0,0 +1,41 @@
+
+
+
+ 1
+ 1
+
+
+
+ 0
+ 0
+ 10.5
+ 5.0
+ 375
+ 750
+ Human Siege
+
+
+
+
+ 75
+ 100
+
+
+
+ 200
+
+
+ Melee Maceman
+ Champion Maceman
+
+ special/formations/phalanx
+ special/formations/testudo
+
+
+
+ 1.4
+
+ 1.4
+
+
+
Property changes on: ps/trunk/binaries/data/mods/public/simulation/templates/template_unit_champion_infantry_maceman.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Index: ps/trunk/binaries/data/mods/public/simulation/templates/units/maur_champion_infantry.xml
===================================================================
--- ps/trunk/binaries/data/mods/public/simulation/templates/units/maur_champion_infantry.xml (revision 20681)
+++ ps/trunk/binaries/data/mods/public/simulation/templates/units/maur_champion_infantry.xml (revision 20682)
@@ -1,23 +1,13 @@
-
-
- -1
- -1
-
-
-
- 0
- 10.5
-
-
+
maur
Warrior
Yōddha
units/maur_champion_infantry
units/maur_champion_maceman.png
units/mauryans/champion_maceman.xml