From 1b2efdcc1d65b9783befd9bb72aa73b1a117a614 Mon Sep 17 00:00:00 2001 From: CitadelStationBot Date: Sun, 6 Aug 2017 18:02:51 -0500 Subject: [PATCH] More Initialize() garbage --- code/game/objects/effects/spawners/bombspawner.dm | 2 +- code/game/objects/items/stacks/tiles/light.dm | 4 ++-- code/game/turfs/simulated/floor/plating/asteroid.dm | 4 ++-- .../turfs/simulated/floor/plating/misc_plating.dm | 8 ++++---- code/modules/holodeck/turfs.dm | 12 ++++++------ code/modules/library/random_books.dm | 8 ++++---- .../mob/living/simple_animal/hostile/stickman.dm | 2 +- 7 files changed, 20 insertions(+), 20 deletions(-) diff --git a/code/game/objects/effects/spawners/bombspawner.dm b/code/game/objects/effects/spawners/bombspawner.dm index 6f307d9e59..7f8adbf6a9 100644 --- a/code/game/objects/effects/spawners/bombspawner.dm +++ b/code/game/objects/effects/spawners/bombspawner.dm @@ -7,7 +7,7 @@ var/assembly_type /obj/effect/spawner/newbomb/Initialize() - ..() + . = ..() var/obj/item/device/transfer_valve/V = new(src.loc) var/obj/item/weapon/tank/internals/plasma/full/PT = new(V) var/obj/item/weapon/tank/internals/oxygen/OT = new(V) diff --git a/code/game/objects/items/stacks/tiles/light.dm b/code/game/objects/items/stacks/tiles/light.dm index b4b31eac08..a5ff449508 100644 --- a/code/game/objects/items/stacks/tiles/light.dm +++ b/code/game/objects/items/stacks/tiles/light.dm @@ -9,7 +9,7 @@ var/state = 0 /obj/item/stack/tile/light/Initialize(mapload, new_amount, merge = TRUE) - ..() + . = ..() if(prob(5)) state = 3 //broken else if(prob(5)) @@ -27,4 +27,4 @@ if(amount <= 0) qdel(src) else - return ..() \ No newline at end of file + return ..() diff --git a/code/game/turfs/simulated/floor/plating/asteroid.dm b/code/game/turfs/simulated/floor/plating/asteroid.dm index 7666472a65..ec84bff35d 100644 --- a/code/game/turfs/simulated/floor/plating/asteroid.dm +++ b/code/game/turfs/simulated/floor/plating/asteroid.dm @@ -17,7 +17,7 @@ /turf/open/floor/plating/asteroid/Initialize() var/proper_name = name - ..() + . = ..() name = proper_name if(prob(floor_variance)) icon_state = "[environment_type][rand(0,12)]" @@ -124,7 +124,7 @@ initial_gas_mix = "TEMP=2.7" /turf/open/floor/plating/asteroid/basalt/Initialize() - ..() + . = ..() set_basalt_light(src) /proc/set_basalt_light(turf/open/floor/B) diff --git a/code/game/turfs/simulated/floor/plating/misc_plating.dm b/code/game/turfs/simulated/floor/plating/misc_plating.dm index cf0ec5531c..9a6d5eb467 100644 --- a/code/game/turfs/simulated/floor/plating/misc_plating.dm +++ b/code/game/turfs/simulated/floor/plating/misc_plating.dm @@ -8,7 +8,7 @@ icon_state = "alienpod1" /turf/open/floor/plating/abductor/Initialize() - ..() + . = ..() icon_state = "alienpod[rand(1,9)]" @@ -46,7 +46,7 @@ pixel_y = -4 pixel_x = -4 icon = smooth_icon - ..() + . = ..() /turf/open/floor/plating/ashplanet/break_tile() return @@ -74,7 +74,7 @@ /turf/open/floor/plating/ashplanet/wateryrock/Initialize() icon_state = "[icon_state][rand(1, 9)]" - ..() + . = ..() /turf/open/floor/plating/beach @@ -114,7 +114,7 @@ desc = "Like sand, but more metal." /turf/open/floor/plating/ironsand/Initialize() - ..() + . = ..() icon_state = "ironsand[rand(1,15)]" /turf/open/floor/plating/ironsand/burn_tile() diff --git a/code/modules/holodeck/turfs.dm b/code/modules/holodeck/turfs.dm index 38ce9c70f1..6f28702892 100644 --- a/code/modules/holodeck/turfs.dm +++ b/code/modules/holodeck/turfs.dm @@ -44,14 +44,14 @@ /turf/open/floor/holofloor/asteroid/Initialize() icon_state = "asteroid[rand(0, 12)]" - ..() + . = ..() /turf/open/floor/holofloor/basalt name = "basalt" icon_state = "basalt0" /turf/open/floor/holofloor/basalt/Initialize() - ..() + . = ..() if(prob(15)) icon_state = "basalt[rand(0, 12)]" set_basalt_light(src) @@ -63,7 +63,7 @@ /turf/open/floor/holofloor/space/Initialize() icon_state = SPACE_ICON_STATE // so realistic - ..() + . = ..() /turf/open/floor/holofloor/hyperspace name = "hyperspace" @@ -72,10 +72,10 @@ /turf/open/floor/holofloor/hyperspace/Initialize() icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]" - ..() + . = ..() /turf/open/floor/holofloor/hyperspace/ns/Initialize() - ..() + . = ..() icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]" /turf/open/floor/holofloor/carpet @@ -89,7 +89,7 @@ canSmoothWith = null /turf/open/floor/holofloor/carpet/Initialize() - ..() + . = ..() addtimer(CALLBACK(src, .proc/update_icon), 1) /turf/open/floor/holofloor/carpet/update_icon() diff --git a/code/modules/library/random_books.dm b/code/modules/library/random_books.dm index e2ea2a86c5..1143dbf9a7 100644 --- a/code/modules/library/random_books.dm +++ b/code/modules/library/random_books.dm @@ -1,5 +1,5 @@ /obj/item/weapon/book/manual/random/Initialize() - ..() + . = ..() var/static/banned_books = list(/obj/item/weapon/book/manual/random, /obj/item/weapon/book/manual/nuclear, /obj/item/weapon/book/manual/wiki) var/newtype = pick(subtypesof(/obj/item/weapon/book/manual) - banned_books) new newtype(loc) @@ -10,7 +10,7 @@ var/category = null /obj/item/weapon/book/random/Initialize() - ..() + . = ..() create_random_books(amount, src.loc, TRUE, category) qdel(src) @@ -24,7 +24,7 @@ state = 2 /obj/structure/bookcase/random/Initialize(mapload) - ..() + . = ..() if(!book_count || !isnum(book_count)) update_icon() return @@ -77,7 +77,7 @@ var/ref_book_prob = 20 /obj/structure/bookcase/random/reference/Initialize(mapload) - ..() + . = ..() while(book_count > 0 && prob(ref_book_prob)) book_count-- new /obj/item/weapon/book/manual/random(src) diff --git a/code/modules/mob/living/simple_animal/hostile/stickman.dm b/code/modules/mob/living/simple_animal/hostile/stickman.dm index 15dfd7ad9d..5a9d3a2928 100644 --- a/code/modules/mob/living/simple_animal/hostile/stickman.dm +++ b/code/modules/mob/living/simple_animal/hostile/stickman.dm @@ -51,7 +51,7 @@ icon_dead = "stickdog_dead" /mob/living/simple_animal/hostile/stickman/Initialize(mapload, var/wizard_summoned) - ..() + . = ..() new /obj/effect/temp_visual/paper_scatter(src) summoned_by_wizard = wizard_summoned