… | |
… | |
32 | |
32 | |
33 | //#define TREASURE_VERBOSE |
33 | //#define TREASURE_VERBOSE |
34 | |
34 | |
35 | #include <global.h> |
35 | #include <global.h> |
36 | #include <treasure.h> |
36 | #include <treasure.h> |
37 | #include <funcpoint.h> |
|
|
38 | #include <loader.h> |
37 | #include <loader.h> |
39 | |
38 | |
40 | extern char *spell_mapping[]; |
39 | extern char *spell_mapping[]; |
41 | |
40 | |
42 | static treasurelist *first_treasurelist; |
41 | static treasurelist *first_treasurelist; |
… | |
… | |
270 | { |
269 | { |
271 | op = creator->insert (op); |
270 | op = creator->insert (op); |
272 | |
271 | |
273 | if ((flags & GT_APPLY) && QUERY_FLAG (creator, FLAG_MONSTER)) |
272 | if ((flags & GT_APPLY) && QUERY_FLAG (creator, FLAG_MONSTER)) |
274 | monster_check_apply (creator, op); |
273 | monster_check_apply (creator, op); |
275 | |
|
|
276 | if (flags & GT_UPDATE_INV) |
|
|
277 | if (object *tmp = creator->in_player ()) |
|
|
278 | esrv_send_item (tmp, op); |
|
|
279 | } |
274 | } |
280 | } |
275 | } |
281 | |
276 | |
282 | /* if there are change_xxx commands in the treasure, we include the changes |
277 | /* if there are change_xxx commands in the treasure, we include the changes |
283 | * in the generated object |
278 | * in the generated object |