… | |
… | |
312 | MTH void close_container () |
312 | MTH void close_container () |
313 | { |
313 | { |
314 | open_container (0); |
314 | open_container (0); |
315 | } |
315 | } |
316 | |
316 | |
|
|
317 | MTH object *force_find (const shstr name); |
|
|
318 | MTH void force_add (const shstr name, int duration = 0); |
|
|
319 | |
317 | // overwrite the attachable should_invoke function with a version that also checks ev_want_type |
320 | // overwrite the attachable should_invoke function with a version that also checks ev_want_type |
318 | bool should_invoke (event_type event) |
321 | bool should_invoke (event_type event) |
319 | { |
322 | { |
320 | return ev_want_event [event] || ev_want_type [type] || cb; |
323 | return ev_want_event [event] || ev_want_type [type] || cb; |
321 | } |
324 | } |
… | |
… | |
420 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
423 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
421 | |
424 | |
422 | // insert object at same map position as 'where' |
425 | // insert object at same map position as 'where' |
423 | // handles both inventory and map "positions" |
426 | // handles both inventory and map "positions" |
424 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
427 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
|
|
428 | MTH void drop_unpaid_items (); |
425 | |
429 | |
426 | MTH void activate (); |
430 | MTH void activate (); |
427 | MTH void deactivate (); |
431 | MTH void deactivate (); |
428 | MTH void activate_recursive (); |
432 | MTH void activate_recursive (); |
429 | MTH void deactivate_recursive (); |
433 | MTH void deactivate_recursive (); |