19556 Commits

Author SHA1 Message Date
mattsc
f1faf1d6e3 Experimental AI: fix a parameter in call to healer support AI
This was an oversight from a change made in d4917d534e just two days
ago, so it was not in any released version.
2014-04-17 07:11:42 -07:00
mattsc
9ec2cdec3c SotBE S3: make the two sets of objectives consistent with each other
This does not add any strings.
2014-04-16 21:28:05 -07:00
mattsc
a30b6cb77c SotBE S2: end scenario if Kapou'e is already at signpost
… when the messenger reappears.  Previously, one would have had to move
Kapou’e off the post and back onto it.
2014-04-16 21:28:04 -07:00
mattsc
4e98ab314a SotBE S2: adjust starting villages
So that they are more consistent with the situation at the end of the
previous scenario.
2014-04-16 21:28:04 -07:00
David Mikos
f5c4ee5690 AnimationWML: Fix sound timings for drake fire animation macros 2014-04-17 06:53:15 +09:30
David Mikos
858286fad9 Fix bug #21914: allow drake walking corpse variation to move on unwalkable 2014-04-17 05:44:08 +09:30
mattsc
4a7292e993 Goto Micro AI: code cleanup 2014-04-16 09:47:10 -07:00
mattsc
f6830897aa Protect Unit Micro AI: code cleanup 2014-04-16 09:47:10 -07:00
mattsc
8fa3a60e56 Protect Unit Micro AI: fix bug in goal selection
There was a typo in the goal table indexing.  It worked for the
multi-unit test scenario (the Elves Besieged) because the goal x
coordinates for both units were the same.
2014-04-16 09:47:10 -07:00
mattsc
d4917d534e Healer Support Micro AI: code cleanup 2014-04-16 09:47:09 -07:00
aquileia
066ae06083 Reapply a5cb1492c4 on 1_Tutorial.cfg
The tutorial produced a row of warnings because the WML container
next_turn and its members weren't initialized.
2014-04-16 04:39:42 +02:00
mattsc
a4ca7c164f Micro AIs: prevent potential conflicts of stored data
It’s theoretically possible that different Micro AIs’ evaluation
functions store information in the same variable within self.data.
This would only happen if the CAs have the same score and while this
should generally be avoided when setting up a scenario, it is better to
ensure that it cannot cause conflicts (not in the stored data at least,
the MAIs might still interfere with each other in other respects).
2014-04-15 08:15:37 -07:00
mattsc
51251d48e1 Hunter Micro AI: code cleanup 2014-04-15 08:15:37 -07:00
mattsc
85b36fd32f Random Recruiting Micro AI: code cleanup 2014-04-15 08:15:37 -07:00
mattsc
6532fdbb4b Hang-out Micro AI: code cleanup 2014-04-15 08:15:37 -07:00
mattsc
3a85688c60 Multi-pack Wolves MAI: code cleanup 2014-04-15 08:15:36 -07:00
mattsc
326d998728 Animals Micro AIs: code cleanup 2014-04-14 12:45:20 -07:00
mattsc
e13f60e86e Big Animals MAI: check that attack target is enemy of AI side
… not only that it is on a different side.
2014-04-14 12:45:20 -07:00
mattsc
62e9eab4fa Micro AIs: make loop variables more descriptive 2014-04-14 12:45:19 -07:00
mattsc
074df432d7 Herding Micro AI: code cleanup 2014-04-14 12:45:19 -07:00
mattsc
54babada05 Recruit Rushers Micro AI: remove unused library 2014-04-14 12:45:19 -07:00
mattsc
6140b52234 Wolves Micro AI: code cleanup 2014-04-14 12:45:19 -07:00
ln-zookeeper
59e9dd1c43 Don't bother with stolen gold if there wasn't any 2014-04-13 14:28:13 +03:00
ln-zookeeper
416ede246d Tweaks to two event triggers
Allows units other than Gweddry to find the gold, and triggers the
academy-finding dialogue when moving close to it, but not if Dacyn
already got there first.
2014-04-13 13:39:38 +03:00
mattsc
41687b5569 Guardian Micro AIs: code cleanup 2014-04-12 21:57:16 -07:00
mattsc
20eb5b27dc Patrol Micro AI: code cleanup 2014-04-12 21:57:16 -07:00
mattsc
65bc85d030 Lurkers Micro AI: code cleanup 2014-04-12 21:57:15 -07:00
mattsc
8902e649d4 Swarm Micro AI: code cleanup 2014-04-12 21:57:15 -07:00
mattsc
ec9017584b Simple Attack Micro AI: code cleanup 2014-04-12 21:57:15 -07:00
Elvish_Hunter
082992beed Removed sanity checks for missing variable=, [case] and value= in [switch] 2014-04-12 10:15:28 +02:00
Elvish_Hunter
c35e08dbfd Removed sanity check for missing [do] in [while] 2014-04-12 10:15:28 +02:00
mattsc
bb8c08a314 Micro AIs: standardize eval/exec function table setup 2014-04-11 17:21:58 -07:00
David Mikos
59e95ff304 Add 'elemental' trait to mudcrawler line. 2014-04-12 09:33:25 +09:30
Bär Halberkamp
70322185d4 Restored lightred and darkred TC 2014-04-11 23:46:11 +02:00
mattsc
98509aa2bf Fix a typo
I had actually introduced this typo intentionally for testing purposes
and then forgotten to remove it.  :-P
2014-04-10 10:39:12 -07:00
mattsc
c4cb6168e4 Micro AIs: avoid using formula= in SUFs
It’s slow for finding units with moves or attacks left.  The
alternative method of getting all units and then looping over the table
with a condition is much faster.
2014-04-10 10:06:25 -07:00
mattsc
161470c149 Micro AIs: avoid using table.remove
It’s slow.  The inverse logic using table.insert is much faster,
especially for large tables.  Only kept table.remove in a couple places
where it doesn’t matter.
2014-04-10 07:36:45 -07:00
mattsc
a131572e09 Messenger Micro AI: minor code simplification 2014-04-10 07:36:44 -07:00
Charles Dang
3ec612b063 UtBS S6a: fixed typo in comment 2014-04-10 02:57:03 -07:00
Charles Dang
def4c7cb3b THoT S12: fixed a typo and a missing word
Then -> Then
We will able -> We will be able
2014-04-10 02:53:51 -07:00
Charles Dang
8a80c370fe THoT S2: added mission period 2014-04-10 02:51:34 -07:00
Charles Dang
165210d8a3 THoT S1: improved a sentence 2014-04-10 02:49:51 -07:00
Charles Dang
578b4324fe NR S10a: fixed typo in comment 2014-04-10 02:46:34 -07:00
Charles Dang
b363705e96 NR S7a: fixed typo in a comment 2014-04-10 02:45:13 -07:00
Iurii Chernyi
47b4f52c9e Merge pull request #143 from Kevin-Xi/bugfix
fix minor bug in get_healing_phase
2014-04-10 11:13:07 +02:00
Charles Dang
45db6360e6 AOI S6: correct user_team_name for side 2 to Undead 2014-04-10 02:11:46 -07:00
Kevin_Xi
841284881a fix minor bug in get_healing_phase 2014-04-10 14:52:43 +08:00
mattsc
7fc8e9797b Micro AIs: avoid code duplication between eval and exec functions 2014-04-09 18:23:46 -07:00
mattsc
6f40ed8046 Micro AIs: use new fight_on_without_leader= key as needed
So that the scenarios with leaderless AI sides work.
2014-04-09 18:21:52 -07:00
mattsc
f260dd3be5 Micro AIs: one more wesnoth.dofile -> wesnoth.require 2014-04-07 14:36:36 -07:00