Skip to content

Commit

Permalink
Pick up mags fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xDanilcusx committed Sep 19, 2024
1 parent 473c512 commit f48085f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@
return ONGOING_ACTION_COMPLETED

if(is_type_in_list(to_pickup, brain.all_medical_items))
brain.tied_human.put_in_hands(to_pickup, TRUE)
brain.store_item(to_pickup, storage_spot)
return ONGOING_ACTION_COMPLETED

if(brain.primary_weapon && istype(to_pickup, /obj/item/ammo_magazine))
var/obj/item/ammo_magazine/mag = to_pickup
if(istype(brain.primary_weapon, mag.gun_type))
brain.tied_human.put_in_hands(to_pickup, TRUE)
brain.store_item(to_pickup, storage_spot)
return ONGOING_ACTION_COMPLETED

0 comments on commit f48085f

Please sign in to comment.