mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 06:40:08 +01:00
[MIRROR] Finish Machinery new to init (#10439)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
23d8f3fc97
commit
c844cc3dee
@@ -31,17 +31,17 @@
|
||||
/obj/item/laser_pointer/purple
|
||||
pointer_icon_state = "purple_laser"
|
||||
|
||||
/obj/item/laser_pointer/New()
|
||||
..()
|
||||
diode = new(src)
|
||||
/obj/item/laser_pointer/Initialize(mapload, var/laser_path)
|
||||
. = ..()
|
||||
if(ispath(laser_path))
|
||||
diode = new laser_path
|
||||
else
|
||||
diode = new(src)
|
||||
if(!pointer_icon_state)
|
||||
pointer_icon_state = pick("red_laser","green_laser","blue_laser","purple_laser")
|
||||
|
||||
/obj/item/laser_pointer/upgraded/New()
|
||||
..()
|
||||
diode = new /obj/item/stock_parts/micro_laser/ultra
|
||||
|
||||
|
||||
/obj/item/laser_pointer/upgraded/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/stock_parts/micro_laser/ultra)
|
||||
|
||||
/obj/item/laser_pointer/attack(mob/living/M, mob/user)
|
||||
laser_act(M, user)
|
||||
|
||||
Reference in New Issue
Block a user