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

Comparing deliantra/server/common/treasure.C (file contents):
Revision 1.107 by root, Sun Apr 25 07:08:57 2010 UTC vs.
Revision 1.108 by root, Wed Apr 28 19:49:50 2010 UTC

1169 */ 1169 */
1170void 1170void
1171init_artifacts () 1171init_artifacts ()
1172{ 1172{
1173 static int has_been_inited = 0; 1173 static int has_been_inited = 0;
1174 char filename[MAX_BUF];
1175 artifact *art = NULL; 1174 artifact *art = NULL;
1176 artifactlist *al; 1175 artifactlist *al;
1177 1176
1178 if (has_been_inited) 1177 if (has_been_inited)
1179 return; 1178 return;
1180 else 1179 else
1181 has_been_inited = 1; 1180 has_been_inited = 1;
1182 1181
1183 sprintf (filename, "%s/artifacts", settings.datadir); 1182 object_thawer f (settings.datadir, "artifacts");
1184 object_thawer f (filename);
1185 1183
1186 if (!f) 1184 if (!f)
1187 return; 1185 return;
1188 1186
1189 for (;;) 1187 for (;;)
1274 } 1272 }
1275#if 0 1273#if 0
1276 LOG (llevDebug, "Artifact list type %d has %d total chance\n", al->type, al->total_chance); 1274 LOG (llevDebug, "Artifact list type %d has %d total chance\n", al->type, al->total_chance);
1277#endif 1275#endif
1278 } 1276 }
1279
1280 LOG (llevDebug, "done.\n");
1281} 1277}
1282 1278
1283/* 1279/*
1284 * Used in artifact generation. The bonuses of the first object 1280 * Used in artifact generation. The bonuses of the first object
1285 * is modified by the bonuses of the second object. 1281 * is modified by the bonuses of the second object.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines