mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 03:26:31 +01:00
Merge pull request #13206 from JJRcop/i12121
Fixes camera taking pictures when you try to put them on a table
This commit is contained in:
@@ -416,7 +416,13 @@
|
||||
viewpichelper(Ainfo)
|
||||
|
||||
/obj/item/device/camera/afterattack(atom/target, mob/user, flag)
|
||||
if(!on || !pictures_left || ismob(target.loc)) return
|
||||
if(!on || !pictures_left || ismob(target.loc) || !isturf(target.loc))
|
||||
return
|
||||
if(user.Adjacent(target))
|
||||
var/list/bad_targets = list(/obj/structure, /obj/item/weapon/storage)
|
||||
if(is_type_in_list(target, bad_targets))
|
||||
return
|
||||
|
||||
captureimage(target, user, flag)
|
||||
|
||||
playsound(loc, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, 1, -3)
|
||||
|
||||
Reference in New Issue
Block a user