Charles Dang
117068790c
Deprecated LOYAL_UNDEAD_UNIT
2015-04-22 00:09:52 +11:00
Charles Dang
d71d39ec7a
Fixup 238a48944477, typo in transform_to key
2015-01-07 00:49:47 +11:00
Charles Dang
238a489444
Use [transform_unit] for TRANSFORM_UNIT
2015-01-06 23:40:46 +11:00
Groggy Dice
6ec0163f6e
add RECALL_XY macro to core
...
Many UMC projects have a macro for this function, but the name isn't
standardized (RECALLXY and RECALL_POS are also in use). However, regardless
of name, all these macros follow the "id x y" order, so for compatibility
I have kept that order. UMC authors started with a RECALL macro and added
coordinates, while the unit-generating macros have to organize a lot of
extra fields that are irrelevant to [recall].
2013-12-20 04:51:59 -05:00
Groggy Dice
29bc800600
add RECALL to core unit macros
...
Many UMC projects already have a RECALL macro.
2013-12-20 04:51:55 -05:00
spixi
9625d6df6e
fixed bug #20870 Typo in NAMED_LOYAL_UNIT macro documentation
2013-06-07 21:01:28 +03:00
J. Tyne
26c993207b
Convert some WML macros and lua functions to use...
...
...unpoisonable/undrainable instead of not_living.
One remaining use of "not_living" is in the feeding ability.
2013-01-05 18:16:02 +00:00
Iurii Chernyi
78e345556b
Replaced variable i by TRANSFORM_UNIT_i in macro TRANSFORM_UNIT.
...
Patch #3237 by akihara
2012-04-06 23:04:53 +00:00
Steven Panek
462248e01c
Added VARIATION.
2011-10-06 19:46:50 +00:00
Steven Panek
eefe60f948
Added FACING, which is meant to be used with unit-generating macros.
2011-09-27 23:10:46 +00:00
Fabian Müller
47ed3148f6
Rewrote the ADVANCE_UNIT macro.
2010-11-25 22:12:30 +00:00
Steven Panek
55214bc67f
Deprecated RECALL_OR_CREATE_UNIT and RECALL_OR_CREATE.
2010-11-25 10:22:11 +00:00
Anonymissimus
f756a42458
Better filter by id instead of x,y in TRANSFORM_UNIT...
...
...since x,y= is the same for units on the recall list. It still
doesn't work for these (and ADVANCE_UNIT too) due to bug #17023 but at
least the units don't get lost now.
2010-11-05 00:36:24 +00:00
Steven Panek
c90aa43c45
Killed the recently-created RECALL_OR_CREATE_UNIT_TO_LOCATION.
2010-11-02 00:21:07 +00:00
Steven Panek
b55153426d
Fixed macro name.
2010-11-01 23:40:05 +00:00
Steven Panek
370e9a13e5
Created a version of RECALL_OR_CREATE...
...
...that allows the coder to specify the location where the unit would
be spawned/created.
2010-11-01 23:35:53 +00:00
Steven Panek
41c78d8c16
Even more 'format' -> 'value' conversions;...
...
...this should hopefully take care of all of them.
2010-05-12 00:54:56 +00:00
Eric S. Raymond
c4374f87e3
More macro argument type checking. No mismarches in mainline.
2010-02-15 21:46:31 +00:00
Eric S. Raymond
c62c55e1a2
More macro argument typechecking. No mismatches in mainline.
2010-02-12 00:25:20 +00:00
Eric S. Raymond
f88a4be057
By popular demand, make the loyal-unit generator macros...
...
...give the units they make the loyalty-crown overlay from Dead Water.
2009-12-15 17:14:35 +00:00
Eric S. Raymond
0aa99781cf
Reindent mainline.
2009-11-23 14:39:03 +00:00
Fabian Müller
68f1cdbe94
Resorted a wml attribute.
2009-07-10 00:23:41 +00:00
Fabian Müller
173239dd4f
Added the CREATE_OR_RECALL_UNIT macro...
...
...which takes a full set of [unit] attributes as argument.
2009-04-05 11:04:09 +00:00
Fabian Müller
16a25432b9
Fixed typo in a comment.
2009-04-04 21:46:27 +00:00
Eric S. Raymond
2eced3b63d
Address bug #12794 .
2008-12-29 10:44:00 +00:00
Steven Panek
0a4157b5e9
[[NAMED_NOTRAIT_UNIT]]
...
* Removed instance of generate_name=yes from macro NAMED_NOTRAIT_UNIT,
as it was conflicting with the presence of name=.
* Made the example for NAMED_NOTRAIT_UNIT correct.
2008-12-21 21:21:51 +00:00
Eric S. Raymond
4861e50155
Reindent mainline in preparation for 1.6.
2008-12-08 17:45:47 +00:00
Eric S. Raymond
2b5692e83f
Disable idle animations on guardians.
2008-11-20 02:33:30 +00:00
Eric S. Raymond
2c507577b3
More removal of redundant unit-generator macros.
2008-11-20 00:09:21 +00:00
Eric S. Raymond
ab7cc8c348
Get rid of another private unit generator.
...
We now have what ought to be a fairly complete orthogonal set in
unit-utils.cfg.
2008-11-19 19:55:13 +00:00
Eric S. Raymond
1dddb6b024
Replace UtBS UNIT_ with public NAMED_NOTRAIT_UNIT.
2008-11-19 19:08:12 +00:00
Eric S. Raymond
564465a311
Remove redundant type names from monster declarations.
2008-11-19 16:29:18 +00:00
Eric S. Raymond
df101a794d
Delete a failed experiment.
2008-11-19 15:44:32 +00:00
Eric S. Raymond
7927d33428
Clean up the unit-generator macros.
...
This change has been checked against UMC.
2008-11-19 14:34:05 +00:00
Alexander van Gessel
ff3b3a3623
Correct description of TRANSFORM_UNIT macro.
2008-09-16 23:24:09 +01: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
Mark de Wever
d5303889e9
Fix a typo.
2008-08-21 10:45:44 +00:00
Eric S. Raymond
e86ea79456
Better name and definition of a no-recall-list nacro, suggested by Sapient.
2008-08-21 01:53:31 +00:00
Eric S. Raymond
4eae029023
Restore some filter elements restricting to units on map...
...
...that I removed in 2008-07-13T16:27:37Z!crazy-ivanovic@gmx.net and 2008-07-13T16:37:29Z!crazy-ivanovic@gmx.net,
mistakenly believing them to be no-ops.
2008-08-20 21:30:23 +00:00
Eric S. Raymond
bedada8475
Factor out magic constant 99 in WML movement costs, renaming it UNREACHABLE.
2008-08-20 17:38:42 +00:00
Eric S. Raymond
ff13231df4
Fix cosmetic glitches found by wmllint.
2008-08-19 04:34:35 +00:00
Patrick Parker
2de535a1d6
fix a little bug with the transform unit macro
2008-07-29 04:19:15 +00:00
Patrick Parker
022206e26e
added TRANSFORM_UNIT macro, patch #1085 by AI
2008-07-29 03:41:03 +00:00
Ignacio R. Morelle
017a9263f0
Apply patch #1063 from AI0867...
...
...(ADVANCE_UNIT macro for advancing arbitrary units to arbitrary types)
2008-07-19 01:23:51 +00:00
Ignacio R. Morelle
4b42a90f34
Revert patch #1063 from 2008-05-06T00:45:50Z!shadowm@wesnoth.org
2008-05-06 01:12:25 +00:00
Ignacio R. Morelle
0f659ab0f0
Apply patch #1063
2008-05-06 00:45:50 +00:00
Eric S. Raymond
39733d0ed1
wmllint had a bug. Fix it, and commit the resulting lifts.
2008-03-17 12:12:18 +00:00
Eric S. Raymond
b2b55e5996
description= -> name in [unit]
...
This will cause unit names to be displayed incorrectly from savefiles made
since 2008-03-14T01:38:17Z!esr@thyrsus.com. It was either that or break compatibility with 1.3/1.4
savefiles.
2008-03-15 20:30:45 +00:00
Eric S. Raymond
17c9e1e0ad
user_description= -> description=
...
Code for SUF and reading unit configs has been modified
so things should work backward-compatibly.
2008-03-14 01:38:17 +00:00