mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
new->init refactor
This commit is contained in:
@@ -26,8 +26,7 @@
|
||||
tool_qualities = list(TOOL_WIRECUTTER)
|
||||
var/random_color = TRUE
|
||||
|
||||
<<<<<<< HEAD
|
||||
/obj/item/weapon/tool/wirecutters/New()
|
||||
/obj/item/weapon/tool/wirecutters/Initialize()
|
||||
if(random_color)
|
||||
switch(pick("red","blue","yellow"))
|
||||
if ("red")
|
||||
@@ -42,14 +41,7 @@
|
||||
|
||||
if (prob(75))
|
||||
src.pixel_y = rand(0, 16)
|
||||
..()
|
||||
=======
|
||||
/obj/item/weapon/tool/wirecutters/Initialize()
|
||||
if(random_color && prob(50))
|
||||
icon_state = "cutters-y"
|
||||
item_state = "cutters_yellow"
|
||||
. = ..()
|
||||
>>>>>>> 2f0a618d451... /atom New() => Initialize() [MDB IGNORE] (#8298)
|
||||
|
||||
/obj/item/weapon/tool/wirecutters/attack(mob/living/carbon/C as mob, mob/user as mob)
|
||||
if(istype(C) && user.a_intent == I_HELP && (C.handcuffed) && (istype(C.handcuffed, /obj/item/weapon/handcuffs/cable)))
|
||||
|
||||
Reference in New Issue
Block a user