ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/treasure.h
(Generate patch)

Comparing deliantra/server/include/treasure.h (file contents):
Revision 1.32 by root, Mon Oct 29 23:55:54 2012 UTC vs.
Revision 1.36 by root, Wed Dec 5 19:03:27 2018 UTC

1/* 1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG. 2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 * 3 *
4 * Copyright (©) 2017,2018 Marc Alexander Lehmann / the Deliantra team
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team 5 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team 6 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen 7 * Copyright (©) 1992 Frank Tore Johansen
7 * 8 *
8 * Deliantra is free software: you can redistribute it and/or modify it under 9 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the 10 * the terms of the Affero GNU General Public License as published by the
57/* when a treasure got cloned from archlist, we want perhaps change some default 58/* when a treasure got cloned from archlist, we want perhaps change some default
58 * values. All values in this structure will override the default arch. 59 * values. All values in this structure will override the default arch.
59 * TODO: It is a bad way to implement this with a special structure. 60 * TODO: It is a bad way to implement this with a special structure.
60 * Because the real arch list is a at runtime not changed, we can grap for example 61 * Because the real arch list is a at runtime not changed, we can grap for example
61 * here a clone of the arch, store it in the treasure list and then run the original 62 * here a clone of the arch, store it in the treasure list and then run the original
62 * arch parser over this clone, using the treasure list as script until an END comes. 63 * arch parser over this clone, using the treasure list as script until an END comes.
63 * This will allow ANY changes which is possible and we use ony one parser. 64 * This will allow ANY changes which is possible and we use ony one parser.
64 */ 65 */
65 66
66typedef struct _change_arch 67typedef struct _change_arch
67{ 68{
119}; 120};
120 121
121inline void 122inline void
122object_freezer::put (const keyword_string k, treasurelist *v) 123object_freezer::put (const keyword_string k, treasurelist *v)
123{ 124{
124 if (expect_true (v)) 125 if (ecb_expect_true (v))
125 put (k, v->name); 126 put (k, v->name);
126 else 127 else
127 put (k); 128 put (k);
128} 129}
129 130

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines