Merge remote-tracking branch 'remotes/origin/master' into TimePath/itemsys
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / pickup.qc
1 #include "pickup.qh"
2
3 #ifdef SVQC
4 bool ITEM_HANDLE(Pickup, entity this, entity item, entity player) {
5     bool b = this.giveTo(this, item, player);
6     if (b) {
7         dprintf("entity %i picked up %s\n", player, this.m_name);
8         player.inventory.inv_items[this.m_id]++;
9         Inventory_update(player);
10     }
11     return b;
12 }
13 #endif