diff options
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r-- | crawl-ref/source/mapdef.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc index c80f243d60..a4e6c6c777 100644 --- a/crawl-ref/source/mapdef.cc +++ b/crawl-ref/source/mapdef.cc @@ -1181,7 +1181,7 @@ void map_def::write_index(FILE *outf) const writeLong(outf, chance); writeLong(outf, cache_offset); writeString(outf, tags); - writeString(outf, place); + place.save(outf); write_depth_ranges(outf); prelude.write(outf); } @@ -1193,7 +1193,7 @@ void map_def::read_index(FILE *inf) chance = readLong(inf); cache_offset = readLong(inf); tags = readString(inf); - place = readString(inf); + place.load(inf); read_depth_ranges(inf); prelude.read(inf); index_only = true; @@ -2114,6 +2114,12 @@ item_spec item_list::parse_single_spec(std::string s) result.level = ISPEC_SUPERB; return (result); } + else if (s == "$" || s == "gold") + { + result.base_type = OBJ_GOLD; + result.sub_type = OBJ_RANDOM; + return (result); + } if (s == "nothing") { |