diff options
author | piernov <piernov@piernov.org> | 2016-05-08 13:44:08 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-08 13:44:08 +0200 |
commit | 2de30b863b6f78c10a1fed54d229dabea7383b97 (patch) | |
tree | dcf6cf9077234d5130d5339663594442602a8dea /inc/Item.inc | |
parent | f52c46918efa0725affc490fd325977516be1870 (diff) | |
parent | 14ee8b1962fe3ce332e0de5fb96ae3f342187f94 (diff) | |
download | candybox-2de30b863b6f78c10a1fed54d229dabea7383b97.tar.gz candybox-2de30b863b6f78c10a1fed54d229dabea7383b97.tar.bz2 candybox-2de30b863b6f78c10a1fed54d229dabea7383b97.tar.xz candybox-2de30b863b6f78c10a1fed54d229dabea7383b97.zip |
Merge branch 'feat/savegame' into piernov
Diffstat (limited to 'inc/Item.inc')
-rw-r--r-- | inc/Item.inc | 3 |
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) { |