Ticket #4490: support_female.patch
File support_female.patch, 15.0 KB (added by , 7 years ago) |
---|
-
binaries/data/mods/public/gui/session/session.js
159 159 /** 160 160 * Unit classes to be checked for the idle-worker-hotkey. 161 161 */ 162 var g_WorkerTypes = ["Female+Support", "Trader", "FishingBoat", "CitizenSoldier"]; 162 var g_WorkerTypes = ["SupportFemale", "Trader", "FishingBoat", "CitizenSoldier"]; 163 163 164 /** 164 165 * Unit classes to be checked for the military-only-selection modifier and for the idle-warrior-hotkey. 165 166 */ … … 1379 1380 "total", 1380 1381 "Infantry", 1381 1382 "Worker", 1382 " Female",1383 "SupportFemale", 1383 1384 "Cavalry", 1384 1385 "Champion", 1385 1386 "Hero", -
binaries/data/mods/public/gui/summary/counters.js
75 75 g_TeamHelperData[playerState.team] = { 76 76 "food": 0, 77 77 "vegetarianFood": 0, 78 " female": 0,78 "supportFemale": 0, 79 79 "worker": 0, 80 80 "enemyUnitsKilled": 0, 81 81 "unitsLost": 0, … … 89 89 g_TeamHelperData[playerState.team].food += playerState.statistics.resourcesGathered.food; 90 90 g_TeamHelperData[playerState.team].vegetarianFood += playerState.statistics.resourcesGathered.vegetarianFood; 91 91 92 g_TeamHelperData[playerState.team]. female += playerState.statistics.unitsTrained.Female;92 g_TeamHelperData[playerState.team].supportFemale += playerState.statistics.unitsTrained.SupportFemale; 93 93 g_TeamHelperData[playerState.team].worker += playerState.statistics.unitsTrained.Worker; 94 94 95 95 g_TeamHelperData[playerState.team].enemyUnitsKilled += playerState.statistics.enemyUnitsKilled.total; … … 439 439 function calculateFeminization(playerState) 440 440 { 441 441 return formatPercent( 442 playerState.statistics.unitsTrained. Female,442 playerState.statistics.unitsTrained.SupportFemale, 443 443 playerState.statistics.unitsTrained.Worker); 444 444 } 445 445 … … 479 479 if (w == 0) 480 480 teamTotal = formatPercent(g_TeamHelperData[t].vegetarianFood, g_TeamHelperData[t].food); 481 481 else if (w == 1) 482 teamTotal = formatPercent(g_TeamHelperData[t]. female, g_TeamHelperData[t].worker);482 teamTotal = formatPercent(g_TeamHelperData[t].supportFemale, g_TeamHelperData[t].worker); 483 483 else if (w == 2) 484 484 teamTotal = formatRatio(g_TeamHelperData[t].enemyUnitsKilled, g_TeamHelperData[t].unitsLost); 485 485 else if (w == 3) -
binaries/data/mods/public/maps/random/survivalofthefittest_triggers.js
171 171 { 172 172 if (TriggerHelper.EntityHasClass(entity, "CivilCentre")) 173 173 this.playerCivicCenter[i] = entity; 174 else if (TriggerHelper.EntityHasClass(entity, " Female"))174 else if (TriggerHelper.EntityHasClass(entity, "SupportFemale")) 175 175 { 176 176 let cmpDamageReceiver = Engine.QueryInterface(entity, IID_DamageReceiver); 177 177 cmpDamageReceiver.SetInvulnerability(true); -
binaries/data/mods/public/simulation/ai/petra/attackPlan.js
1374 1374 else if (target.hasClass("Ship") && !ent.hasClass("Ship")) 1375 1375 maybeUpdate = true; 1376 1376 else if (!ent.hasClass("Cavalry") && !ent.hasClass("Ranged") && 1377 target.hasClass(" Female") && target.unitAIState().split(".")[1] == "FLEEING")1377 target.hasClass("SupportFemale") && target.unitAIState().split(".")[1] == "FLEEING") 1378 1378 maybeUpdate = true; 1379 1379 } 1380 1380 … … 1467 1467 return false; 1468 1468 if (enemy.hasClass("Animal")) 1469 1469 return false; 1470 if (nearby && enemy.hasClass(" Female") && enemy.unitAIState().split(".")[1] == "FLEEING")1470 if (nearby && enemy.hasClass("SupportFemale") && enemy.unitAIState().split(".")[1] == "FLEEING") 1471 1471 return false; 1472 1472 let dist = API3.SquareVectorDistance(enemy.position(), ent.position()); 1473 1473 if (dist > range) -
binaries/data/mods/public/simulation/ai/petra/baseManager.js
611 611 if (lessNeed.type === "food" && gatherers.filter(API3.Filters.byClass("CitizenSoldier")).hasEntities()) 612 612 only = "CitizenSoldier"; 613 613 else if ((lessNeed.type === "stone" || lessNeed.type === "metal") && moreNeed.type !== "stone" && moreNeed.type !== "metal" && 614 gatherers.filter(API3.Filters.byClass(" Female")).hasEntities())615 only = " Female";614 gatherers.filter(API3.Filters.byClass("SupportFemale")).hasEntities()) 615 only = "SupportFemale"; 616 616 617 617 gatherers.forEach( function (ent) { 618 618 if (!ent.canGather(moreNeed.type)) -
binaries/data/mods/public/simulation/components/Identity.js
54 54 "</element>" + 55 55 "</optional>" + 56 56 "<optional>" + 57 "<element name='Classes' a:help='Optional list of space-separated classes applying to this entity. Choices include: Animal, Apadana, ArmyCamp, Ashoka, BarterMarket, Celt, CitizenSoldier, CivCentre, Colony, ConquestCritical, Defensive, Domestic, DropsiteFood, DropsiteMetal, DropsiteStone, DropsiteWood, Elephant, Female, FishingBoat, ForestPlant, Fortress, GarrisonFortress, GarrisonTower, Gates, Human, Iberian, Immortal, Italian, Juggernaut, Kennel, Lighthouse, LongWall, MercenaryCamp, Naval, NavalMarket, Organic, Palace, Palisade, Player, PtolemyIV, SeaCreature, SiegeWall, SpecialBuilding, StoneWall, Structure, Syssiton, Theater, Tower, Unit'>" +57 "<element name='Classes' a:help='Optional list of space-separated classes applying to this entity. Choices include: Animal, Apadana, ArmyCamp, Ashoka, BarterMarket, Celt, CitizenSoldier, CivCentre, Colony, ConquestCritical, Defensive, Domestic, DropsiteFood, DropsiteMetal, DropsiteStone, DropsiteWood, Elephant, SupportFemale, FishingBoat, ForestPlant, Fortress, GarrisonFortress, GarrisonTower, Gates, Human, Iberian, Immortal, Italian, Juggernaut, Kennel, Lighthouse, LongWall, MercenaryCamp, Naval, NavalMarket, Organic, Palace, Palisade, Player, PtolemyIV, SeaCreature, SiegeWall, SpecialBuilding, StoneWall, Structure, Syssiton, Theater, Tower, Unit'>" + 58 58 "<attribute name='datatype'>" + 59 59 "<value>tokens</value>" + 60 60 "</attribute>" + -
binaries/data/mods/public/simulation/components/StatisticsTracker.js
8 8 this.unitsClasses = [ 9 9 "Infantry", 10 10 "Worker", 11 " Female",11 "SupportFemale", 12 12 "Cavalry", 13 13 "Champion", 14 14 "Hero", … … 19 19 this.unitsTrained = { 20 20 "Infantry": 0, 21 21 "Worker": 0, 22 " Female": 0,22 "SupportFemale": 0, 23 23 "Cavalry": 0, 24 24 "Champion": 0, 25 25 "Hero": 0, … … 31 31 this.unitsLost = { 32 32 "Infantry": 0, 33 33 "Worker": 0, 34 " Female": 0,34 "SupportFemale": 0, 35 35 "Cavalry": 0, 36 36 "Champion": 0, 37 37 "Hero": 0, … … 44 44 this.enemyUnitsKilled = { 45 45 "Infantry": 0, 46 46 "Worker": 0, 47 " Female": 0,47 "SupportFemale": 0, 48 48 "Cavalry": 0, 49 49 "Champion": 0, 50 50 "Hero": 0, … … 57 57 this.unitsCaptured = { 58 58 "Infantry": 0, 59 59 "Worker": 0, 60 " Female": 0,60 "SupportFemale": 0, 61 61 "Cavalry": 0, 62 62 "Champion": 0, 63 63 "Hero": 0, -
binaries/data/mods/public/simulation/components/TechnologyManager.js
26 26 27 27 // This stores the modifications to unit stats from researched technologies 28 28 // Example data: {"ResourceGatherer/Rates/food.grain": [ 29 // {"multiply": 1.15, "affects": [" Female", "Infantry Swordsman"]},29 // {"multiply": 1.15, "affects": ["SupportFemale", "Infantry Swordsman"]}, 30 30 // {"add": 2} 31 31 // ]} 32 32 this.modifications = {}; -
binaries/data/mods/public/simulation/components/TrainingRestrictions.js
7 7 "<Category>Hero</Category>" + 8 8 "</TrainingRestrictions>" + 9 9 "</a:example>" + 10 "<element name='Category' a:help='Specifies the category of this unit, for satisfying special constraints. Choices include: Hero, FemaleCitizen, WarDog'>" +10 "<element name='Category' a:help='Specifies the category of this unit, for satisfying special constraints. Choices include: Hero, UniqueBuilding, WarDog'>" + 11 11 "<text/>" + 12 12 "</element>"; 13 13 -
binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_bireme.xml
35 35 <GarrisonHolder> 36 36 <Max>20</Max> 37 37 <EjectHealth>0</EjectHealth> 38 <EjectClassesOnDestroy datatype="tokens"> Female Infantry Dog</EjectClassesOnDestroy>38 <EjectClassesOnDestroy datatype="tokens">SupportFemale Infantry Dog</EjectClassesOnDestroy> 39 39 <List datatype="tokens">Support Infantry Cavalry Dog</List> 40 40 <BuffHeal>0</BuffHeal> 41 41 <LoadingRange>10</LoadingRange> -
binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_fishing.xml
22 22 <GarrisonHolder> 23 23 <Max>1</Max> 24 24 <EjectHealth>0</EjectHealth> 25 <EjectClassesOnDestroy datatype="tokens"> Female Infantry</EjectClassesOnDestroy>25 <EjectClassesOnDestroy datatype="tokens">SupportFemale Infantry</EjectClassesOnDestroy> 26 26 <List datatype="tokens">Support Infantry</List> 27 27 <BuffHeal>0</BuffHeal> 28 28 <LoadingRange>10</LoadingRange> -
binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_merchant.xml
14 14 <GarrisonHolder> 15 15 <Max>15</Max> 16 16 <EjectHealth>0</EjectHealth> 17 <EjectClassesOnDestroy datatype="tokens"> Female Infantry Dog</EjectClassesOnDestroy>17 <EjectClassesOnDestroy datatype="tokens">SupportFemale Infantry Dog</EjectClassesOnDestroy> 18 18 <List datatype="tokens">Support Infantry Cavalry Dog</List> 19 19 <BuffHeal>0</BuffHeal> 20 20 <LoadingRange>10</LoadingRange> -
binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_quinquereme.xml
44 44 <GarrisonHolder> 45 45 <Max>50</Max> 46 46 <EjectHealth>0</EjectHealth> 47 <EjectClassesOnDestroy datatype="tokens"> Female Infantry Dog</EjectClassesOnDestroy>47 <EjectClassesOnDestroy datatype="tokens">SupportFemale Infantry Dog</EjectClassesOnDestroy> 48 48 <List datatype="tokens">Support Infantry Cavalry Dog Siege Elephant</List> 49 49 <BuffHeal>0</BuffHeal> 50 50 <LoadingRange>10</LoadingRange> -
binaries/data/mods/public/simulation/templates/template_unit_mechanical_ship_trireme.xml
35 35 <GarrisonHolder> 36 36 <Max>30</Max> 37 37 <EjectHealth>0</EjectHealth> 38 <EjectClassesOnDestroy datatype="tokens"> Female Infantry Dog</EjectClassesOnDestroy>38 <EjectClassesOnDestroy datatype="tokens">SupportFemale Infantry Dog</EjectClassesOnDestroy> 39 39 <List datatype="tokens">Support Infantry Cavalry Dog Siege Elephant</List> 40 40 <BuffHeal>0</BuffHeal> 41 41 <LoadingRange>10</LoadingRange> -
binaries/data/mods/public/simulation/templates/template_unit_support_female_citizen.xml
43 43 <GenericName>Female Citizen</GenericName> 44 44 <Gender>female</Gender> 45 45 <History>Women in the ancient world took on a variety of roles - from leadership (Celts) to servant (Greeks). Women are hard workers, the economic backbone of any civilization. In history, it was typical when all the males (capable of fighting) were killed for the females, children, and elderly to be sold as slaves.</History> 46 <Classes datatype="tokens"> Female</Classes>46 <Classes datatype="tokens">SupportFemale</Classes> 47 47 <VisibleClasses datatype="tokens">Citizen Worker</VisibleClasses> 48 48 <Formations disable=""/> 49 49 </Identity> -
binaries/data/mods/public/simulation/templates/units/brit_hero_boudicca.xml
7 7 </Footprint> 8 8 <Identity> 9 9 <Civ>brit</Civ> 10 <VisibleClasses datatype="tokens"> FemaleChariot</VisibleClasses>10 <VisibleClasses datatype="tokens">Chariot</VisibleClasses> 11 11 <GenericName>Boudicca (Chariot)</GenericName> 12 12 <SpecificName>Boadicea</SpecificName> 13 13 <Gender>female</Gender>