Author: soliton
Date: Wed Feb 27 02:44:05 2008
New Revision: 24104
URL: http://svn.gna.org/viewcvs/wesnoth?rev=24104&view=rev
Log:
* change NOTRAIT_UNIT to actually have no traits and get a random name and
gender
Modified:
trunk/data/core/macros/unit-utils.cfg
Modified: trunk/data/core/macros/unit-utils.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/unit-utils.cfg?rev=24104&r1=24103&r2=24104&view=diff
==============================================================================
--- trunk/data/core/macros/unit-utils.cfg (original)
+++ trunk/data/core/macros/unit-utils.cfg Wed Feb 27 02:44:05 2008
@@ -34,19 +34,20 @@
[/unit]
#enddef
-#define NOTRAIT_UNIT TYPE DESCRIPTION USER_DESCRIPTION SIDE X Y
- # Creates a unit with no traits.
+#define NOTRAIT_UNIT TYPE SIDE X Y
+ # Creates a unit with no traits, random gender and name.
#
# Example:
- #! {LOYAL_UNIT (Elvish Fighter) (Myname) ( _ "Myname") 1 19 16}
+ #! {NOTRAIT_UNIT (Elvish Fighter) 1 19 16}
#
[unit]
+ side={SIDE}
type={TYPE}
- description={DESCRIPTION}
- user_description={USER_DESCRIPTION}
- side={SIDE}
x={X}
y={Y}
+ generate_description=yes
+ random_traits=no
+ random_gender=yes
[/unit]
#enddef
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits