19690 Commits

Author SHA1 Message Date
mattsc
c24ddb71b2 Micro AIs bug fix: remove MAI unit variables on MAI removal
Previously this information remained in units and could alter the
behavior of subsequent MAIs, or even entirely disable them.
2014-03-31 08:21:50 -07:00
mattsc
49cc3bc7f9 Micro AIs: use the new functions for storing information in units
… such that it is done in a consistent way and this information can be
removed on MAI deletion.
2014-03-31 08:19:31 -07:00
mattsc
a4ee966d06 Fix comments 2014-03-31 08:16:14 -07:00
mattsc
bfb3315153 Micro AIs: another bug fix for required keys for MAI removal
The random recruiters MAI also required unnecessary keys to be provided
for MAI removal.
2014-03-31 08:15:12 -07:00
mattsc
24881edfb3 Micro AIs: use AI id instead of CA id as identifier
… for determining whether AI/CA ids are unique.  Also pass AI id to
eval/exec functions, instead of CA id.  This is also a step toward
fixing the bug with MAI variables remaining stored in units after an
MAI is removed.
In principle, the ca_id= key in the [micro_ai] tag should now be
renamed to ai_id, but that would break backward compatibility without
any benefit to the user, so we deal with it internally behind the
scenes instead.
2014-03-31 08:12:33 -07:00
mattsc
96e84f24c5 MAIs: add utility functions for storing information in unit variables
These provide a simple and consistent way of storing variables inside
[micro_ai] tags in unit variables.  This is needed for fixing a bug
with variables stored in units from a previous MAI causing problems
with a subsequent MAI.
2014-03-31 07:54:52 -07:00
mattsc
7c3d9093fb Micro AIs: fix bug requiring unnecessary keys for MAI removal
MAIs which take either [filter] or id= used to throw an error message
if neither was given even for MAI removal.
2014-03-31 07:49:56 -07:00
mattsc
84b1234835 [micro_ai] tag: move CA_path definition to beginning of file
To make it more visible for UMC authors who want to include their own
(modified) AIs.
2014-03-31 07:46:21 -07:00
Duthlet
5530cd0fc5 Fix bug #21759
Removed duplicate code that caused timer to be refreshed an additional
time if time runs out. The usual refreshing in
playmp_controller::after_human_turn is already called in this case as
well (after turn ends). The duplicate code gave the bonuses before the
turn ended, and after that the turn was ended (giving turn bonus again)
only if there was no random seed incoming from the server.

Conflicts:
	changelog
2014-03-30 13:48:53 -04:00
mattsc
0fd45763a9 MAIs: test for unit equality directly, not via coordinates 2014-03-29 17:19:56 -07:00
mattsc
f03c6052d0 Return guardian MAI: remove unnecessary condition
We can never get to this point in the code if the unit does not have
moves.
2014-03-29 17:19:56 -07:00
mattsc
a017e584f2 Coward MAI: remove unnecessary condition
ai_helper.movefull_stopunit takes care of this internally.
2014-03-29 17:19:56 -07:00
fendrin
70a5539a89 Changed LoW's highest difficult level from hard to challenging 2014-03-29 17:48:21 +01:00
mattsc
187f1c489b Patrol MAI: fix bug with save/load persistent data storage
WML values may not be used as keys, this can make savegames invalid.
Store information in the units now rather than in self.data. (Note:
storing in self.data would also be possible if the syntax were changed.)
2014-03-28 07:49:09 -07:00
mattsc
244ad22ce2 MAIs: minor code simplification in AIs that take both [filter] and id=
These are the AIs that used to use Behavior Candidate Actions (BCA).
2014-03-28 07:00:59 -07:00
mattsc
c72c8e7ff2 Messenger MAI: add optional invert_order= key
In the default configuration, the AI moves the messenger which has
advanced the furthest through the waypoints first.  If this key is set,
the rearmost messenger is moved first.
2014-03-27 14:36:32 -07:00
mattsc
62f709aaa3 Messenger MAI: allow several messengers to be controlled by AI
For two of the CAs this mostly just means reading the [filter] tag and
picking one of the messengers.  However, for the CA moving the escort
units, it means a complete rewrite, as the AI now needs to figure out
which escort unit should be moved toward which messenger.
2014-03-27 13:36:29 -07:00
mattsc
2d458b642a Messenger MAI: fix bug with escort units blocking the messenger
When there were lots of escort units, they previously quite frequently
blocked the messenger’s way, preventing him from making progress even
when it was possible.  Escort units now specifically move out of the
way if they do not need to attack enemy units in the messenger’s way.
2014-03-26 18:06:36 -07:00
mattsc
9e6b780306 ai_helper.get_closest_location(): fix bug with tags in SLF
The way how the Standard Location Filter was dealt with only worked
with keys, not tags.
2014-03-26 18:03:50 -07:00
mattsc
f417faa2d5 Move path to Micro AI candidate actions files into variable
The purpose of this commit (and the previous) is to make it easier for
UMC authors to add functionality to the Micro AIs.
2014-03-25 08:09:49 -07:00
mattsc
5df117161a Move Micro AI auxiliary functions into their own file 2014-03-25 07:59:29 -07:00
mattsc
76bcdae73c Messenger MAI: add optional [filter_second] tag
This allows selection of the escort units.
2014-03-25 06:32:58 -07:00
Nils Kneuper
bbdf3a16de updated Greek translation 2014-03-22 09:27:56 +01:00
happygrue
3265ad3b3f Rebalanced three THoT scenarios.
Tweaked starting gold and income for various sides.  Updated changelog,
players changelog.
2014-03-21 21:08:09 -04:00
Ignacio R. Morelle
bbe8b7a816 Merge branch 'Add-unit-instance-recall-costs' of https://github.com/Aishiko/wesnoth into Aishiko-Add-unit-instance-recall-costs
Conflicts:
	changelog
2014-03-21 01:05:39 -03:00
Aishiko
b979516e75 Added Aishiko to about.cfg as requsted by shadowm
Added Aishiko and a comment about her being to blame for the unit instance
recall costs.
2014-03-20 19:42:23 -04:00
Chris Beck
60ee028417 Merge pull request #120 from cbeck88/purge_human_ai
Purge "human_ai" controller type
2014-03-19 17:22:01 -04:00
Chris Beck
60777429c3 Purge "human_ai" controller type
This is a fixup of bugfix #18829 (which was commit
736ceaa6c7e81882c9c5b2e932307b1f1ecb3bfd)
2014-03-19 17:20:36 -04:00
mattsc
64b41270e7 Messenger MAI: fix rare bug in attacks by messenger
This previously resulted in an error message when the messenger had
moves left but had no attacks left, a condition that was not checked
for.
2014-03-19 10:36:46 -07:00
mattsc
e5ea7824d1 Patrol Micro AI: fix bug in the attack part of this MAI
This was an oversight dating back to the introduction of the [filter]
tag as a possible parameter to this Micro AI.  A part of the attack
code still relied on the id= key being given, although that key is not
required any more now.
2014-03-17 18:30:30 -07:00
soliton-
8e9fcd1704 Merge pull request #118 from aquileia/new-branch
minor fixes
2014-03-17 22:29:14 +01:00
David Mikos
19c78e87b4 Chill tempest animation for lich/ancient lich. 2014-03-17 07:48:02 +10:30
David Mikos
f5323b627c Khalifate melee attack sound timings fix. 2014-03-16 15:07:48 +10:30
fendrin
16f08c46d2 Removed obsolete map header. 2014-03-15 17:27:10 +01:00
fendrin
c565f92af2 LoW 07: Made the map bigger, adjusted starting positions and more.
* Got a bigger map
* The third former ally is now cotrolled by the player(s)
* Removed the annoying bird sounds
* Introduced an unallied monster side to the south
* Removed the early appearance of Olurf, he will arrive always at end
* Some fixes to the mp port, may still not work properly
2014-03-15 15:18:46 +01:00
Aishiko
a723d5fa59 Add single unit instance recall_costs
Add the variables, lua, and wml support variables to allow a scenario
designer the ability to define different from the standard recall costs
or team recall costs for both individual units and unit types.
from least to highest order of precendent we'll have default, team/side,
unit_type, and finally individual units.

The tag in the scenarios and in the unit config files is recall_cost=int.
2014-03-15 10:03:56 -04:00
fendrin
1e5d58af6a Made the orb and minimap colors configurable by the preferences. 2014-03-15 14:37:16 +01:00
aquileia
f3bfa19b4a add GUI tag list for Vim syntax highlighting 2014-03-14 23:19:35 +01:00
aquileia
3dea887095 fix indentation of macros in lobby_main.cfg 2014-03-14 23:18:53 +01:00
Ignacio R. Morelle
037ec6af8b gui2/ttransient_message: Add missing standard padding around image cell 2014-03-13 01:10:50 -03:00
Ignacio R. Morelle
b9b199f4f1 gui2/tmessage: Add missing standard padding around image cell 2014-03-13 01:10:50 -03:00
fendrin
8e12b18891 First topic of an editor help section. 2014-03-12 19:22:10 +01:00
fendrin
25483d4024 Great Ogre unit for use in LoW. 2014-03-12 18:49:53 +01:00
happygrue
f0246d3a19 Balance: Increased xp requirement for Rami, Saree 2014-03-04 12:48:51 -05:00
happygrue
349253628d Added missing scenario objective.
Should not break string freeze as it is copied verbatim from the next
scenario.
2014-03-04 12:32:58 -05:00
Alexander van Gessel
62b287354f Fix Fisher-Yates implemenation of Lua helper.shuffle (bug #21706) 2014-03-04 11:57:19 +01:00
Ignacio R. Morelle
780cced9c2 terrain2wiki: wesnoth-old.git -> wesnoth.git 2014-03-02 19:17:30 -03:00
Nils Kneuper
3ca6988963 applied utils/wesnoth-optipng
Overall statistics (only for files with a smaller recompressed size):
  Original size: 14370 KiB on 172 files
 Optimized size: 12855 KiB
   Total saving: 1514 KiB = 10% decrease
2014-03-02 18:35:49 +01:00
Ignacio R. Morelle
38e6ee6822 EI S11: Swap an attribute value list so as to not trigger a wmllint conversion
In particular, side,canrecruit=1,yes triggers the canrecruit=1 ->
canrecruit=yes conversion.
2014-03-02 07:01:34 -03:00
Ignacio R. Morelle
c796334fad Relocate misplaced credits entry from PR #94
From commit 5a3969a47585cf99221a401a02799c077cae2c31.
2014-03-02 06:51:31 -03:00