% import random % rebase('frame.tpl')
Items - drops, drop table, floor items, base items, inventory items, move to pick up item, shift-move-to-pick-up-item, item spawner, item in container, item inspect, item use, dropping from inv
Items can only be picked up by the player. They can be picked up via item targeting or through selecting 'pick up' on the inspect menu.
Item pickup is triggered when a floor item is targeted, that is, a 'target' (left-click) triggers a $Item/Body/Sprite/Sprite.gd/_on_input_event. If 'no_move_to_target' (shift) is held while targeting, the item will be targeted without pickup. Otherwise, floor_item.gd/target_event(viewport,event,shape_idx) is called to set the target and handle the input before prompting the player to consider pickup.
Item pickup is also an option on items' inspect menu.
character.gd/consider_pickup(item) points to UserControl.gd/pickup(item) then checks distance.
If the item is outside the player's intimate space,