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 (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * 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 |
9 | * the terms of the Affero GNU General Public License as published by the |
… | |
… | |
158 | |
158 | |
159 | /* This loads the experience table from the exp_table |
159 | /* This loads the experience table from the exp_table |
160 | * file. |
160 | * file. |
161 | */ |
161 | */ |
162 | void |
162 | void |
163 | init_experience () |
163 | reload_exp_table () |
164 | { |
164 | { |
165 | int lastlevel = 0; |
165 | int lastlevel = 0; |
166 | sint64 lastexp = -1; |
166 | sint64 lastexp = -1; |
167 | |
167 | |
168 | object_thawer thawer (settings.datadir, "exp_table"); |
168 | object_thawer thawer (settings.datadir, "exp_table"); |
169 | |
169 | |
170 | if (!thawer) |
170 | if (!thawer) |
171 | { |
171 | { |
172 | LOG (llevError, "unable to parse experience table file"); |
172 | LOG (llevError, "unable to load experience table file"); |
173 | return; |
173 | return; |
174 | } |
174 | } |
175 | |
175 | |
176 | if (thawer.kw != KW_max_level) |
176 | if (thawer.kw != KW_max_level) |
177 | { |
177 | { |