From The Mana World
Items.xml
We use a series of includes in order to reduce the eventual overhead on any updates to files or item data. All this data comforms to methods more detailed at Manaplus's Items.xml Page
items.xml
<?xml version="1.0"?> <items> <include name="items/hairsprite/_include.xml"/> <include name="items/racesprite/_include.xml"/> <include name="items/misc/_include.xml"/> <include name="items/usable/_include.xml"/> <include name="items/generic/_include.xml"/> <include name="items/equip-head/_include.xml"/> <include name="items/equip-1hand/_include.xml"/> <include name="items/equip-torso/_include.xml"/> <include name="items/equip-feet/_include.xml"/> <include name="items/equip-ammo/_include.xml"/> <include name="items/equip-2hand/_include.xml"/> <include name="items/equip-arms/_include.xml"/> <include name="items/equip-legs/_include.xml"/> <include name="items/equip-shield/_include.xml"/> <include name="items/equip-charm/_include.xml"/> <include name="items/equip-ring/_include.xml"/> </items>
items/equip-1hand/_include.xml
<?xml version="1.0"?> <items> <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"> <its:translateRule selector="//item/@name" translate="yes"/> <its:translateRule selector="//item/@description" translate="yes"/> <its:translateRule selector="//item/@effect" translate="yes"/> <its:translateRule selector="//*" translate="no"/> </its:rules> <include name="items/equip-1hand/item521_Dagger.xml"/> <include name="items/equip-1hand/item522_SharpKnife.xml"/> <include name="items/equip-1hand/item536_ShortSword.xml"/> <include name="items/equip-1hand/item549_Axe.xml"/> <include name="items/equip-1hand/item570_BoneKnife.xml"/> <include name="items/equip-1hand/item571_Setzer.xml"/> <include name="items/equip-1hand/item579_RockKnife.xml"/> <include name="items/equip-1hand/item587_Sword.xml"/> <include name="items/equip-1hand/item591_LongSword.xml"/> <include name="items/equip-1hand/item599_FireSword.xml"/> <include name="items/equip-1hand/item867_IceGladius.xml"/> <include name="items/equip-1hand/item1171_Wand.xml"/> <include name="items/equip-1hand/item1201_Knife.xml"/> <include name="items/equip-1hand/item1215_ToySabre.xml"/> </items>
items/equip-1hand/item1201_Knife.xml
<?xml version="1.0"?> <items> <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0"> <its:translateRule selector="//item/@name" translate="yes"/> <its:translateRule selector="//item/@description" translate="yes"/> <its:translateRule selector="//item/@effect" translate="yes"/> <its:translateRule selector="//*" translate="no"/> </its:rules> <item id="1201" image="equipment/weapon/dagger-knive.png" name="Knife" description="A small knife; the perfect weapon for a beginner." effect="Damage +5" type="equip-1hand" weight="120" attack-action="attack" attack-range="2"> <sprite gender="male">equipment/weapons/dagger-male.xml|#48488c,48488e,48488f,695c21,5f5fbe,827229,6e6edb,9493a4,a4adff,bab8c2,bcbbc6,e3eaff</sprite> <sprite gender="female">equipment/weapons/dagger-female.xml|#48488c,48488e,48488f,695c21,5f5fbe,827229,6e6edb,9493a4,a4adff,bab8c2,bcbbc6,e3eaff</sprite> </item> </items>