mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 08:03:43 +01:00
Merge pull request #3798 from TheDZD/nodrop
Refactors NODROP Check in Rechargers
This commit is contained in:
@@ -17,9 +17,10 @@
|
||||
if(istype(user,/mob/living/silicon))
|
||||
return
|
||||
|
||||
if(G.flags & NODROP)
|
||||
user << "<span class='notice'>you can drop it to charge it!</span>"
|
||||
if(!user.canUnEquip(G, 0))
|
||||
user << "<span class='warning'>[G] is stuck to your hand, you can't put it in [src]!</span>"
|
||||
return
|
||||
|
||||
if(istype(G, /obj/item/weapon/gun/energy) || istype(G, /obj/item/weapon/melee/baton) || istype(G,/obj/item/device/laptop) || istype(G, /obj/item/weapon/rcs))
|
||||
if(charging)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user