65 Commits

Author SHA1 Message Date
Lari Nieminen
7490ce5a9c More fixing. 2009-01-31 21:56:28 +00:00
Lari Nieminen
6088ca7145 Fixed the FORCE_CHANCE_TO_HIT macro a bit. 2009-01-31 21:39:58 +00:00
Eric S. Raymond
718cbdfa78 thespaceinvader's big portrait rationalization. 2009-01-31 00:15:02 +00:00
Lari Nieminen
7a70d97a93 A new macro for invisibly forcing a specific CTH in combat. 2009-01-30 17:56:34 +00:00
Lari Nieminen
62057c7d51 Removed a macro which doesn't seem to work. 2008-12-11 21:44:04 +00:00
Eric S. Raymond
4861e50155 Reindent mainline in preparation for 1.6. 2008-12-08 17:45:47 +00:00
Lari Nieminen
2bd8986eea Fixed the NO_SCROLL_TO_AI_LEADER macro. 2008-12-07 19:08:12 +00:00
Fabian Müller
9c23db6184 moved all village ownership related macros from utils.cfg to side-utils.cfg 2008-12-02 17:52:24 +00:00
Eric S. Raymond
eaf04d8ef4 Refactor STARTING_VILLAGES and STARTING_VILLAGES_AREA...
...so the capture code is available outside prestart events, e.g. when
an allied side is subsumed and you want the player to get its villages
as well as its units.
2008-12-01 20:01:44 +00:00
Ignacio R. Morelle
5cf8c5dd2d Fixed some WML variable leaks
Removed an unneeded CLEAR_VARIABLE (unneded since the action is
bundled with a NEXT macro)
2008-11-12 09:48:55 +00:00
Lari Nieminen
daec179c59 Made SCATTER_UNITS handle running out of valid spots better. 2008-10-31 10:40:54 +00:00
Eric S. Raymond
dcbc274671 Remove uneeded VICTORY_AND_DEFEAT_MUSIC macro, and fix a whitespace glitch. 2008-10-30 20:16:07 +00:00
Lari Nieminen
1eecbeb8e9 Moved the SCATTER_UNITS macro to core. 2008-10-30 13:54:38 +00:00
Lari Nieminen
6f8d44cea9 Made SoF support both the old and new carryover systems...
...(choice given in the difficulty menu).
2008-09-26 21:01:37 +00:00
Lari Nieminen
f581e18f8b Added a macro that helps campaigns support both gold carryover systems...
...concurrently.
2008-09-26 17:46:25 +00:00
Eric S. Raymond
b31c324728 Fulfil the rest of bug #12180. Reindent appropriately. 2008-08-28 23:07:44 +00:00
Eric S. Raymond
08f09eda6f Give wmlindent a capability to declare indenters.
Pre-declare {FOREACH and {NEXT.

Write declarations in the one place they're presently needed, Sceptre of Fire.

Reindent the data tree accordingly.

This partly addresses the feature request in bug #12180.
2008-08-28 20:19:50 +00:00
Eric S. Raymond
318486ce4b Reindent most of the data tree in preparation for making wmlindent smarter. 2008-08-28 17:57:00 +00:00
Eric S. Raymond
ecb1b560aa Typo fix. 2008-08-20 21:15:46 +00:00
Patrick Parker
a11019838a add missing index for a real fix 2008-08-11 06:24:07 +00:00
Patrick Parker
138a235ff0 allow FULL_HEAL to work on more than one unit, as intended. 2008-08-11 06:22:33 +00:00
Ignacio R. Morelle
a7b3efcefc Fixed FULL_HEAL macro,
...which was not doing anything due to a missing [unstore_unit]
2008-08-10 20:57:21 +00:00
Patrick Parker
6d8e03be65 a simplification of the FULL_HEAL macro 2008-07-04 18:55:10 +00:00
Lari Nieminen
f31a26e6ec Added a hacky macro for making a side be allied with all other sides. 2008-06-28 23:03:50 +00:00
Lari Nieminen
a180771a1b Added a macro for allowing a side to randomly recruit given unit variations...
...(usually WC variations), and made Muff Malal's Peninsula use that.
2008-06-14 11:17:56 +00:00
Lari Nieminen
0388ab59a2 Fix a stupid WML bug. 2008-04-09 13:16:20 +00:00
Eric S. Raymond
4ec05d32b7 Fix up WML variable references...
...to track the SingleUnitWML attribute name changes.  These cannot be
lifted mechanically, but wmllint warns about possible problems.
2008-03-15 21:55:05 +00:00
Eric S. Raymond
364a4decbd wmlindent strikes again. 2008-03-07 21:26:44 +00:00
Eric S. Raymond
1206de9ddf Clean up some canrecruit macros. 2008-03-01 10:40:21 +00:00
Eric S. Raymond
303a039679 Use cancrecruit={yes,no} rather than canrecruit={1,0} everywhere,
...because it's a good example mainline should set for UMC.
This change was done mechanically with a wmllint enhancement.
2008-03-01 08:42:40 +00:00
Eric S. Raymond
53c0d4c3e7 Move some unit macros without dependencies,
...in order to reduce the tangle in utils.cfg
2008-02-26 23:58:43 +00:00
Lari Nieminen
e93de2236d Added a new utility macro for transferring control of all villages...
...from one side to another.
2008-02-15 18:31:10 +00:00
Eric S. Raymond
34d528064a Macro and documentation-comment cleanup; remove some unused cruft. 2008-02-14 13:21:03 +00:00
Eric S. Raymond
608ded4239 More macro typechecking improvements. 2008-02-14 04:56:52 +00:00
Eric S. Raymond
a7f2cf4b3b Fix a large number of macro syntax errors involving misplaced commas. 2008-02-13 02:20:46 +00:00
Eric S. Raymond
0fd8975c94 More macro type checking. 94% of calls in mainline are now checked. 2008-02-13 02:04:50 +00:00
Eric S. Raymond
0ee463c8cf Enrich macro type checking some more and simplify the type inference rules.
Also head off a potential bug noted by Mordante with WML that
looks like {X_SPAN},{Y_SPAN}.
2008-02-10 09:38:07 +00:00
Eric S. Raymond
28bee542c6 More formal-argument fixups and macro type checking. 2008-02-10 08:05:32 +00:00
Eric S. Raymond
a600ade30e Regularize use of macro formal arguments so we can do better typechecking. 2008-02-10 04:30:18 +00:00
Eric S. Raymond
7eb3510fca Implement checking of range, span, and filter types in macros.
Show the type signatures in ythe wmlscope error messages for the mismatches.
2008-02-06 20:22:44 +00:00
Eric S. Raymond
7f126adf92 Fix argument-order screwup in the new LOYAL_UNIT macro,
...and fix some instances in Liberty that did not conform.
2008-02-01 03:08:53 +00:00
Eric S. Raymond
13d01a4e51 wmllint now has the capability to automatically check...
...that every description= in [message] and [filter] blocks refers to
a unit that is present in the scenario. This commit fixes almost all
bugs found with this test, and adds magic comments to handle places
where the WML doesn't supply a recognizable unit creation or recall
(usually because of macros).
2008-01-31 13:12:19 +00:00
Eric S. Raymond
32c4540709 More getting rid of {UNIT}. 2008-01-31 03:13:44 +00:00
Eric S. Raymond
b1b2435d40 Reindent the mainline content to uniiform whitespace. 2008-01-24 00:16:42 +00:00
Mark de Wever
2ad8526efc Let {RANDOM} use the new random generator. 2007-12-24 22:32:58 +00:00
Ignacio R. Morelle
80e16c3d9e update the {GENERIC_UNIT ...} macro (single player only)...
...to take advantage of the new random_gender= key.

fix some typos in the changelog
2007-12-05 17:18:52 +00:00
Ignacio R. Morelle
1dd3cb11b4 Make {MOVE_UNIT (...)} consider the gender and unit variation too,
when doing the move_unit_fake.
2007-10-29 11:10:34 +00:00
Lari Nieminen
e5a1c746fe Clean up and simplify STARTING_VILLAGES a bit. 2007-10-15 07:54:04 +00:00
Lari Nieminen
06535624fc Changed Peaceful Valley so that goblins spawn on random adjacent hexes...
...(instead of always on the same ones) and that there are no spawns if
you recapture a village. Also added a new REPEAT macro.
2007-09-30 21:09:58 +00:00
Gunter Labes
03eaf7a4b8 remove the CREATE_UNIT macro now that it's nowhere used anymore 2007-09-19 00:28:07 +00:00