Stops drone held tools from being force moved (#87037)

## About The Pull Request
- Fixes #86989

The component `/datum/component/holderloving` doesn't help with this
case. This is because camera assemblies uses
`temporarilyRemoveItemFromInventory()` which does not trigger a force
move so this component does nothing.

`temporarilyRemoveItemFromInventory()` does however check for trait
`TRAIT_NODROP` which we add to our drone tools to stop it from being
force moved


## Changelog
🆑
fix: tools from the drone toolbox cannot be forcefully removed in
certain situations e.g. when using the drone gas analyser to upgrade the
camera assembly
/🆑
This commit is contained in:
SyncIt21
2024-10-06 10:12:00 +05:30
committed by GitHub
parent 43e9816bf9
commit 094f795844
@@ -41,8 +41,10 @@
builtintools += new /obj/item/t_scanner/drone(src)
builtintools += new /obj/item/analyzer/drone(src)
builtintools += new /obj/item/soap/drone(src)
for(var/obj/item/tool as anything in builtintools)
tool.AddComponent(/datum/component/holderloving, src, TRUE)
ADD_TRAIT(tool, TRAIT_NODROP, REF(src))
/obj/item/crowbar/drone