Adds TG-style floor tile swapping

Hold the tool for pulling a floor tile in your offhand and use a stack of floor tiles (ie, carpet) on the target floor.

This respects the different tools and their effects. Replacing wooden tiles should be done with a screwdriver, not a crowbar.
This commit is contained in:
Nerezza
2018-02-24 13:59:51 -06:00
parent d92fb517cd
commit 1f7054b6d0
2 changed files with 56 additions and 31 deletions
@@ -256,3 +256,9 @@
/mob/living/silicon/robot/put_in_hands(var/obj/item/W) // No hands.
W.loc = get_turf(src)
return 1
/mob/living/silicon/robot/is_holding_item_of_type(typepath)
for(var/obj/item/I in list(module_state_1, module_state_2, module_state_3))
if(istype(I, typepath))
return I
return FALSE