… | |
… | |
311 | MTH void open_container (object *new_container); |
311 | MTH void open_container (object *new_container); |
312 | MTH void close_container () |
312 | MTH void close_container () |
313 | { |
313 | { |
314 | open_container (0); |
314 | open_container (0); |
315 | } |
315 | } |
|
|
316 | |
|
|
317 | MTH object *force_find (const shstr name); |
|
|
318 | MTH void force_add (const shstr name, int duration = 0); |
316 | |
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; |