diff options
author | alexichi <alexbankai96@gmail.com> | 2016-04-27 12:59:51 +0200 |
---|---|---|
committer | alexichi <alexbankai96@gmail.com> | 2016-04-27 12:59:51 +0200 |
commit | 349c6fe7ecf10e5929dc27c2446853f0fe416077 (patch) | |
tree | ccb968ac0c1b507f0b88b42d42b47866c893b225 /data | |
parent | 8140617aeb2f32f7095a443ca743c6d6915739c6 (diff) | |
download | candybox-349c6fe7ecf10e5929dc27c2446853f0fe416077.tar.gz candybox-349c6fe7ecf10e5929dc27c2446853f0fe416077.tar.bz2 candybox-349c6fe7ecf10e5929dc27c2446853f0fe416077.tar.xz candybox-349c6fe7ecf10e5929dc27c2446853f0fe416077.zip |
add loadShop() and categories in the xml file and modify the presentation of the items in the shop
Diffstat (limited to 'data')
-rw-r--r-- | data/items.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/data/items.xml b/data/items.xml new file mode 100644 index 0000000..528d37a --- /dev/null +++ b/data/items.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<items cost="3"> + <category name="Swords"> + <item> + <name>Wooden Sword</name> + <cost>50</cost> + <features> + <power>10</power> + </features> + <icon>⚔</icon> + <description>A sword that beginners need to use to improve their skills</description> + </item> + <item> + <name>Metal Sword</name> + <cost>200</cost> + <features> + <power>30</power> + </features> + <icon>⚔</icon> + <description>A sword which are often use buy skilled knight. The material is very good and the sword is very powerful</description> + </item> + </category> + <category name="Potions"> + <item> + <name>Life Bottle</name> + <cost>100</cost> + <features></features> + <icon>🍶</icon> + <description>A bottle which can heal you by regaining hp</description> + </item> + <item> + <name>Strength Bottle</name> + <cost>250</cost> + <features> + <power>20</power> + </features> + <icon>🍶</icon> + <description>If used, you have 20% more chance to hit your enemy during the battle</description> + </item> + </category> +</items> |