mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 11:05:16 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user