mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Added multiple string search to security records, fixed some evidence bag bugginess, fixed problem with the stamp remover.
This commit is contained in:
@@ -122,7 +122,8 @@ CLIPBOARDS
|
||||
if(istype(P, /obj/item/weapon/stamp))
|
||||
if ((!in_range(src, usr) && src.loc != user && !( istype(src.loc, /obj/item/weapon/clipboard) ) && src.loc.loc != user && user.equipped() != P))
|
||||
return
|
||||
src.infoold = src.info
|
||||
if(!src.infoold)
|
||||
src.infoold = src.info
|
||||
src.info += text("<BR><i>This paper has been stamped with the [].</i><BR>", P.name)
|
||||
switch(P.type)
|
||||
if(/obj/item/weapon/stamp/captain)
|
||||
@@ -153,6 +154,7 @@ CLIPBOARDS
|
||||
if ((!in_range(src, usr) && src.loc != user && !( istype(src.loc, /obj/item/weapon/clipboard) ) && src.loc.loc != user && user.equipped() != P))
|
||||
return
|
||||
src.info = src.infoold
|
||||
src.infoold = null
|
||||
for(var/i, i <= stamped.len, i++)
|
||||
switch(stamped[i])
|
||||
if(/obj/item/weapon/stamp/captain)
|
||||
|
||||
@@ -61,6 +61,8 @@
|
||||
/obj/item/clothing/suit/storage/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(W.w_class > 2 || src.loc == W )
|
||||
return
|
||||
if(istype(W,/obj/item/weapon/evidencebag) && src.loc != user)
|
||||
return
|
||||
if(src.contents.len >= 2)
|
||||
user << "You have nowhere to place that"
|
||||
return
|
||||
|
||||
@@ -102,6 +102,9 @@
|
||||
user << "\blue You're a robot. No."
|
||||
return //Robots can't interact with storage items.
|
||||
|
||||
if(istype(W,/obj/item/weapon/evidencebag) && src.loc != user)
|
||||
return
|
||||
|
||||
if(src.loc == W)
|
||||
return //Means the item is already in the storage item
|
||||
|
||||
|
||||
Reference in New Issue
Block a user