More Initialize() garbage

This commit is contained in:
CitadelStationBot
2017-08-06 18:02:51 -05:00
parent 521c149627
commit 1b2efdcc1d
7 changed files with 20 additions and 20 deletions
@@ -7,7 +7,7 @@
var/assembly_type var/assembly_type
/obj/effect/spawner/newbomb/Initialize() /obj/effect/spawner/newbomb/Initialize()
..() . = ..()
var/obj/item/device/transfer_valve/V = new(src.loc) 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/plasma/full/PT = new(V)
var/obj/item/weapon/tank/internals/oxygen/OT = new(V) var/obj/item/weapon/tank/internals/oxygen/OT = new(V)
@@ -9,7 +9,7 @@
var/state = 0 var/state = 0
/obj/item/stack/tile/light/Initialize(mapload, new_amount, merge = TRUE) /obj/item/stack/tile/light/Initialize(mapload, new_amount, merge = TRUE)
..() . = ..()
if(prob(5)) if(prob(5))
state = 3 //broken state = 3 //broken
else if(prob(5)) else if(prob(5))
@@ -27,4 +27,4 @@
if(amount <= 0) if(amount <= 0)
qdel(src) qdel(src)
else else
return ..() return ..()
@@ -17,7 +17,7 @@
/turf/open/floor/plating/asteroid/Initialize() /turf/open/floor/plating/asteroid/Initialize()
var/proper_name = name var/proper_name = name
..() . = ..()
name = proper_name name = proper_name
if(prob(floor_variance)) if(prob(floor_variance))
icon_state = "[environment_type][rand(0,12)]" icon_state = "[environment_type][rand(0,12)]"
@@ -124,7 +124,7 @@
initial_gas_mix = "TEMP=2.7" initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/asteroid/basalt/Initialize() /turf/open/floor/plating/asteroid/basalt/Initialize()
..() . = ..()
set_basalt_light(src) set_basalt_light(src)
/proc/set_basalt_light(turf/open/floor/B) /proc/set_basalt_light(turf/open/floor/B)
@@ -8,7 +8,7 @@
icon_state = "alienpod1" icon_state = "alienpod1"
/turf/open/floor/plating/abductor/Initialize() /turf/open/floor/plating/abductor/Initialize()
..() . = ..()
icon_state = "alienpod[rand(1,9)]" icon_state = "alienpod[rand(1,9)]"
@@ -46,7 +46,7 @@
pixel_y = -4 pixel_y = -4
pixel_x = -4 pixel_x = -4
icon = smooth_icon icon = smooth_icon
..() . = ..()
/turf/open/floor/plating/ashplanet/break_tile() /turf/open/floor/plating/ashplanet/break_tile()
return return
@@ -74,7 +74,7 @@
/turf/open/floor/plating/ashplanet/wateryrock/Initialize() /turf/open/floor/plating/ashplanet/wateryrock/Initialize()
icon_state = "[icon_state][rand(1, 9)]" icon_state = "[icon_state][rand(1, 9)]"
..() . = ..()
/turf/open/floor/plating/beach /turf/open/floor/plating/beach
@@ -114,7 +114,7 @@
desc = "Like sand, but more <i>metal</i>." desc = "Like sand, but more <i>metal</i>."
/turf/open/floor/plating/ironsand/Initialize() /turf/open/floor/plating/ironsand/Initialize()
..() . = ..()
icon_state = "ironsand[rand(1,15)]" icon_state = "ironsand[rand(1,15)]"
/turf/open/floor/plating/ironsand/burn_tile() /turf/open/floor/plating/ironsand/burn_tile()
+6 -6
View File
@@ -44,14 +44,14 @@
/turf/open/floor/holofloor/asteroid/Initialize() /turf/open/floor/holofloor/asteroid/Initialize()
icon_state = "asteroid[rand(0, 12)]" icon_state = "asteroid[rand(0, 12)]"
..() . = ..()
/turf/open/floor/holofloor/basalt /turf/open/floor/holofloor/basalt
name = "basalt" name = "basalt"
icon_state = "basalt0" icon_state = "basalt0"
/turf/open/floor/holofloor/basalt/Initialize() /turf/open/floor/holofloor/basalt/Initialize()
..() . = ..()
if(prob(15)) if(prob(15))
icon_state = "basalt[rand(0, 12)]" icon_state = "basalt[rand(0, 12)]"
set_basalt_light(src) set_basalt_light(src)
@@ -63,7 +63,7 @@
/turf/open/floor/holofloor/space/Initialize() /turf/open/floor/holofloor/space/Initialize()
icon_state = SPACE_ICON_STATE // so realistic icon_state = SPACE_ICON_STATE // so realistic
..() . = ..()
/turf/open/floor/holofloor/hyperspace /turf/open/floor/holofloor/hyperspace
name = "hyperspace" name = "hyperspace"
@@ -72,10 +72,10 @@
/turf/open/floor/holofloor/hyperspace/Initialize() /turf/open/floor/holofloor/hyperspace/Initialize()
icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]" icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]"
..() . = ..()
/turf/open/floor/holofloor/hyperspace/ns/Initialize() /turf/open/floor/holofloor/hyperspace/ns/Initialize()
..() . = ..()
icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]" icon_state = "speedspace_ns_[(x + 5*y + (y%2+1)*7)%15+1]"
/turf/open/floor/holofloor/carpet /turf/open/floor/holofloor/carpet
@@ -89,7 +89,7 @@
canSmoothWith = null canSmoothWith = null
/turf/open/floor/holofloor/carpet/Initialize() /turf/open/floor/holofloor/carpet/Initialize()
..() . = ..()
addtimer(CALLBACK(src, .proc/update_icon), 1) addtimer(CALLBACK(src, .proc/update_icon), 1)
/turf/open/floor/holofloor/carpet/update_icon() /turf/open/floor/holofloor/carpet/update_icon()
+4 -4
View File
@@ -1,5 +1,5 @@
/obj/item/weapon/book/manual/random/Initialize() /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/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) var/newtype = pick(subtypesof(/obj/item/weapon/book/manual) - banned_books)
new newtype(loc) new newtype(loc)
@@ -10,7 +10,7 @@
var/category = null var/category = null
/obj/item/weapon/book/random/Initialize() /obj/item/weapon/book/random/Initialize()
..() . = ..()
create_random_books(amount, src.loc, TRUE, category) create_random_books(amount, src.loc, TRUE, category)
qdel(src) qdel(src)
@@ -24,7 +24,7 @@
state = 2 state = 2
/obj/structure/bookcase/random/Initialize(mapload) /obj/structure/bookcase/random/Initialize(mapload)
..() . = ..()
if(!book_count || !isnum(book_count)) if(!book_count || !isnum(book_count))
update_icon() update_icon()
return return
@@ -77,7 +77,7 @@
var/ref_book_prob = 20 var/ref_book_prob = 20
/obj/structure/bookcase/random/reference/Initialize(mapload) /obj/structure/bookcase/random/reference/Initialize(mapload)
..() . = ..()
while(book_count > 0 && prob(ref_book_prob)) while(book_count > 0 && prob(ref_book_prob))
book_count-- book_count--
new /obj/item/weapon/book/manual/random(src) new /obj/item/weapon/book/manual/random(src)
@@ -51,7 +51,7 @@
icon_dead = "stickdog_dead" icon_dead = "stickdog_dead"
/mob/living/simple_animal/hostile/stickman/Initialize(mapload, var/wizard_summoned) /mob/living/simple_animal/hostile/stickman/Initialize(mapload, var/wizard_summoned)
..() . = ..()
new /obj/effect/temp_visual/paper_scatter(src) new /obj/effect/temp_visual/paper_scatter(src)
summoned_by_wizard = wizard_summoned summoned_by_wizard = wizard_summoned