mail[Wesnoth-commits] r33718 - in /trunk/data: ai/formula/ multiplayer/factions/


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by soliton . de on March 15, 2009 - 23:35:
Author: soliton
Date: Sun Mar 15 23:35:37 2009
New Revision: 33718

URL: http://svn.gna.org/viewcvs/wesnoth?rev=33718&view=rev
Log:
use formula AI for the recruiting in multiplayer games

Modified:
    trunk/data/ai/formula/recruitment.fai
    trunk/data/multiplayer/factions/drakes-aoh.cfg
    trunk/data/multiplayer/factions/drakes-default.cfg
    trunk/data/multiplayer/factions/knalgans-aoh.cfg
    trunk/data/multiplayer/factions/knalgans-default.cfg
    trunk/data/multiplayer/factions/loyalists-aoh.cfg
    trunk/data/multiplayer/factions/loyalists-default.cfg
    trunk/data/multiplayer/factions/northerners-aoh.cfg
    trunk/data/multiplayer/factions/northerners-default.cfg
    trunk/data/multiplayer/factions/rebels-aoh.cfg
    trunk/data/multiplayer/factions/rebels-default.cfg
    trunk/data/multiplayer/factions/undead-aoh.cfg
    trunk/data/multiplayer/factions/undead-default.cfg

Modified: trunk/data/ai/formula/recruitment.fai
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/ai/formula/recruitment.fai?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/ai/formula/recruitment.fai (original)
+++ trunk/data/ai/formula/recruitment.fai Sun Mar 15 23:35:37 2009
@@ -408,9 +408,7 @@
                                        )
                                )
                        ),
-                       (
-                               value * 2
-                       ) / 3
+                       value / 3
                ), 
                value +
                map(
@@ -420,7 +418,7 @@
                                        my_recruits
                                )
                        ),
-               value / 3
+               value * 2 / 3
                )[key]
        );
 
@@ -580,4 +578,4 @@
        create_recruits_map(self)
 )
 
-faiend
+faiend

Modified: trunk/data/multiplayer/factions/drakes-aoh.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/drakes-aoh.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/drakes-aoh.cfg (original)
+++ trunk/data/multiplayer/factions/drakes-aoh.cfg Sun Mar 15 23:35:37 2009
@@ -9,6 +9,7 @@
     random_leader=Drake Flameheart,Inferno Drake,Drake Enforcer,Drake 
Warden,Drake Blademaster
     recruit=Drake Burner,Fire Drake,Drake Clasher,Drake Glider,Drake 
Fighter,Saurian Skirmisher,Saurian Augur,Drake Warrior,Drake Flare,Drake 
Gladiator,Sky Drake,Drake Slasher,Saurian Ambusher,Saurian Soothsayer,Saurian 
Oracle
     terrain_liked=Hh, Ha, Ds, Ss
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,archer,healer,scout,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/drakes-default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/drakes-default.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/drakes-default.cfg (original)
+++ trunk/data/multiplayer/factions/drakes-default.cfg Sun Mar 15 23:35:37 
2009
@@ -9,6 +9,7 @@
     random_leader=Drake Flare,Fire Drake,Drake Slasher,Drake Gladiator,Drake 
Warrior
     recruit=Drake Burner,Drake Clasher,Drake Glider,Drake Fighter,Saurian 
Skirmisher,Saurian Augur
     terrain_liked=Hh, Ha, Ds, Ss
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,archer,healer,scout,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/knalgans-aoh.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/knalgans-aoh.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/knalgans-aoh.cfg (original)
+++ trunk/data/multiplayer/factions/knalgans-aoh.cfg Sun Mar 15 23:35:37 2009
@@ -9,6 +9,7 @@
     random_leader=Dwarvish Lord,Dwarvish Dragonguard,Assassin,Huntsman,Ranger
     recruit=Dwarvish Guardsman,Dwarvish Stalwart,Dwarvish Fighter,Dwarvish 
Steelclad,Dwarvish Ulfserker,Dwarvish Berserker,Dwarvish Thunderer,Dwarvish 
Thunderguard,Thief,Rogue,Poacher,Trapper,Footpad,Outlaw,Gryphon Rider,Gryphon 
Master
     terrain_liked=Hh, Ha, Mm
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,mixed 
fighter,archer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/knalgans-default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/knalgans-default.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/knalgans-default.cfg (original)
+++ trunk/data/multiplayer/factions/knalgans-default.cfg Sun Mar 15 23:35:37 
2009
@@ -9,6 +9,7 @@
     random_leader=Dwarvish Steelclad,Dwarvish Thunderguard,Rogue,Trapper
     recruit=Dwarvish Guardsman,Dwarvish Fighter,Dwarvish Ulfserker,Dwarvish 
Thunderer,Thief,Poacher,Footpad,Gryphon Rider
     terrain_liked=Hh, Ha, Mm
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,mixed 
fighter,archer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/loyalists-aoh.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/loyalists-aoh.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/loyalists-aoh.cfg (original)
+++ trunk/data/multiplayer/factions/loyalists-aoh.cfg Sun Mar 15 23:35:37 2009
@@ -9,6 +9,7 @@
     random_leader=General,Royal Guard,Halberdier,Master Bowman,Arch 
Mage,Silver Mage
     
recruit=Cavalryman,Dragoon,Horseman,Lancer,Knight,Spearman,Swordsman,Pikeman,Javelineer,Fencer,Duelist,Heavy
 Infantryman,Shock Trooper,Bowman,Longbowman,Mage,Red Mage,White Mage,Merman 
Fighter,Merman Warrior,Ogre,Lieutenant
     terrain_liked=Gg, Ww, Wo
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,archer,mixed 
fighter,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/loyalists-default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/loyalists-default.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/loyalists-default.cfg (original)
+++ trunk/data/multiplayer/factions/loyalists-default.cfg Sun Mar 15 23:35:37 
2009
@@ -9,6 +9,7 @@
     random_leader=Lieutenant,Swordsman,Pikeman,Javelineer,Longbowman,Red Mage
     recruit=Cavalryman,Horseman,Spearman,Fencer,Heavy 
Infantryman,Bowman,Mage,Merman Fighter
     terrain_liked=Gg, Ww, Wo
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,archer,mixed 
fighter,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/northerners-aoh.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/northerners-aoh.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/northerners-aoh.cfg (original)
+++ trunk/data/multiplayer/factions/northerners-aoh.cfg Sun Mar 15 23:35:37 
2009
@@ -9,6 +9,7 @@
     random_leader=Orcish Warlord,Troll Warrior,Orcish Slurbow
     recruit=Orcish Grunt,Orcish Warrior,Troll Whelp,Troll,Troll 
Rocklobber,Wolf Rider,Goblin Knight,Goblin Pillager,Orcish Archer,Orcish 
Crossbowman,Orcish Assassin,Orcish Slayer,Naga Fighter,Naga Warrior,Goblin 
Spearman,Goblin Impaler,Goblin Rouser
     terrain_liked=Hh, Ha, Mm, Ss
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,mixed 
fighter,archer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/northerners-default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/northerners-default.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/northerners-default.cfg (original)
+++ trunk/data/multiplayer/factions/northerners-default.cfg Sun Mar 15 
23:35:37 2009
@@ -8,6 +8,7 @@
     leader=Orcish Warrior,Troll,Troll Rocklobber,Orcish Crossbowman,Orcish 
Slayer
     recruit=Orcish Grunt,Troll Whelp,Wolf Rider,Orcish Archer,Orcish 
Assassin,Naga Fighter,Goblin Spearman
     terrain_liked=Hh, Ha, Mm, Ss
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,mixed 
fighter,archer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/rebels-aoh.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/rebels-aoh.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/rebels-aoh.cfg (original)
+++ trunk/data/multiplayer/factions/rebels-aoh.cfg Sun Mar 15 23:35:37 2009
@@ -9,6 +9,7 @@
     random_leader=Elvish Marshal,Elvish Champion,Elvish Avenger,Elvish 
Sharpshooter,Arch Mage,Silver Mage,Elvish Shyde,Elvish Enchantress
     recruit=Elvish Fighter,Elvish Hero,Elvish Captain,Elvish Archer,Elvish 
Marksman,Elvish Ranger,Mage,Red Mage,White Mage,Elvish Shaman,Elvish 
Druid,Elvish Sorceress,Elvish Scout,Elvish Rider,Wose,Elder Wose,Merman 
Hunter,Merman Spearman,Merman Netcaster
     terrain_liked=Ff, Fa, Ss, Ww
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,archer,archer,mixed 
fighter,healer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/rebels-default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/rebels-default.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/rebels-default.cfg (original)
+++ trunk/data/multiplayer/factions/rebels-default.cfg Sun Mar 15 23:35:37 
2009
@@ -9,6 +9,7 @@
     random_leader=Elvish Captain,Elvish Hero,Elvish Ranger,Elvish 
Marksman,Elvish Druid,Elvish Sorceress,Red Mage
     recruit=Elvish Fighter,Elvish Archer,Mage,Elvish Shaman,Elvish 
Scout,Wose,Merman Hunter
     terrain_liked=Ff, Fa, Ss, Ww
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,archer,archer,mixed 
fighter,healer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/undead-aoh.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/undead-aoh.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/undead-aoh.cfg (original)
+++ trunk/data/multiplayer/factions/undead-aoh.cfg Sun Mar 15 23:35:37 2009
@@ -9,6 +9,7 @@
     random_leader=Lich,Necromancer,Draug,Banebow
     recruit=Skeleton,Revenant,Deathblade,Skeleton Archer,Bone 
Shooter,Walking Corpse,Soulless,Ghost,Wraith,Shadow,Vampire Bat,Blood 
Bat,Ghoul,Necrophage,Dark Adept,Dark Sorcerer
     terrain_liked=Ss, Hh, Ha, Ww
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,fighter,mixed 
fighter,archer,scout
         [team_formula]

Modified: trunk/data/multiplayer/factions/undead-default.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/multiplayer/factions/undead-default.cfg?rev=33718&r1=33717&r2=33718&view=diff
==============================================================================
--- trunk/data/multiplayer/factions/undead-default.cfg (original)
+++ trunk/data/multiplayer/factions/undead-default.cfg Sun Mar 15 23:35:37 
2009
@@ -9,6 +9,7 @@
     random_leader=Dark Sorcerer,Revenant,Deathblade,Bone Shooter
     recruit=Skeleton,Skeleton Archer,Walking Corpse,Ghost,Vampire Bat,Dark 
Adept,Ghoul
     terrain_liked=Ss, Hh, Ha, Ww
+    ai_algorithm=formula_ai
     [ai]
         recruitment_pattern=fighter,fighter,archer,fighter,scout,archer
         [team_formula]




Related Messages


Powered by MHonArc, Updated Mon Mar 16 00:00:20 2009