diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-05-19 11:40:50 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-26 22:56:47 +0200 |
commit | 4d46079cd147e05513473860cb2e92fec0c31b8f (patch) | |
tree | 0f115a91debb6be766a174e8042ff800aff3a0ec /example | |
parent | 6d14024f3df86c05e94f2b4161faf8f5d97c2c0f (diff) | |
download | manaserv-4d46079cd147e05513473860cb2e92fec0c31b8f.tar.gz manaserv-4d46079cd147e05513473860cb2e92fec0c31b8f.tar.bz2 manaserv-4d46079cd147e05513473860cb2e92fec0c31b8f.tar.xz manaserv-4d46079cd147e05513473860cb2e92fec0c31b8f.zip |
Allow names instead of ids for attributes + cleanup
I did not adapt the scripts yet since we need some special handling for
the attributes which are required by the server directly. So you still
have to use the ids for those. I will change that later.
In the future I want to use the AttributeInfo class instead of the int
id everywhere possible. So I did a small start on that too.
Diffstat (limited to 'example')
-rw-r--r-- | example/monsters.xml | 44 | ||||
-rw-r--r-- | example/settings.xml | 2 |
2 files changed, 16 insertions, 30 deletions
diff --git a/example/monsters.xml b/example/monsters.xml index 6ae92451..890a3b2b 100644 --- a/example/monsters.xml +++ b/example/monsters.xml @@ -41,17 +41,13 @@ exp<TAG>: Tells how much experience point a monster is giving up <drop item="3" percent="2.8"/> <drop item="4" percent="0.7"/> <attributes - hp="200" size="4" - speed="2.0" - hit="10" - evade="5" - magical-evade="5" - physical-defence="5" - magical-defence="0" mutation="50" /> <exp>10</exp> + <attribute id="HP" value="200" /> + <attribute id="Max HP" value="200" /> + <attribute id="Movement speed" value="2" /> <!-- average stroll- and track range--> </monster> @@ -68,15 +64,11 @@ exp<TAG>: Tells how much experience point a monster is giving up <drop item="9" percent="7"/> <exp>20</exp> <attributes - hp="20" size="8" - speed="6.0" - hit="10" - evade="10" - magical-evade="10" - physical-defence="5" - magical-defence="0" /> + <attribute id="HP" value="20" /> + <attribute id="Max HP" value="20" /> + <attribute id="Movement speed" value="6" /> <!-- doesn't move much, but attacks when you are comming too close. --> <behavior aggressive="true" @@ -101,17 +93,13 @@ exp<TAG>: Tells how much experience point a monster is giving up <drop item="9" percent="5.4"/> <exp>50</exp> <attributes - hp="20" size="8" - speed="6.0" - hit="30" - evade="30" - magical-evade="30" - physical-defence="5" - magical-defence="0" gender="female" /> - <attribute id="21" value="10" /> + <attribute id="HP" value="20" /> + <attribute id="Max HP" value="20" /> + <attribute id="Movement speed" value="6" /> + <attribute id="Monster attack speed" value="10" /> <ability id="2" /> </monster> @@ -127,15 +115,13 @@ exp<TAG>: Tells how much experience point a monster is giving up <drop item="9" percent="7.5"/> <exp>60</exp> <attributes - hp="200" size="4" - speed="1.0" - hit="100" - evade="10" - magical-evade="10" - physical-defence="0" - magical-defence="0" /> + <attribute id="HP" value="200" /> + <attribute id="Max HP" value="200" /> + <attribute id="Movement speed" value="1" /> + <attribute id="Monster attack speed" value="10" /> + <ability id="2" /> </monster> </monsters> diff --git a/example/settings.xml b/example/settings.xml index f4a46e9e..6f2516d5 100644 --- a/example/settings.xml +++ b/example/settings.xml @@ -1,8 +1,8 @@ <settings> <include file="paths.xml" /> + <include file="attributes.xml" /> <include file="abilities.xml" /> <include file="maps.xml" /> - <include file="attributes.xml" /> <include file="skills.xml" /> <include file="equip.xml" /> <include file="items.xml" /> |