mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-26 21:49:11 +01:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user