aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Item.inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-08 13:44:29 +0200
committerpiernov <piernov@piernov.org>2016-05-08 13:44:29 +0200
commit90e9e78500e09447cc3c26d129348eb3f0d2433d (patch)
treeae732ae51a8f7d1fab6f611b3a7e8ec287c3fae8 /inc/Item.inc
parent3795b462a30a1942f5ebac3105e72824acbd1a87 (diff)
parent2de30b863b6f78c10a1fed54d229dabea7383b97 (diff)
downloadcandybox-90e9e78500e09447cc3c26d129348eb3f0d2433d.tar.gz
candybox-90e9e78500e09447cc3c26d129348eb3f0d2433d.tar.bz2
candybox-90e9e78500e09447cc3c26d129348eb3f0d2433d.tar.xz
candybox-90e9e78500e09447cc3c26d129348eb3f0d2433d.zip
Merge branch 'piernov' into alexichi
Diffstat (limited to 'inc/Item.inc')
-rw-r--r--inc/Item.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/Item.inc b/inc/Item.inc
index 8e90998..907872e 100644
--- a/inc/Item.inc
+++ b/inc/Item.inc
@@ -13,12 +13,13 @@ class Item {
$this->desc = $desc;
}
- function addToXML($root) {
+ function addToXML($root, $count) {
$item = $root->addChild("item");
$item->addChild("name", $this->name);
$item->addChild("cost", $this->cost);
$item->addChild("icon", $this->icon);
$item->addChild("desc", $this->desc);
+ $item->addChild("count", $count);
}
public static function fromXML($xml) {