Revert "[MIRROR] /atom New() => Initialize() [MDB IGNORE]"

This commit is contained in:
Novacat
2022-08-27 08:49:56 -04:00
committed by GitHub
parent 0be7af4774
commit 1aa4c73e8d
599 changed files with 3329 additions and 4983 deletions
+4 -3
View File
@@ -2,9 +2,10 @@
// Mostly for debugging table connections
// This file is not #included in the .dme.
/obj/structure/table/debug/Initialize()
material = get_material_by_name("debugium")
. = ..()
/obj/structure/table/debug
New()
material = get_material_by_name("debugium")
..()
/datum/material/debug
name = "debugium"
+54 -54
View File
@@ -3,77 +3,77 @@
icon_state = "plain_preview"
color = "#EEEEEE"
/obj/structure/table/standard/Initialize()
/obj/structure/table/standard/New()
material = get_material_by_name(DEFAULT_TABLE_MATERIAL)
. = ..()
..()
/obj/structure/table/steel
icon_state = "plain_preview"
color = "#666666"
/obj/structure/table/steel/Initialize()
/obj/structure/table/steel/New()
material = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/marble
icon_state = "stone_preview"
color = "#CCCCCC"
/obj/structure/table/marble/Initialize()
/obj/structure/table/marble/New()
material = get_material_by_name("marble")
. = ..()
..()
/obj/structure/table/reinforced
icon_state = "reinf_preview"
color = "#EEEEEE"
/obj/structure/table/reinforced/Initialize()
/obj/structure/table/reinforced/New()
material = get_material_by_name(DEFAULT_TABLE_MATERIAL)
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/steel_reinforced
icon_state = "reinf_preview"
color = "#666666"
/obj/structure/table/steel_reinforced/Initialize()
/obj/structure/table/steel_reinforced/New()
material = get_material_by_name(MAT_STEEL)
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/wooden_reinforced
icon_state = "reinf_preview"
color = "#824B28"
/obj/structure/table/wooden_reinforced/Initialize()
/obj/structure/table/wooden_reinforced/New()
material = get_material_by_name("wood")
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/woodentable
icon_state = "plain_preview"
color = "#824B28"
/obj/structure/table/woodentable/Initialize()
/obj/structure/table/woodentable/New()
material = get_material_by_name("wood")
. = ..()
..()
/obj/structure/table/sifwoodentable
icon_state = "plain_preview"
color = "#824B28"
/obj/structure/table/sifwoodentable/Initialize()
/obj/structure/table/sifwoodentable/New()
material = get_material_by_name("alien wood")
. = ..()
..()
/obj/structure/table/sifwooden_reinforced
icon_state = "reinf_preview"
color = "#824B28"
/obj/structure/table/sifwooden_reinforced/Initialize()
/obj/structure/table/sifwooden_reinforced/New()
material = get_material_by_name("alien wood")
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/hardwoodtable
icon_state = "stone_preview"
@@ -86,19 +86,19 @@
/obj/structure/table/gamblingtable
icon_state = "gamble_preview"
/obj/structure/table/gamblingtable/Initialize()
/obj/structure/table/gamblingtable/New()
material = get_material_by_name("wood")
carpeted = 1
. = ..()
..()
/obj/structure/table/glass
icon_state = "plain_preview"
color = "#00E1FF"
alpha = 77 // 0.3 * 255
/obj/structure/table/glass/Initialize()
/obj/structure/table/glass/New()
material = get_material_by_name("glass")
. = ..()
..()
/obj/structure/table/borosilicate
icon_state = "plain_preview"
@@ -113,16 +113,16 @@
icon_state = "holo_preview"
color = "#EEEEEE"
/obj/structure/table/holotable/Initialize()
material = get_material_by_name("holo" + DEFAULT_TABLE_MATERIAL)
. = ..()
/obj/structure/table/holotable/New()
material = get_material_by_name("holo[DEFAULT_TABLE_MATERIAL]")
..()
/obj/structure/table/woodentable/holotable
icon_state = "holo_preview"
/obj/structure/table/woodentable/holotable/Initialize()
material = get_material_by_name("holo" + MAT_WOOD)
. = ..()
/obj/structure/table/woodentable/holotable/New()
material = get_material_by_name("holowood")
..()
/obj/structure/table/alien
name = "alien table"
@@ -131,11 +131,11 @@
can_reinforce = FALSE
can_plate = FALSE
/obj/structure/table/alien/Initialize()
/obj/structure/table/alien/New()
material = get_material_by_name("alium")
verbs -= /obj/structure/table/verb/do_flip
verbs -= /obj/structure/table/proc/do_put
. = ..()
..()
/obj/structure/table/alien/dismantle(obj/item/weapon/tool/wrench/W, mob/user)
to_chat(user, "<span class='warning'>You cannot dismantle \the [src].</span>")
@@ -146,69 +146,69 @@
icon_state = "plain_preview"
color = "#EEEEEE"
/obj/structure/table/bench/standard/Initialize()
/obj/structure/table/bench/standard/New()
material = get_material_by_name(DEFAULT_TABLE_MATERIAL)
. = ..()
..()
/obj/structure/table/bench/steel
icon_state = "plain_preview"
color = "#666666"
/obj/structure/table/bench/steel/Initialize()
/obj/structure/table/bench/steel/New()
material = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/bench/marble
icon_state = "stone_preview"
color = "#CCCCCC"
/obj/structure/table/bench/marble/Initialize()
/obj/structure/table/bench/marble/New()
material = get_material_by_name("marble")
. = ..()
..()
/*
/obj/structure/table/bench/reinforced
icon_state = "reinf_preview"
color = "#EEEEEE"
/obj/structure/table/bench/reinforced/Initialize()
/obj/structure/table/bench/reinforced/New()
material = get_material_by_name(DEFAULT_TABLE_MATERIAL)
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/bench/steel_reinforced
icon_state = "reinf_preview"
color = "#666666"
/obj/structure/table/bench/steel_reinforced/Initialize()
/obj/structure/table/bench/steel_reinforced/New()
material = get_material_by_name(MAT_STEEL)
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
/obj/structure/table/bench/wooden_reinforced
icon_state = "reinf_preview"
color = "#824B28"
/obj/structure/table/bench/wooden_reinforced/Initialize()
/obj/structure/table/bench/wooden_reinforced/New()
material = get_material_by_name("wood")
reinforced = get_material_by_name(MAT_STEEL)
. = ..()
..()
*/
/obj/structure/table/bench/wooden
icon_state = "plain_preview"
color = "#824B28"
/obj/structure/table/bench/wooden/Initialize()
/obj/structure/table/bench/wooden/New()
material = get_material_by_name("wood")
. = ..()
..()
/obj/structure/table/bench/sifwooden
icon_state = "plain_preview"
color = "#824B28"
/obj/structure/table/bench/sifwooden/Initialize()
/obj/structure/table/bench/sifwooden/New()
material = get_material_by_name("alien wood")
. = ..()
..()
/obj/structure/table/bench/sifwooden/padded
icon_state = "padded_preview"
@@ -217,33 +217,33 @@
/obj/structure/table/bench/padded
icon_state = "padded_preview"
/obj/structure/table/bench/padded/Initialize()
/obj/structure/table/bench/padded/New()
material = get_material_by_name(MAT_STEEL)
carpeted = 1
. = ..()
..()
/obj/structure/table/bench/glass
icon_state = "plain_preview"
color = "#00E1FF"
alpha = 77 // 0.3 * 255
/obj/structure/table/bench/glass/Initialize()
/obj/structure/table/bench/glass/New()
material = get_material_by_name("glass")
. = ..()
..()
/*
/obj/structure/table/bench/holotable
icon_state = "holo_preview"
color = "#EEEEEE"
/obj/structure/table/bench/holotable/Initialize()
/obj/structure/table/bench/holotable/New()
material = get_material_by_name("holo[DEFAULT_TABLE_MATERIAL]")
. = ..()
..()
/obj/structure/table/bench/wooden/holotable
icon_state = "holo_preview"
/obj/structure/table/bench/wooden/holotable/Initialize()
/obj/structure/table/bench/wooden/holotable/New()
material = get_material_by_name("holowood")
. = ..()
..()
*/
+2 -37
View File
@@ -7,8 +7,8 @@
can_reinforce = 0
flipped = -1
/obj/structure/table/rack/Initialize()
. = ..()
/obj/structure/table/rack/New()
..()
verbs -= /obj/structure/table/verb/do_flip
verbs -= /obj/structure/table/proc/do_put
@@ -26,38 +26,3 @@
/obj/structure/table/rack/holorack/dismantle(obj/item/weapon/tool/wrench/W, mob/user)
to_chat(user, "<span class='warning'>You cannot dismantle \the [src].</span>")
return
/obj/structure/table/rack/steel
color = "#666666"
/obj/structure/table/rack/steel/Initialize()
material = get_material_by_name(MAT_STEEL)
. = ..()
//Shelves
/obj/structure/table/rack/shelf
name = "shelving"
desc = "Some nice metal shelves."
icon_state = "shelf"
/obj/structure/table/rack/shelf/steel
color = "#666666"
/obj/structure/table/rack/shelf/steel/Initialize()
material = get_material_by_name(MAT_STEEL)
. = ..()
//Gunrack
// SOMEONE should add cool overlay stuff to this
/obj/structure/table/rack/gun_rack
name = "gun rack"
desc = "Seems like you could prop up some rifles here."
icon_state = "gunrack"
/obj/structure/table/rack/gun_rack/steel
color = "#666666"
/obj/structure/table/rack/gun_rack/steel/Initialize()
material = get_material_by_name(MAT_STEEL)
. = ..()
+20
View File
@@ -0,0 +1,20 @@
/obj/structure/window/New()
..()
for(var/obj/structure/table/T in view(src, 1))
T.update_connections()
T.update_icon()
/obj/structure/window/Destroy()
var/oldloc = loc
. = ..()
for(var/obj/structure/table/T in view(oldloc, 1))
T.update_connections()
T.update_icon()
/obj/structure/window/Move()
var/oldloc = loc
. = ..()
if(loc != oldloc)
for(var/obj/structure/table/T in view(oldloc, 1) | view(loc, 1))
T.update_connections()
T.update_icon()