OSDN Git Service

Add Ability.xml.
authorDeskull <desull@users.sourceforge.jp>
Tue, 10 Jun 2014 11:19:04 +0000 (20:19 +0900)
committerDeskull <desull@users.sourceforge.jp>
Tue, 10 Jun 2014 11:19:04 +0000 (20:19 +0900)
Deeangband/GameWorld.cpp
lib-Vanilla/Ability.xml [new file with mode: 0644]

index 6ab1af8..5bb1902 100644 (file)
@@ -17,6 +17,7 @@ namespace Deeangband
        {
                Dice::Initialize();
                XMLLoad();
+               abilityList.emplace("DAMMY", boost::make_shared<Ability>());
                floorList.emplace(0, boost::make_shared<Floor>(dungeonList.find("VANILLA_WOMB"), 1));
                creatureList.emplace(0, boost::make_shared<Creature>(speciesList.find("VANILLA_STIGMATIC")));
 
@@ -219,6 +220,7 @@ namespace Deeangband
 
        bool GameWorld::XMLSave(void)
        {
+               this->xmlSaveAbility();
                this->xmlSaveAuthority();
                this->xmlSaveBuilding();
                this->xmlSaveCamp();
diff --git a/lib-Vanilla/Ability.xml b/lib-Vanilla/Ability.xml
new file mode 100644 (file)
index 0000000..723aa8c
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
+<!DOCTYPE boost_serialization>
+<boost_serialization signature="serialization::archive" version="10">
+<Abilities class_id="0" tracking_level="0" version="0">
+       <count>1</count>
+       <item_version>0</item_version>
+       <item class_id="1" tracking_level="0" version="0">
+               <first>DAMMY</first>
+               <second class_id="2" tracking_level="0" version="1">
+                       <px class_id="3" tracking_level="1" version="10" object_id="_0">
+                               <Name></Name>
+                               <Description></Description>
+                       </px>
+               </second>
+       </item>
+</Abilities>