diff --git a/binaries/data/mods/official/art/textures/ui/session/icons/sheets/tab.txt b/binaries/data/mods/official/art/textures/ui/session/icons/sheets/tab.txt
index 052becda48..d4230bff76 100644
--- a/binaries/data/mods/official/art/textures/ui/session/icons/sheets/tab.txt
+++ b/binaries/data/mods/official/art/textures/ui/session/icons/sheets/tab.txt
@@ -1,5 +1,5 @@
-structciv,Construct Civic Buildings,
-structmil,Construct Military Buildings,
+structCiv,Construct Civic Buildings,
+structMil,Construct Military Buildings,
train,Train,
research,Research,
barter,Barter,
diff --git a/binaries/data/mods/official/entities/foundation_1x1.xml b/binaries/data/mods/official/entities/foundation_1x1.xml
index 39ea2fd934..6b09a57f4d 100644
--- a/binaries/data/mods/official/entities/foundation_1x1.xml
+++ b/binaries/data/mods/official/entities/foundation_1x1.xml
@@ -18,7 +18,7 @@
- 2
+ 2
diff --git a/binaries/data/mods/official/entities/foundation_2x2.xml b/binaries/data/mods/official/entities/foundation_2x2.xml
index 377e10fa9c..f5ea575536 100644
--- a/binaries/data/mods/official/entities/foundation_2x2.xml
+++ b/binaries/data/mods/official/entities/foundation_2x2.xml
@@ -18,7 +18,7 @@
- 2
+ 2
diff --git a/binaries/data/mods/official/entities/foundation_3x3.xml b/binaries/data/mods/official/entities/foundation_3x3.xml
index ef109662b2..f416ea6a4a 100644
--- a/binaries/data/mods/official/entities/foundation_3x3.xml
+++ b/binaries/data/mods/official/entities/foundation_3x3.xml
@@ -18,7 +18,7 @@
- 3
+ 3
diff --git a/binaries/data/mods/official/entities/foundation_4x4.xml b/binaries/data/mods/official/entities/foundation_4x4.xml
index 37ca83bb7d..fdc4d50649 100644
--- a/binaries/data/mods/official/entities/foundation_4x4.xml
+++ b/binaries/data/mods/official/entities/foundation_4x4.xml
@@ -18,7 +18,7 @@
- 4
+ 4
diff --git a/binaries/data/mods/official/entities/foundation_5x5.xml b/binaries/data/mods/official/entities/foundation_5x5.xml
index e52eebd885..555d877c7e 100644
--- a/binaries/data/mods/official/entities/foundation_5x5.xml
+++ b/binaries/data/mods/official/entities/foundation_5x5.xml
@@ -18,7 +18,7 @@
- 5
+ 5
diff --git a/binaries/data/mods/official/entities/structures/celt_barracks.xml b/binaries/data/mods/official/entities/structures/celt_barracks.xml
index 751893dd66..ccd77b028f 100644
--- a/binaries/data/mods/official/entities/structures/celt_barracks.xml
+++ b/binaries/data/mods/official/entities/structures/celt_barracks.xml
@@ -1,7 +1,7 @@
diff --git a/binaries/data/mods/official/entities/structures/hele_civil_centre.xml b/binaries/data/mods/official/entities/structures/hele_civil_centre.xml
index 8ab09a2eb4..e62038319e 100644
--- a/binaries/data/mods/official/entities/structures/hele_civil_centre.xml
+++ b/binaries/data/mods/official/entities/structures/hele_civil_centre.xml
@@ -1,7 +1,7 @@
diff --git a/binaries/data/mods/official/entities/template_structure.xml b/binaries/data/mods/official/entities/template_structure.xml
index 46e4f0e70b..0499c3047b 100644
--- a/binaries/data/mods/official/entities/template_structure.xml
+++ b/binaries/data/mods/official/entities/template_structure.xml
@@ -32,7 +32,7 @@
- 9
+ 9
diff --git a/binaries/data/mods/official/entities/template_structure_economic_farmstead.xml b/binaries/data/mods/official/entities/template_structure_economic_farmstead.xml
index 18f106fd34..20fe8aae5c 100644
--- a/binaries/data/mods/official/entities/template_structure_economic_farmstead.xml
+++ b/binaries/data/mods/official/entities/template_structure_economic_farmstead.xml
@@ -1,8 +1,8 @@
-
+
diff --git a/binaries/data/mods/official/entities/template_structure_resource.xml b/binaries/data/mods/official/entities/template_structure_resource.xml
index 97e06ddd1e..da8b59c701 100644
--- a/binaries/data/mods/official/entities/template_structure_resource.xml
+++ b/binaries/data/mods/official/entities/template_structure_resource.xml
@@ -16,7 +16,7 @@
- 0
+ 0
diff --git a/binaries/data/mods/official/entities/template_unit.xml b/binaries/data/mods/official/entities/template_unit.xml
index b7dc6e4001..b6cd0f8daf 100644
--- a/binaries/data/mods/official/entities/template_unit.xml
+++ b/binaries/data/mods/official/entities/template_unit.xml
@@ -68,7 +68,7 @@
- 6
+ 6
diff --git a/binaries/data/mods/official/entities/template_unit_cavalry.xml b/binaries/data/mods/official/entities/template_unit_cavalry.xml
index 30d404ca15..51f57ccfdb 100644
--- a/binaries/data/mods/official/entities/template_unit_cavalry.xml
+++ b/binaries/data/mods/official/entities/template_unit_cavalry.xml
@@ -32,7 +32,7 @@
- 200
+ 200
1
1
1
@@ -62,7 +62,7 @@
-
+
diff --git a/binaries/data/mods/official/entities/template_unit_fauna.xml b/binaries/data/mods/official/entities/template_unit_fauna.xml
index d622da8598..9025f9180b 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna.xml
@@ -25,7 +25,7 @@
- 10
+ 10
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_breed_passive.xml b/binaries/data/mods/official/entities/template_unit_fauna_breed_passive.xml
index 511aab415b..718417274c 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_breed_passive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_breed_passive.xml
@@ -12,9 +12,9 @@
-
+
Passive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_herd_passive.xml b/binaries/data/mods/official/entities/template_unit_fauna_herd_passive.xml
index 4c8b5019b7..037418e690 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_herd_passive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_herd_passive.xml
@@ -12,9 +12,9 @@
-
+
Passive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_hunt_aggressive.xml b/binaries/data/mods/official/entities/template_unit_fauna_hunt_aggressive.xml
index 213896c12e..2c7a25fae3 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_hunt_aggressive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_hunt_aggressive.xml
@@ -12,9 +12,9 @@
-
+
Aggressive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_hunt_defensive.xml b/binaries/data/mods/official/entities/template_unit_fauna_hunt_defensive.xml
index 1816964906..6db39540c8 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_hunt_defensive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_hunt_defensive.xml
@@ -12,9 +12,9 @@
-
+
Defensive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_hunt_passive.xml b/binaries/data/mods/official/entities/template_unit_fauna_hunt_passive.xml
index f560bc2fc3..a2de014ad0 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_hunt_passive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_hunt_passive.xml
@@ -12,9 +12,9 @@
-
+
Passive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_hunt_skittish.xml b/binaries/data/mods/official/entities/template_unit_fauna_hunt_skittish.xml
index 43e5b9051c..872b25e057 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_hunt_skittish.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_hunt_skittish.xml
@@ -12,9 +12,9 @@
-
+
Skittish
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_hunt_violent.xml b/binaries/data/mods/official/entities/template_unit_fauna_hunt_violent.xml
index 067d8acc24..897ba849c5 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_hunt_violent.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_hunt_violent.xml
@@ -12,9 +12,9 @@
-
+
Violent
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_wild_aggressive.xml b/binaries/data/mods/official/entities/template_unit_fauna_wild_aggressive.xml
index 72050d10be..2294eb07a8 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_wild_aggressive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_wild_aggressive.xml
@@ -12,9 +12,9 @@
-
+
Violent
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_wild_defensive.xml b/binaries/data/mods/official/entities/template_unit_fauna_wild_defensive.xml
index f9956d3929..b0170c5550 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_wild_defensive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_wild_defensive.xml
@@ -12,9 +12,9 @@
-
+
Defensive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_wild_passive.xml b/binaries/data/mods/official/entities/template_unit_fauna_wild_passive.xml
index da44be042e..3d4b94a143 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_wild_passive.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_wild_passive.xml
@@ -12,9 +12,9 @@
-
+
Passive
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_fauna_wild_violent.xml b/binaries/data/mods/official/entities/template_unit_fauna_wild_violent.xml
index 72050d10be..2294eb07a8 100644
--- a/binaries/data/mods/official/entities/template_unit_fauna_wild_violent.xml
+++ b/binaries/data/mods/official/entities/template_unit_fauna_wild_violent.xml
@@ -12,9 +12,9 @@
-
+
Violent
-
+
\ No newline at end of file
diff --git a/binaries/data/mods/official/entities/template_unit_hero.xml b/binaries/data/mods/official/entities/template_unit_hero.xml
index ecda24b290..7748763afc 100644
--- a/binaries/data/mods/official/entities/template_unit_hero.xml
+++ b/binaries/data/mods/official/entities/template_unit_hero.xml
@@ -24,7 +24,7 @@
- 1000
+ 1000
1
1
1
diff --git a/binaries/data/mods/official/entities/template_unit_infantry.xml b/binaries/data/mods/official/entities/template_unit_infantry.xml
index fb11dd3415..3e34936050 100644
--- a/binaries/data/mods/official/entities/template_unit_infantry.xml
+++ b/binaries/data/mods/official/entities/template_unit_infantry.xml
@@ -23,7 +23,7 @@
- 800
+ 800
1
1
1
@@ -84,7 +84,7 @@
-
+
diff --git a/binaries/data/mods/official/entities/template_unit_super.xml b/binaries/data/mods/official/entities/template_unit_super.xml
index 0e5d611f9a..704605e465 100644
--- a/binaries/data/mods/official/entities/template_unit_super.xml
+++ b/binaries/data/mods/official/entities/template_unit_super.xml
@@ -18,7 +18,7 @@
- 50
+ 50
1
1
1
diff --git a/binaries/data/mods/official/entities/template_unit_support.xml b/binaries/data/mods/official/entities/template_unit_support.xml
index 1c2be5e5b8..c124e6f4f5 100644
--- a/binaries/data/mods/official/entities/template_unit_support.xml
+++ b/binaries/data/mods/official/entities/template_unit_support.xml
@@ -18,7 +18,7 @@
- 10
+ 10
1
1
1
diff --git a/binaries/data/mods/official/entities/units/pers_infantry_archer_b.xml b/binaries/data/mods/official/entities/units/pers_infantry_archer_b.xml
index 0726eab8e5..6cacb02179 100644
--- a/binaries/data/mods/official/entities/units/pers_infantry_archer_b.xml
+++ b/binaries/data/mods/official/entities/units/pers_infantry_archer_b.xml
@@ -1,7 +1,7 @@
diff --git a/binaries/data/mods/official/formations/BoxForm2.xml b/binaries/data/mods/official/formations/BoxForm2.xml
index 2102982387..b4779325f3 100644
--- a/binaries/data/mods/official/formations/BoxForm2.xml
+++ b/binaries/data/mods/official/formations/BoxForm2.xml
@@ -1,5 +1,5 @@
- Can eventually be done in C++, since stances will likely be implemented in C++.
+ // Build Unit Ai Stance list, and set default stance. ---> Can eventually be done in C++, since stances will likely be implemented in C++.
if (this.actions && this.actions.move)
{
if ( !this.traits.ai )
@@ -316,17 +316,17 @@ function entityInitQuasi()
// If entity has supply, set current to same.
supply.curr = supply.max;
- // If entity has type of supply and no subtype, set subtype to same
- // (so we don't have to say type="wood", subtype="wood"
- if (supply.type && !supply.subtype)
- supply.subtype = supply.type;
+ // If entity has type of supply and no subType, set subType to same
+ // (so we don't have to say type="wood", subType="wood"
+ if (supply.type && !supply.subType)
+ supply.subType = supply.type;
// The "dropsite_count" array holds the number of units with gather aura in range of the object;
// this is important so that if you have two mills near something and one of them is destroyed,
// you can still gather from the thing. Initialize it to 0 (ungatherable) for every player unless
// the entity is forageable (e.g. for huntable animals).
var dropsite_count = new Array();
- initialCount = supply.subtype.meat ? 1 : 0;
+ initialCount = supply.subType.meat ? 1 : 0;
for( i=0; i<=8; i++ )
{
dropsite_count[i] = initialCount;
@@ -688,8 +688,8 @@ function performGather( evt )
return;
}
- if( g.resource[s.type][s.subtype])
- gather_amt = parseFloat( g.resource[s.type][s.subtype] );
+ if( g.resource[s.type][s.subType])
+ gather_amt = parseFloat( g.resource[s.type][s.subType] );
else
gather_amt = parseFloat( g.resource[s.type] );
@@ -880,7 +880,7 @@ function damage( dmg, inflictor )
{
switch( loot.toString().toUpperCase() )
{
- case "XP":
+ case "XP":
// If the inflictor gains promotions, and he's capable of earning more ranks,
if (inflictor.traits.promotion && inflictor.traits.promotion.curr && inflictor.traits.promotion.req
&& inflictor.traits.promotion.newentity && inflictor.traits.promotion.newentity != ""
@@ -957,7 +957,7 @@ function damage( dmg, inflictor )
else if( inflictor && this.actions && this.actions.attack )
{
// If we're not already doing something else, take a measured response - hit 'em back.
- // You know, I think this is quite possibly the first AI code the AI divlead has written
+ // You know, I think this is quite possibly the first Ai code the Ai divlead has written
// for 0 A.D....
//When the entity changes order, we can readjust flank penalty. We must destroy the notifiers ourselves later,however.
this.requestNotification( inflictor, NOTIFY_ORDER_CHANGE, false, true );
@@ -1150,12 +1150,12 @@ function entityEventTargetChanged( evt )
evt.defaultOrder = NMT_Generic;
evt.defaultAction = ACTION_GATHER;
// Set cursor (eg "action-gather-fruit").
- evt.defaultCursor = "action-gather-" + evt.target.traits.supply.subtype;
+ evt.defaultCursor = "action-gather-" + evt.target.traits.supply.subType;
evt.secondaryOrder = NMT_Generic;
evt.secondaryAction = ACTION_GATHER;
// Set cursor (eg "action-gather-fruit").
- evt.secondaryCursor = "action-gather-" + evt.target.traits.supply.subtype;
+ evt.secondaryCursor = "action-gather-" + evt.target.traits.supply.subType;
}
if ( canBuild( this, evt.target ) )
@@ -1196,7 +1196,7 @@ function entityEventPrepareOrder( evt )
{
// This event gives us a chance to veto any order we're given before we execute it.
// Not sure whether this really belongs here like this: the alternative is to override it in
- // subtypes - then you wouldn't need to check tags, you could hardcode results.
+ // subTypes - then you wouldn't need to check tags, you could hardcode results.
if ( !this.actions )
{
@@ -1270,7 +1270,7 @@ function entityEventPrepareOrder( evt )
// Change our gather animation based on the type of target
var a = this.actions.gather;
this.setActionParams( ACTION_GATHER, 0.0, a.range, a.speed,
- "gather_" + evt.target.traits.supply.subtype );
+ "gather_" + evt.target.traits.supply.subType );
break;
@@ -1718,13 +1718,13 @@ function checkEntityReqs( player, template )
function canGather( source, target )
{
- // Checks whether we're allowed to gather from a target entity (this involves looking at both the type and subtype).
+ // Checks whether we're allowed to gather from a target entity (this involves looking at both the type and subType).
if( !source.actions )
return false;
g = source.actions.gather;
s = target.traits.supply;
return ( g && s && g.resource && g.resource[s.type] &&
- ( s.subtype==s.type || g.resource[s.type][s.subtype] ) &&
+ ( s.subType==s.type || g.resource[s.type][s.subType] ) &&
( s.curr > 0 || s.max == 0 ) &&
s.dropsite_count[source.player.id] );
}
@@ -1744,7 +1744,7 @@ function canBuild( source, target )
function canRepair( source, target )
{
- // Checks whether we're allowed to gather from a target entity (this involves looking at both the type and subtype).
+ // Checks whether we're allowed to gather from a target entity (this involves looking at both the type and subType).
if( !source.actions )
return false;
r = source.actions.repair;