Skip to content

Commit

Permalink
hcases QoL and bugfix (#8472)
Browse files Browse the repository at this point in the history
* hcases QoL and bugfix

* Update hardcases.dm

* Update code/game/objects/items/weapons/storage/hardcases.dm

---------

Co-authored-by: TheShown911 <61743710+TheShown911@users.noreply.github.com>
  • Loading branch information
Hopekz and TheShown911 authored Apr 19, 2024
1 parent e2f39a3 commit f8532cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/game/objects/items/weapons/storage/hardcases.dm
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
open_close(user)

/obj/item/storage/hcases/AltClick(mob/user)
if(user.incapacitated())
to_chat(user, SPAN_WARNING("You can't do that right now!"))
return
if(!in_range(src, user))
return

var/able = can_interact(user)

Expand All @@ -92,6 +97,7 @@
to_chat(user, SPAN_NOTICE("You open the lid of the [src]."))
w_class = ITEM_SIZE_BULKY
closed = FALSE
open(user)
else
to_chat(user, SPAN_NOTICE("You close the lid of the [src]."))
w_class = ITEM_SIZE_NORMAL
Expand Down

0 comments on commit f8532cc

Please sign in to comment.