Sundry Runtime Fixes - March (#5047)

* Fixes Runtime in tools.dm,239: undefined variable /mob/living/simple_animal/retaliate/solargrub/var/handcuffed

* Add logging to help identify the cause of runtime in examining zshadow mobs.

* Fix Runtime in buckling.dm,165: Cannot execute null.forceMove().

* Fixes  Runtime in robot_items.dm,31: Cannot read null.origin_tech

* Fixes Runtime in paper_bundle.dm,183: Cannot read null.loc
This commit is contained in:
Leshana
2018-03-13 00:13:19 -05:00
committed by Anewbe
parent cc80fddfe1
commit 57ed0f6e9e
6 changed files with 13 additions and 7 deletions
+4 -4
View File
@@ -164,7 +164,7 @@
usr.put_in_hands(W)
pages.Remove(pages[page])
usr << "<span class='notice'>You remove the [W.name] from the bundle.</span>"
to_chat(usr, "<span class='notice'>You remove the [W.name] from the bundle.</span>")
if(pages.len <= 1)
var/obj/item/weapon/paper/P = src[1]
@@ -178,11 +178,11 @@
page = pages.len
update_icon()
else
usr << "<span class='notice'>You need to hold it in hands!</span>"
if (src.loc && istype(src.loc, /mob) ||istype(src.loc.loc, /mob))
src.attack_self(usr)
updateUsrDialog()
else
to_chat(usr, "<span class='notice'>You need to hold it in hands!</span>")
/obj/item/weapon/paper_bundle/verb/rename()
set name = "Rename bundle"