[wpdev-commits] xmlscripts/definitions/npcs/humans civilists.xml,1.17,1.18
Brought to you by:
rip,
thiagocorrea
From: HellRaider <hel...@us...> - 2004-10-21 00:21:49
|
Update of /cvsroot/wpdev/xmlscripts/definitions/npcs/humans In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21720/definitions/npcs/humans Modified Files: civilists.xml Log Message: Male NPCs can now have beards... matching their hair's color :) Index: civilists.xml =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/definitions/npcs/humans/civilists.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** civilists.xml 9 Sep 2004 03:19:37 -0000 1.17 --- civilists.xml 21 Oct 2004 00:21:33 -0000 1.18 *************** *** 8,11 **** --- 8,31 ---- --> <definitions> + + <npc id="npc_empty"> + <!-- Empty NPC definition, works as a NOOP for inheritance. --> + </npc> + + <!-- NPC with a beard --> + <npc id="npc_with_beard"> + <equipped> + <item list="FACIAL_HAIR"/> + </equipped> + </npc> + + <!-- Inheriting from this yields a 75% chance of getting a beard --> + <list id="NPC_BEARD_CHANCE"> + <item>npc_empty</item> + <item>npc_with_beard</item> + <item>npc_with_beard</item> + <item>npc_with_beard</item> + </list> + <!-- Male Base --> <npc id="base_male"> *************** *** 18,22 **** <wandertype>1</wandertype> <direction><random min="0" max="7" /></direction> <!-- Facing a random direction --> ! <!-- The Equipment of a standard human --> <equipped> --- 38,42 ---- <wandertype>1</wandertype> <direction><random min="0" max="7" /></direction> <!-- Facing a random direction --> ! <!-- The Equipment of a standard human --> <equipped> *************** *** 28,31 **** --- 48,55 ---- </equipped> + <inherit><random list="NPC_BEARD_CHANCE"/></inherit> + + <haircolor><random list="HAIRCOLOR" /></haircolor> + <str><random min="71" max="85" /></str> <dex><random min="66" max="80" /></dex> *************** *** 44,48 **** <wandertype>1</wandertype> <direction><random min="0" max="7" /></direction> <!-- Facing a random direction --> ! <!-- The Equipment of a standard human --> <equipped> --- 68,72 ---- <wandertype>1</wandertype> <direction><random min="0" max="7" /></direction> <!-- Facing a random direction --> ! <!-- The Equipment of a standard human --> <equipped> *************** *** 54,57 **** --- 78,83 ---- </equipped> + <haircolor><random list="HAIRCOLOR" /></haircolor> + <str><random min="71" max="85" /></str> <dex><random min="66" max="80" /></dex> *************** *** 59,63 **** <basescripts>speech.pets</basescripts> </npc> ! <!-- Pirate --> <npc id="pirate_male"> --- 85,89 ---- <basescripts>speech.pets</basescripts> </npc> ! <!-- Pirate --> <npc id="pirate_male"> *************** *** 88,90 **** --- 114,117 ---- <wandertype>0</wandertype> </npc> + </definitions> |