mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #7072 from Mechoid/BrokenGunExamine
Fix Broken Gun Examining
This commit is contained in:
@@ -24,15 +24,16 @@
|
|||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
/obj/item/weapon/broken_gun/examine(mob/user)
|
/obj/item/weapon/broken_gun/examine(mob/user)
|
||||||
..()
|
. = ..()
|
||||||
if(get_dist(get_turf(user),get_turf(src)) <= 1)
|
spawn()
|
||||||
to_chat(user, "<span class='notice'>You begin inspecting \the [src].</span>")
|
if(get_dist(get_turf(user),get_turf(src)) <= 1)
|
||||||
|
to_chat(user, "<span class='notice'>You begin inspecting \the [src].</span>")
|
||||||
|
|
||||||
if(do_after(user, 5 SECONDS))
|
if(do_after(user, 5 SECONDS))
|
||||||
to_chat(user, "<span class='notice'>\The [src] can possibly be restored with:</span>")
|
to_chat(user, "<span class='notice'>\The [src] can possibly be restored with:</span>")
|
||||||
for(var/resource in material_needs)
|
for(var/resource in material_needs)
|
||||||
if(material_needs[resource] > 0)
|
if(material_needs[resource] > 0)
|
||||||
to_chat(user, "<span class='notice'>- \icon [resource] x [material_needs[resource]] [resource]</span>")
|
to_chat(user, "<span class='notice'>- [bicon(resource)] x [material_needs[resource]] [resource]</span>")
|
||||||
|
|
||||||
/obj/item/weapon/broken_gun/proc/setup_gun(var/obj/item/weapon/gun/path)
|
/obj/item/weapon/broken_gun/proc/setup_gun(var/obj/item/weapon/gun/path)
|
||||||
if(ispath(path))
|
if(ispath(path))
|
||||||
|
|||||||
Reference in New Issue
Block a user