… | |
… | |
663 | // objects. This method only works on objects not inserted |
663 | // objects. This method only works on objects not inserted |
664 | // anywhere. |
664 | // anywhere. |
665 | MTH void expand_tail (); |
665 | MTH void expand_tail (); |
666 | |
666 | |
667 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
667 | MTH void create_treasure (treasurelist *tl, int flags = 0); |
|
|
668 | |
|
|
669 | // makes sure the player has the named skill, |
|
|
670 | // and also makes it innate if can_use is true. |
|
|
671 | // returns the new skill or 0 if no such skill exists. |
|
|
672 | MTH object *give_skill (shstr_cmp name, bool can_use = false); |
668 | |
673 | |
669 | // insert object at same map position as 'where' |
674 | // insert object at same map position as 'where' |
670 | // handles both inventory and map "positions" |
675 | // handles both inventory and map "positions" |
671 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
676 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
672 | // check whether we can put this into the map, respect max_nrof, max_volume, max_items |
677 | // check whether we can put this into the map, respect max_nrof, max_volume, max_items |