mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 03:55:05 +01:00
Resolves edge case with defile and knock
This commit is contained in:
@@ -28,18 +28,19 @@
|
||||
/obj/structure/closet/crate/can_close()
|
||||
return TRUE
|
||||
|
||||
/obj/structure/closet/crate/open()
|
||||
/obj/structure/closet/crate/open(irregular_open = FALSE)
|
||||
if(src.opened)
|
||||
return FALSE
|
||||
if(!src.can_open())
|
||||
return FALSE
|
||||
|
||||
for(var/obj/O in src)
|
||||
if(O.density)
|
||||
var/response = alert(usr, "This crate has been packed with bluespace compression, an item inside won't fit back inside. Are you sure you want to open it?","Bluespace Compression Warning", "No", "Yes")
|
||||
if(response == "No")
|
||||
return FALSE
|
||||
break
|
||||
if(!irregular_open)
|
||||
for(var/obj/O in src)
|
||||
if(O.density)
|
||||
var/response = alert(usr, "This crate has been packed with bluespace compression, an item inside won't fit back inside. Are you sure you want to open it?","Bluespace Compression Warning", "No", "Yes")
|
||||
if(response == "No")
|
||||
return FALSE
|
||||
break
|
||||
|
||||
if(rigged && locate(/obj/item/radio/electropack) in src)
|
||||
if(isliving(usr))
|
||||
|
||||
Reference in New Issue
Block a user