Commit graph

37 commits

Author SHA1 Message Date
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
Gunter Labes
87839dd90c don't use random traits in the team survival and wesbowl 2007-09-18 19:57:05 +00:00
Lari Nieminen
b95daffdbc Added a warning about NO_SCROLL_TO_AI_LEADER not working in networked MP. 2007-09-07 11:25:06 +00:00
Lari Nieminen
9dd3ae4a47 Added a FULL_HEAL macro for restoring units to full health. 2007-09-07 11:18:14 +00:00
Patrick Parker
a7b7e35add now radius expansion is handled last in Standard Location Filters;
previously it was handled last except before [and], [or], and [not]

note: this allows more advanced uses of the radius expansion feature
2007-09-05 03:55:02 +00:00
Lari Nieminen
681344e706 Removed the IF_TERRAIN macro,
...since it hasn't been needed for anything in a long while.
2007-09-01 21:42:46 +00:00
Lari Nieminen
0655d2a5b2 Added a macro for preventing view from scrolling to an (AI) side's leader...
...at the beginning of its turn. Also nuked the table of contents as
it's out of date and not maintained.
2007-09-01 21:40:05 +00:00
Lari Nieminen
3316f43d01 Improved MOVE_UNIT to change the facing of the moved unit too,
and added a new LOYAL_UNIT macro (to obsolete UNIT, which is IMO
poorly named).
2007-08-10 12:55:30 +00:00
Lari Nieminen
09cc01346b Added an additional macro for setting starting villages. 2007-07-30 10:31:51 +00:00
Eric S. Raymond
6405507b24 Fix up a large number of espeaker=narrator blocks without images.
Along the way, change signpost popups to use the signpost graphic.

Also, fix some implicit attack/icon references to be explicit.
2007-07-24 01:28:59 +00:00
Lari Nieminen
981493e5fd Liberty fixes and a new core macro
(GENERIC_UNIT, which spawns a generic random-trait, random-named unit).
2007-07-21 23:00:49 +00:00
Nils Kneuper
c19e3c2311 added a default textdomain definition to all .cfg files 2007-07-06 09:00:49 +00:00
Eric S. Raymond
3908c56233 Fix a vertical-whitespoce glitch produced by wmlindent's passthrough mode. 2007-06-29 12:14:48 +00:00
Eric S. Raymond
9433ae3fee Implement a facility to make wmlindent ignore designated stretches of lines.
Allow generation of XHTML docs from macro comments indented in the new format.
2007-06-29 11:50:33 +00:00
Lari Nieminen
412d47eacf Added a macro for conveniently timing arbitrary WML actions. 2007-06-28 22:11:42 +00:00
Eric S. Raymond
21b24e2a9b Move macros into a 'maxros' directory under core. 2007-05-16 01:04:29 +00:00
Renamed from data/utils/utils.cfg (Browse further)