1 | |
1 | |
2 | /* |
2 | /* |
3 | * static char *rcs_treasure_c = |
3 | * static char *rcs_treasure_c = |
4 | * "$Id: treasure.C,v 1.10 2006/09/03 22:45:55 root Exp $"; |
4 | * "$Id: treasure.C,v 1.11 2006/09/04 11:07:59 root Exp $"; |
5 | */ |
5 | */ |
6 | |
6 | |
7 | /* |
7 | /* |
8 | CrossFire, A Multiplayer game for X-windows |
8 | CrossFire, A Multiplayer game for X-windows |
9 | |
9 | |
… | |
… | |
1375 | art->chance = (uint16) value; |
1375 | art->chance = (uint16) value; |
1376 | else if (sscanf (cp, "difficulty %d", &value)) |
1376 | else if (sscanf (cp, "difficulty %d", &value)) |
1377 | art->difficulty = (uint8) value; |
1377 | art->difficulty = (uint8) value; |
1378 | else if (!strncmp (cp, "Object", 6)) |
1378 | else if (!strncmp (cp, "Object", 6)) |
1379 | { |
1379 | { |
1380 | art->item = (object *) calloc (1, sizeof (object)); |
1380 | art->item = get_object (); |
1381 | reset_object (art->item); |
|
|
1382 | |
1381 | |
1383 | if (!load_object (thawer, art->item, 0)) |
1382 | if (!load_object (thawer, art->item, 0)) |
1384 | LOG (llevError, "Init_Artifacts: Could not load object.\n"); |
1383 | LOG (llevError, "Init_Artifacts: Could not load object.\n"); |
1385 | |
1384 | |
1386 | art->item->name = strchr (cp, ' ') + 1; |
1385 | art->item->name = strchr (cp, ' ') + 1; |