aboutsummaryrefslogtreecommitdiffstats
path: root/inc/Item.inc
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-08 13:41:42 +0200
committerpiernov <piernov@piernov.org>2016-05-08 13:41:42 +0200
commit02c2b49b4a85704d7c16a91e55d24d5af64808ee (patch)
treee62455ef9a3b2b9ae10f4c12d51a69a728feea19 /inc/Item.inc
parentf5f13ebb900746c942d339149a838b6c8ef0586d (diff)
downloadcandybox-02c2b49b4a85704d7c16a91e55d24d5af64808ee.tar.gz
candybox-02c2b49b4a85704d7c16a91e55d24d5af64808ee.tar.bz2
candybox-02c2b49b4a85704d7c16a91e55d24d5af64808ee.tar.xz
candybox-02c2b49b4a85704d7c16a91e55d24d5af64808ee.zip
Add multiple item support to savegame + fix missing includes
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) {