mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-24 20:46:29 +01:00
Refactors the forceMove() drop.
Makes dropping a its proc instead, cleaning up forceMove() handling.
This commit is contained in:
@@ -50,6 +50,11 @@ var/list/holder_mob_icon_cache = list()
|
||||
continue
|
||||
M.forceMove(get_turf(src))
|
||||
|
||||
/obj/item/weapon/holder/onDropInto(var/atom/movable/AM)
|
||||
if(ismob(loc)) // Bypass our holding mob and drop directly to its loc
|
||||
return loc.loc
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/holder/GetID()
|
||||
for(var/mob/M in contents)
|
||||
var/obj/item/I = M.GetIdCard()
|
||||
|
||||
Reference in New Issue
Block a user