Fixes #6504

Fixes #6508

Modular guns can now be used for turret construction

bugfixes were seperated from: #6505
This commit is contained in:
Mykhailo Bykhovtsev
2019-07-05 09:17:54 +03:00
committed by Erki
parent 706164bd60
commit df4ccdd7b4
4 changed files with 50 additions and 8 deletions
@@ -301,7 +301,7 @@
break
user.visible_message("<span class='notice'>[user] attached [src] onto [newtarget] and flicks it on. The magnetic lock now seals [newtarget].</span>", "<span class='notice'>You attached [src] onto [newtarget] and switched on the magnetic lock.</span>")
user.drop_item() //TODO: Look into this
user.drop_from_inventory(src, src.loc)
forceMove(get_step(newtarget.loc, reverse_direction(direction)))
set_dir(reverse_direction(direction))