summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tags.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-18 18:58:52 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-18 18:58:52 +0000
commit6d7627cb65e54dae22237da82ea076bf17b1f9b7 (patch)
tree43eda0c3c953b041e1419650cc78a6ae9c381374 /crawl-ref/source/tags.cc
parent66c0054398335a6929dd22d3690775027b9906b6 (diff)
downloadcrawl-ref-6d7627cb65e54dae22237da82ea076bf17b1f9b7.tar.gz
crawl-ref-6d7627cb65e54dae22237da82ea076bf17b1f9b7.zip
Add the Slime god as per n78291's (Shayne?) patch. Thanks! :D
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10271 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tags.cc')
-rw-r--r--crawl-ref/source/tags.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 7c804299b6..1ec80784d6 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -826,6 +826,7 @@ static void tag_construct_you(writer &th)
marshallString(th, you.your_name, 30);
marshallByte(th, you.religion);
+ marshallString(th, you.second_god_name);
marshallByte(th, you.piety);
marshallByte(th, you.rotting);
marshallByte(th, you.symbol);
@@ -867,6 +868,7 @@ static void tag_construct_you(writer &th)
marshallByte(th, you.strength);
marshallByte(th, you.intel);
marshallByte(th, you.dex);
+ marshallByte(th, you.last_chosen);
marshallByte(th, you.hit_points_regeneration);
marshallByte(th, you.magic_points_regeneration);
@@ -1236,6 +1238,10 @@ static void tag_read_you(reader &th, char minorVersion)
unmarshallCString(th, you.your_name, 30);
you.religion = static_cast<god_type>(unmarshallByte(th));
+
+ if (minorVersion >= TAG_MINOR_JIYVA)
+ you.second_god_name = unmarshallString(th);
+
you.piety = unmarshallByte(th);
you.rotting = unmarshallByte(th);
you.symbol = unmarshallByte(th);
@@ -1282,6 +1288,10 @@ static void tag_read_you(reader &th, char minorVersion)
you.strength = unmarshallByte(th);
you.intel = unmarshallByte(th);
you.dex = unmarshallByte(th);
+
+ if (minorVersion >= TAG_MINOR_JIYVA)
+ you.last_chosen = (stat_type) unmarshallByte(th);
+
you.hit_points_regeneration = unmarshallByte(th);
you.magic_points_regeneration = unmarshallByte(th);