mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 21:40:55 +01:00
Fixes Examine Crashes (#17430)
* Fixes Examine Crashes * fukken indentations
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
needspin = FALSE
|
||||
|
||||
/obj/item/gun/energy/plasmacutter/examine(mob/user, distance, is_adjacent)
|
||||
..()
|
||||
. = ..()
|
||||
if(is_adjacent)
|
||||
if(power_supply)
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("It has a <b>[capitalize_first_letters(power_supply.name)]</b> installed as its power supply.")))
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
var/list/rockets = new/list()
|
||||
|
||||
/obj/item/gun/launcher/rocket/examine(mob/user, distance, is_adjacent)
|
||||
if(distance > 2)
|
||||
return
|
||||
to_chat(user, "<span class='notice'>[rockets.len] / [max_rockets] rockets.</span>")
|
||||
. = ..()
|
||||
if(is_adjacent)
|
||||
to_chat(user, "<span class='notice'>[rockets.len] / [max_rockets] rockets.</span>")
|
||||
|
||||
/obj/item/gun/launcher/rocket/attackby(obj/item/I as obj, mob/user as mob)
|
||||
if(istype(I, /obj/item/ammo_casing/rocket))
|
||||
|
||||
Reference in New Issue
Block a user