mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 03:55:11 +01:00
You can now blow open secure storage containers such as digital safes, locked briefcases, etc.
This commit is contained in:
@@ -69,10 +69,16 @@
|
||||
/obj/item/weapon/c4/afterattack(atom/movable/AM, mob/user, flag)
|
||||
if (!flag)
|
||||
return
|
||||
if (ismob(AM) || istype(AM, /obj/item/weapon/storage/))
|
||||
if (ismob(AM))
|
||||
return
|
||||
if(loc == AM)
|
||||
return
|
||||
if((istype(AM, /obj/item/weapon/storage/)) && (!istype(AM, /obj/item/weapon/storage/secure))) //secure storage is a special case handled below.
|
||||
return
|
||||
if(istype(AM,/obj/item/weapon/storage/secure))
|
||||
var/obj/item/weapon/storage/secure/S = AM
|
||||
if(!S.locked)
|
||||
return
|
||||
|
||||
user << "<span class='notice'>You start planting the bomb...</span>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user