Fixes mob holders

Thanks for that "intended feature" upstream.

Fixes mob holders being non-transferable from the person holding them and insta-dumping the mob on the ground instead of functioning.
This commit is contained in:
Verkister
2023-04-14 17:51:13 +03:00
committed by GitHub
parent b8a9f86017
commit 4ed126a3e9

View File

@@ -1,8 +1,9 @@
/obj/item/weapon/holder/dropped(mob/user) /*/obj/item/weapon/holder/dropped(mob/user) //CHOMPRemoval. Fixes unwanted and broken upstream "feature" (bug)
if (held_mob?.loc != src || isturf(loc)) if (held_mob?.loc != src || isturf(loc))
var/held = held_mob var/held = held_mob
dump_mob() dump_mob()
held_mob = held held_mob = held
*/
/obj/item/weapon/holder/attack_hand(mob/living/user as mob) //straight up just copypasted from objects/items.dm with a few things changed (doesn't called dropped unless +actually dropped+) /obj/item/weapon/holder/attack_hand(mob/living/user as mob) //straight up just copypasted from objects/items.dm with a few things changed (doesn't called dropped unless +actually dropped+)
if (!user) return if (!user) return
@@ -56,4 +57,4 @@
If this is fine to you, ensure that the other player is fine with you doing things to them beforehand! If this is fine to you, ensure that the other player is fine with you doing things to them beforehand!
"},"OOC Warning") "},"OOC Warning")
//VORESTATION EDIT END. //VORESTATION EDIT END.
return return