some more new to init (#17231)

* some more new to init

* rigs

* rigs

* intellisense moment

* telcoms and landmarks

* fix that as well

* some more minor things

* re add missing message

* fix trash eating...
This commit is contained in:
Kashargul
2025-03-01 19:39:52 +01:00
committed by GitHub
parent e6afc35d22
commit 4f8e9f7ef8
117 changed files with 570 additions and 643 deletions
@@ -31,8 +31,8 @@
for(var/obj/item/tool in tools)
. += "[icon2html(tool,)] - [tool.name][tools[current_tool]==tool?" (selected)":""]")
/obj/item/combitool/New()
..()
/obj/item/combitool/Initialize(mapload)
. = ..()
for(var/type in spawn_tools)
tools |= new type(src)
@@ -105,7 +105,7 @@
item_state = "crowbar_red"
random_color = FALSE
/obj/item/tool/prybar/New()
/obj/item/tool/prybar/Initialize(mapload)
. = ..()
if(random_color)
icon_state = "prybar[pick("","_green","_aubergine","_blue")]"
. = ..()
@@ -26,7 +26,8 @@
tool_qualities = list(TOOL_SCREWDRIVER)
var/random_color = TRUE
/obj/item/tool/screwdriver/New()
/obj/item/tool/screwdriver/Initialize(mapload)
. = ..()
if(random_color)
switch(pick("red","blue","purple","brown","green","cyan","yellow"))
if ("red")
@@ -52,8 +53,7 @@
item_state = "screwdriver_yellow"
if (prob(75))
src.pixel_y = rand(0, 16)
..()
pixel_y = rand(0, 16)
/obj/item/tool/screwdriver/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
if(!istype(M) || user.a_intent == I_HELP)
@@ -28,7 +28,8 @@
tool_qualities = list(TOOL_WIRECUTTER)
var/random_color = TRUE
/obj/item/tool/wirecutters/New()
/obj/item/tool/wirecutters/Initialize(mapload)
. = ..()
if(random_color)
switch(pick("red","blue","yellow"))
if ("red")
@@ -42,8 +43,7 @@
item_state = "cutters_yellow"
if (prob(75))
src.pixel_y = rand(0, 16)
..()
pixel_y = rand(0, 16)
/obj/item/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/handcuffs/cable)))