mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-29 08:11:11 +01:00
[MIRROR] Initialize fixing (#10335)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
2e725a0727
commit
ce2446922e
@@ -8,7 +8,7 @@
|
||||
anchored = 1
|
||||
var/progress = 0
|
||||
|
||||
/obj/structure/alien/egg/Initialize()
|
||||
/obj/structure/alien/egg/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
unacidable = TRUE
|
||||
plane = TURF_PLANE
|
||||
layer = ABOVE_TURF_LAYER
|
||||
var/delete_me
|
||||
|
||||
var/health = 15
|
||||
var/obj/effect/alien/weeds/node/linked_node = null
|
||||
@@ -40,7 +41,7 @@
|
||||
|
||||
/obj/effect/alien/weeds/Initialize(mapload, var/node, var/newcolor)
|
||||
. = ..()
|
||||
if(isspace(loc))
|
||||
if(isspace(loc) || delete_me)
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
linked_node = node
|
||||
@@ -82,6 +83,9 @@
|
||||
if(existing == src)
|
||||
continue
|
||||
else
|
||||
if(!(existing.flags & ATOM_INITIALIZED))
|
||||
existing.delete_me = TRUE
|
||||
continue
|
||||
qdel(existing)
|
||||
|
||||
linked_node = src
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
var/spawned_num = 0
|
||||
var/init_time
|
||||
|
||||
/obj/effect/bspawner/Initialize()
|
||||
/obj/effect/bspawner/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj,src)
|
||||
init_time = world.time
|
||||
@@ -34,4 +34,4 @@
|
||||
. = ..()
|
||||
|
||||
/obj/effect/bspawner/min30
|
||||
time_to_end = 30 MINUTES
|
||||
time_to_end = 30 MINUTES
|
||||
|
||||
@@ -11,7 +11,7 @@ GLOBAL_LIST_EMPTY(bump_teleporters)
|
||||
density = TRUE
|
||||
opacity = 0
|
||||
|
||||
/obj/effect/bump_teleporter/Initialize()
|
||||
/obj/effect/bump_teleporter/Initialize(mapload)
|
||||
. = ..()
|
||||
GLOB.bump_teleporters += src
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
time_to_live = 300
|
||||
pass_flags = PASSTABLE | PASSGRILLE | PASSGLASS //PASSGLASS is fine here, it's just so the visual effect can "flow" around glass
|
||||
|
||||
/obj/effect/effect/smoke/chem/Initialize()
|
||||
/obj/effect/effect/smoke/chem/Initialize(mapload)
|
||||
. = ..()
|
||||
create_reagents(500)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
icon = 'icons/effects/effects.dmi'
|
||||
icon_state = "dirt"
|
||||
|
||||
/obj/effect/decal/cleanable/chemcoating/Initialize()
|
||||
/obj/effect/decal/cleanable/chemcoating/Initialize(mapload)
|
||||
create_reagents(100)
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
dries = FALSE // We do this ourselves
|
||||
slips = FALSE
|
||||
|
||||
/obj/effect/effect/foam/firefighting/Initialize()
|
||||
/obj/effect/effect/foam/firefighting/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
@@ -17,4 +17,4 @@
|
||||
/obj/effect/effect/foam/firefighting/process()
|
||||
if(lifetime-- <= 0)
|
||||
flick("[icon_state]-disolve", src)
|
||||
QDEL_IN(src, 5)
|
||||
QDEL_IN(src, 5)
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
mouse_opacity = 0
|
||||
pass_flags = PASSTABLE | PASSGRILLE | PASSBLOB
|
||||
|
||||
/obj/effect/effect/water/Initialize()
|
||||
/obj/effect/effect/water/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 15 SECONDS)
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
icon = 'icons/effects/effects_vr.dmi'
|
||||
icon_state = "confetti"
|
||||
|
||||
/obj/effect/effect/sparks/Initialize()
|
||||
/obj/effect/effect/sparks/Initialize(mapload)
|
||||
. = ..()
|
||||
playsound(src, "sounds/items/confetti.ogg ", 100, 1)
|
||||
|
||||
@@ -39,4 +39,4 @@
|
||||
sleep(5)
|
||||
step(confetti,direction)
|
||||
spawn(20)
|
||||
src.total_sparks--
|
||||
src.total_sparks--
|
||||
|
||||
@@ -266,12 +266,12 @@ var/global/list/image/splatter_cache=list()
|
||||
var/dry = 0 // Keeps the lag down
|
||||
var/sampled = FALSE
|
||||
|
||||
/obj/effect/decal/cleanable/mucus/Initialize()
|
||||
/obj/effect/decal/cleanable/mucus/mapped/Initialize(mapload)
|
||||
. = ..()
|
||||
VARSET_IN(src, dry, TRUE, DRYING_TIME * 2)
|
||||
|
||||
//This version should be used for admin spawns and pre-mapped virus vectors (e.g. in PoIs), this version does not dry
|
||||
/obj/effect/decal/cleanable/mucus/mapped/Initialize()
|
||||
/obj/effect/decal/cleanable/mucus/mapped/Initialize(mapload)
|
||||
. = ..()
|
||||
viruses |= new /datum/disease/advance
|
||||
|
||||
|
||||
@@ -165,7 +165,7 @@
|
||||
pixel_x = -32
|
||||
pixel_y = 0
|
||||
|
||||
/obj/structure/sign/poster/Initialize()
|
||||
/obj/structure/sign/poster/Initialize(mapload)
|
||||
. = ..()
|
||||
if (poster_type)
|
||||
var/path = text2path(poster_type)
|
||||
|
||||
@@ -83,7 +83,7 @@
|
||||
icon_state = "rolled_poster_nt"
|
||||
poster_type = /obj/structure/sign/poster/nanotrasen
|
||||
|
||||
/obj/item/poster/nanotrasen/Initialize(turf/loc, var/decl/poster/P = null)
|
||||
/obj/item/poster/nanotrasen/Initialize(mapload, var/decl/poster/P = null)
|
||||
if(!ispath(src.poster_decl) && !ispath(P) && !istype(P))
|
||||
src.poster_decl = get_poster_decl(/decl/poster/nanotrasen, FALSE)
|
||||
return ..()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/effect/decal/warning_stripes
|
||||
icon = 'icons/effects/warning_stripes.dmi'
|
||||
|
||||
/obj/effect/decal/warning_stripes/Initialize()
|
||||
/obj/effect/decal/warning_stripes/Initialize(mapload)
|
||||
. = ..()
|
||||
var/turf/T=get_turf(src)
|
||||
var/image/I=image(icon, icon_state = icon_state, dir = dir)
|
||||
|
||||
@@ -102,7 +102,7 @@ steam.start() -- spawns the effect
|
||||
anchored = TRUE
|
||||
mouse_opacity = 0
|
||||
|
||||
/obj/effect/effect/sparks/Initialize()
|
||||
/obj/effect/effect/sparks/Initialize(mapload)
|
||||
. = ..()
|
||||
playsound(src, "sparks", 100, 1)
|
||||
var/turf/T = src.loc
|
||||
@@ -179,7 +179,7 @@ steam.start() -- spawns the effect
|
||||
pixel_x = -32
|
||||
pixel_y = -32
|
||||
|
||||
/obj/effect/effect/smoke/Initialize()
|
||||
/obj/effect/effect/smoke/Initialize(mapload)
|
||||
. = ..()
|
||||
if(time_to_live)
|
||||
addtimer(CALLBACK(GLOBAL_PROC, GLOBAL_PROC_REF(qdel), src), time_to_live, TIMER_DELETE_ME)
|
||||
@@ -290,7 +290,7 @@ steam.start() -- spawns the effect
|
||||
opacity = FALSE
|
||||
var/strength = 5 // How much damage to do inside each affect()
|
||||
|
||||
/obj/effect/effect/smoke/elemental/Initialize()
|
||||
/obj/effect/effect/smoke/elemental/Initialize(mapload)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
plane = MOB_PLANE
|
||||
layer = ABOVE_MOB_LAYER
|
||||
|
||||
/obj/effect/effect/teleport_greyscale/Initialize()
|
||||
/obj/effect/effect/teleport_greyscale/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 2 SECONDS)
|
||||
|
||||
@@ -116,4 +116,4 @@
|
||||
|
||||
/datum/effect/effect/system/teleport_greyscale/start()
|
||||
var/obj/effect/effect/teleport_greyscale/tele = new /obj/effect/effect/teleport_greyscale(src.location)
|
||||
tele.color = color
|
||||
tele.color = color
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
anchored = TRUE
|
||||
mouse_opacity = 0
|
||||
|
||||
/obj/effect/expl_particles/Initialize()
|
||||
/obj/effect/expl_particles/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 1.5 SECONDS)
|
||||
return
|
||||
@@ -41,7 +41,7 @@
|
||||
pixel_x = -32
|
||||
pixel_y = -32
|
||||
|
||||
/obj/effect/explosion/Initialize()
|
||||
/obj/effect/explosion/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 1 SECOND)
|
||||
return
|
||||
|
||||
@@ -16,7 +16,7 @@ Admin verb is called by code\modules\admin\verbs\event_triggers.dm
|
||||
var/isLoud = FALSE
|
||||
var/isNarrate = FALSE
|
||||
|
||||
/obj/effect/landmark/event_trigger/Initialize()
|
||||
/obj/effect/landmark/event_trigger/Initialize(mapload)
|
||||
. = ..()
|
||||
coordinates = "(X:[loc.x];Y:[loc.y];Z:[loc.z])"
|
||||
|
||||
@@ -89,7 +89,7 @@ Admin verb is called by code\modules\admin\verbs\event_triggers.dm
|
||||
var/isWarning = FALSE //For personal messages
|
||||
isNarrate = TRUE
|
||||
|
||||
/obj/effect/landmark/event_trigger/auto_narrate/Initialize()
|
||||
/obj/effect/landmark/event_trigger/auto_narrate/Initialize(mapload)
|
||||
. = ..()
|
||||
message_range = world.view
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ var/global/list/global_used_pois = list()
|
||||
/obj/effect/landmark/poi_loader/New()
|
||||
INITIALIZE_IMMEDIATE(/obj/effect/landmark/poi_loader)
|
||||
|
||||
/obj/effect/landmark/poi_loader/Initialize()
|
||||
/obj/effect/landmark/poi_loader/Initialize(mapload)
|
||||
src.load_poi()
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
name = "Antag Latespawn"
|
||||
var/antag_id
|
||||
|
||||
/obj/effect/landmark/late_antag/Initialize()
|
||||
/obj/effect/landmark/late_antag/Initialize(mapload)
|
||||
. = ..()
|
||||
var/datum/antagonist/A = all_antag_types[antag_id]
|
||||
if(istype(A))
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
icon_state = "x"
|
||||
unacidable = TRUE//Just to be sure.
|
||||
|
||||
/obj/effect/manifest/Initialize()
|
||||
/obj/effect/manifest/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
invisibility = 101
|
||||
|
||||
@@ -31,7 +31,7 @@ GLOBAL_LIST_EMPTY(all_beam_points)
|
||||
var/beam_type = /obj/effect/ebeam // The type of beam. Default has no special properties. Some others may do things like hurt things touching it.
|
||||
var/beam_sleep_time = 3 // How often the beam updates visually. Suggested to leave this alone, 3 is already fast.
|
||||
|
||||
/obj/effect/map_effect/beam_point/Initialize()
|
||||
/obj/effect/map_effect/beam_point/Initialize(mapload)
|
||||
GLOB.all_beam_points += src
|
||||
if(make_beams_on_init)
|
||||
create_beams()
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
var/effect_cardinals_only = FALSE // If true, effects only move in cardinal directions.
|
||||
var/effect_forced_dir = null // If set, effects emitted will always move in this direction.
|
||||
|
||||
/obj/effect/map_effect/interval/effect_emitter/Initialize()
|
||||
/obj/effect/map_effect/interval/effect_emitter/Initialize(mapload)
|
||||
effect_system = new effect_system_type()
|
||||
effect_system.attach(src)
|
||||
configure_effects()
|
||||
|
||||
@@ -27,10 +27,10 @@
|
||||
var/interval_lower_bound = 5 SECONDS // Lower number for how often the map_effect will trigger.
|
||||
var/interval_upper_bound = 5 SECONDS // Higher number for above.
|
||||
|
||||
/obj/effect/map_effect/interval/Initialize()
|
||||
/obj/effect/map_effect/interval/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
|
||||
/obj/effect/map_effect/interval/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
@@ -44,7 +44,7 @@
|
||||
//Not yet!
|
||||
if(world.time < next_attempt)
|
||||
return
|
||||
|
||||
|
||||
// Check to see if we're useful first.
|
||||
if(!always_run && !check_for_player_proximity(src, proximity_needed, ignore_ghosts, ignore_afk))
|
||||
next_attempt = world.time + retry_delay
|
||||
|
||||
@@ -145,7 +145,7 @@ when portals are shortly lived, or when portals are made to be obvious with spec
|
||||
var/portal_id = "test" // For a portal to be made, both the A and B sides need to share the same ID value.
|
||||
var/list/portal_lines = list()
|
||||
|
||||
/obj/effect/map_effect/portal/master/Initialize()
|
||||
/obj/effect/map_effect/portal/master/Initialize(mapload)
|
||||
GLOB.all_portal_masters += src
|
||||
find_lines()
|
||||
..()
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
icon_state = "radiation_emitter"
|
||||
var/radiation_power = 30 // Bigger numbers means more radiation.
|
||||
|
||||
/obj/effect/map_effect/radiation_emitter/Initialize()
|
||||
/obj/effect/map_effect/radiation_emitter/Initialize(mapload)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
SSradiation.radiate(src, radiation_power)
|
||||
|
||||
/obj/effect/map_effect/radiation_emitter/strong
|
||||
radiation_power = 100
|
||||
radiation_power = 100
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// The trap item will be triggered in some manner when detonating. Default only checks for grenades.
|
||||
var/obj/item/trap = null
|
||||
|
||||
/obj/effect/mine/Initialize()
|
||||
/obj/effect/mine/Initialize(mapload)
|
||||
icon_state = "landmine_armed"
|
||||
wires = new(src)
|
||||
. = ..()
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
invisibility = 0
|
||||
var/time_to_die = 10 SECONDS // Afer which, it will delete itself.
|
||||
|
||||
/obj/effect/temporary_effect/Initialize()
|
||||
/obj/effect/temporary_effect/Initialize(mapload)
|
||||
. = ..()
|
||||
if(time_to_die)
|
||||
QDEL_IN(src, time_to_die)
|
||||
@@ -33,7 +33,7 @@
|
||||
pixel_x = -32
|
||||
pixel_y = -32
|
||||
|
||||
/obj/effect/temporary_effect/cleave_attack/Initialize() // Makes the slash fade smoothly. When completely transparent it should qdel itself.
|
||||
/obj/effect/temporary_effect/cleave_attack/Initialize(mapload) // Makes the slash fade smoothly. When completely transparent it should qdel itself.
|
||||
. = ..()
|
||||
animate(src, alpha = 0, time = time_to_die - 1)
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
time_to_die = 1 SECOND
|
||||
pixel_x = -32
|
||||
|
||||
/obj/effect/temporary_effect/lightning_strike/Initialize()
|
||||
/obj/effect/temporary_effect/lightning_strike/Initialize(mapload)
|
||||
icon_state += "[rand(1,2)]" // To have two variants of lightning sprites.
|
||||
animate(src, alpha = 0, time = time_to_die - 1)
|
||||
. = ..()
|
||||
@@ -114,7 +114,7 @@
|
||||
var/trans_angle
|
||||
var/icon_dist
|
||||
|
||||
/obj/effect/abstract/directional_lighting/Initialize()
|
||||
/obj/effect/abstract/directional_lighting/Initialize(mapload)
|
||||
. = ..()
|
||||
vis_contents += light_spot
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
layer = ABOVE_MOB_LAYER
|
||||
mouse_opacity = 0
|
||||
|
||||
/obj/effect/overlay/wallrot/Initialize()
|
||||
/obj/effect/overlay/wallrot/Initialize(mapload)
|
||||
. = ..()
|
||||
pixel_x += rand(-10, 10)
|
||||
pixel_y += rand(-10, 10)
|
||||
@@ -165,7 +165,7 @@
|
||||
|
||||
var/static/matrix/normal_transform
|
||||
|
||||
/obj/effect/overlay/light_cone/Initialize()
|
||||
/obj/effect/overlay/light_cone/Initialize(mapload)
|
||||
. = ..()
|
||||
apply_standard_transform()
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ GLOBAL_LIST_BOILERPLATE(all_portals, /obj/effect/portal)
|
||||
return
|
||||
return
|
||||
|
||||
/obj/effect/portal/Initialize()
|
||||
/obj/effect/portal/Initialize(mapload)
|
||||
. = ..()
|
||||
QDEL_IN(src, 30 SECONDS)
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
..()
|
||||
|
||||
/obj/effect/temporary_effect/eruption/Initialize()
|
||||
/obj/effect/temporary_effect/eruption/Initialize(mapload)
|
||||
. = ..()
|
||||
flick("[icon_state]_create",src)
|
||||
|
||||
@@ -51,4 +51,4 @@
|
||||
L.fire_stacks += 2
|
||||
L.add_modifier(/datum/modifier/fire/stack_managed/intense, 30 SECONDS)
|
||||
|
||||
return TRUE
|
||||
return TRUE
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
if(co != null) carbon_amt = co
|
||||
..()
|
||||
|
||||
/obj/effect/spawner/newbomb/Initialize(newloc)
|
||||
..(newloc)
|
||||
/obj/effect/spawner/newbomb/Initialize(mapload)
|
||||
..()
|
||||
var/obj/item/transfer_valve/V = new(src.loc)
|
||||
var/obj/item/tank/phoron/PT = new(V)
|
||||
var/obj/item/tank/oxygen/OT = new(V)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// If the effect's color is not set, it will be chosen at random.
|
||||
var/color_secondary // The hexcode for the desired secondary color of your graffiti. If blank, it will inherit this effect's color.
|
||||
|
||||
/obj/effect/graffitispawner/Initialize()
|
||||
/obj/effect/graffitispawner/Initialize(mapload)
|
||||
..()
|
||||
|
||||
if(!color)
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
/obj/effect/spider/stickyweb
|
||||
icon_state = "stickyweb1"
|
||||
|
||||
/obj/effect/spider/stickyweb/Initialize()
|
||||
/obj/effect/spider/stickyweb/Initialize(mapload)
|
||||
if(prob(50))
|
||||
icon_state = "stickyweb2"
|
||||
return ..()
|
||||
@@ -98,7 +98,7 @@
|
||||
var/spider_type = /obj/effect/spider/spiderling
|
||||
var/faction = FACTION_SPIDERS
|
||||
|
||||
/obj/effect/spider/eggcluster/Initialize()
|
||||
/obj/effect/spider/eggcluster/Initialize(mapload)
|
||||
pixel_x = rand(3,-3)
|
||||
pixel_y = rand(3,-3)
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
@@ -171,7 +171,7 @@ GLOBAL_LIST_EMPTY(mapped_autostrips_mob)
|
||||
var/obj/effect/landmark/the_landmark = null
|
||||
var/landmark_id = null
|
||||
|
||||
/obj/effect/step_trigger/teleporter/landmark/Initialize()
|
||||
/obj/effect/step_trigger/teleporter/landmark/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/obj/effect/landmark/teleport_mark/mark in GLOB.tele_landmarks)
|
||||
if(mark.landmark_id == landmark_id)
|
||||
@@ -188,7 +188,7 @@ GLOBAL_LIST_EMPTY(tele_landmarks)
|
||||
/obj/effect/landmark/teleport_mark
|
||||
var/landmark_id = null
|
||||
|
||||
/obj/effect/landmark/teleport_mark/Initialize()
|
||||
/obj/effect/landmark/teleport_mark/Initialize(mapload)
|
||||
. = ..()
|
||||
GLOB.tele_landmarks += src
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
var/randomdir = TRUE
|
||||
var/timerid
|
||||
|
||||
/obj/effect/temp_visual/Initialize()
|
||||
/obj/effect/temp_visual/Initialize(mapload)
|
||||
. = ..()
|
||||
if(randomdir)
|
||||
dir = pick(list(NORTH, SOUTH, EAST, WEST))
|
||||
@@ -31,7 +31,7 @@
|
||||
/obj/effect/temp_visual/dir_setting
|
||||
randomdir = FALSE
|
||||
|
||||
/obj/effect/temp_visual/dir_setting/Initialize(loc, set_dir)
|
||||
/obj/effect/temp_visual/dir_setting/Initialize(mapload, set_dir)
|
||||
if(set_dir)
|
||||
dir = set_dir
|
||||
. = ..()
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
var/duration = 10 //in deciseconds
|
||||
var/randomdir = TRUE
|
||||
|
||||
/obj/effect/temp_visual/Initialize()
|
||||
/obj/effect/temp_visual/Initialize(mapload)
|
||||
. = ..()
|
||||
if(randomdir)
|
||||
set_dir(pick(global.cardinal))
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
var/stasis_level = 3 //Every 'this' life ticks are applied to the mob (when life_ticks%stasis_level == 1)
|
||||
var/obj/item/reagent_containers/syringe/syringe
|
||||
|
||||
/obj/structure/closet/body_bag/cryobag/Initialize()
|
||||
/obj/structure/closet/body_bag/cryobag/Initialize(mapload)
|
||||
tank = new tank_type(null) //It's in nullspace to prevent ejection when the bag is opened.
|
||||
..()
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
list(REAGENT_ID_IMPEDREZENE = 15) = 2,
|
||||
list(REAGENT_ID_ZOMBIEPOWDER = 10) = 1)
|
||||
|
||||
/obj/item/reagent_containers/glass/beaker/vial/random/Initialize()
|
||||
/obj/item/reagent_containers/glass/beaker/vial/random/Initialize(mapload)
|
||||
. = ..()
|
||||
if(is_open_container())
|
||||
flags ^= OPENCONTAINER
|
||||
@@ -62,7 +62,7 @@
|
||||
desc = "A powdered form of what appears to be [R.name]. There's about [reagents.total_volume] units here."
|
||||
return ..()
|
||||
|
||||
/obj/item/reagent_containers/powder/Initialize()
|
||||
/obj/item/reagent_containers/powder/Initialize(mapload)
|
||||
. = ..()
|
||||
get_appearance()
|
||||
|
||||
|
||||
@@ -379,7 +379,8 @@
|
||||
..()
|
||||
internal_devices |= new /obj/item/halogen_counter(src)
|
||||
|
||||
/obj/item/commcard/engineering/Initialize()
|
||||
/obj/item/commcard/engineering/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_data["grid_sensors"] = find_powernet_sensors()
|
||||
internal_data["powernet_target"] = ""
|
||||
|
||||
@@ -616,10 +617,10 @@
|
||||
internal_data["stat_display_active2"] = null
|
||||
internal_data["stat_display_special"] = null
|
||||
|
||||
/obj/item/commcard/head/Initialize()
|
||||
/obj/item/commcard/head/Initialize(mapload)
|
||||
// Have to register the commcard with the Radio controller to receive updates to the status displays
|
||||
radio_controller.add_object(src, 1435)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/commcard/head/Destroy()
|
||||
// Have to unregister the commcard for proper bookkeeping
|
||||
@@ -793,7 +794,8 @@
|
||||
internal_devices |= new /obj.item/analyzer(src)
|
||||
internal_devices |= new /obj/item/halogen_counter(src)
|
||||
|
||||
/obj/item/commcard/head/ce/Initialize()
|
||||
/obj/item/commcard/head/ce/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_data["grid_sensors"] = find_powernet_sensors()
|
||||
internal_data["powernet_target"] = ""
|
||||
|
||||
@@ -904,7 +906,8 @@
|
||||
list("name" = "Shuttle Blast Door Control", "template" = "merc_blast_door_control.tmpl")
|
||||
)
|
||||
|
||||
/obj/item/commcard/mercenary/Initialize()
|
||||
/obj/item/commcard/mercenary/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_data["shuttle_door_code"] = "smindicate" // Copied from PDA code
|
||||
internal_data["shuttle_doors"] = find_blast_doors()
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ var/global/list/obj/item/communicator/all_communicators = list()
|
||||
// Parameters: None
|
||||
// Description: Adds the new communicator to the global list of all communicators, sorts the list, obtains a reference to the Exonet node, then tries to
|
||||
// assign the device to the holder's name automatically in a spectacularly shitty way.
|
||||
/obj/item/communicator/Initialize()
|
||||
/obj/item/communicator/Initialize(mapload)
|
||||
. = ..()
|
||||
all_communicators += src
|
||||
all_communicators = sortAtom(all_communicators)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
/obj/item/defib_kit/get_cell()
|
||||
return bcell
|
||||
|
||||
/obj/item/defib_kit/Initialize() //starts without a cell for rnd //ChompEDIT New --> Initialize
|
||||
/obj/item/defib_kit/Initialize(mapload) //starts without a cell for rnd
|
||||
. = ..()
|
||||
if(ispath(paddles))
|
||||
paddles = new paddles(src, src)
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/flash/Initialize()
|
||||
/obj/item/flash/Initialize(mapload)
|
||||
. = ..()
|
||||
power_supply = new cell_type(src)
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/flashlight/Initialize()
|
||||
/obj/item/flashlight/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
if(power_use && cell_type)
|
||||
@@ -367,7 +367,7 @@
|
||||
pickup_sound = 'sound/items/pickup/gloves.ogg'
|
||||
light_system = MOVABLE_LIGHT
|
||||
|
||||
/obj/item/flashlight/flare/Initialize()
|
||||
/obj/item/flashlight/flare/Initialize(mapload)
|
||||
fuel = rand(800, 1000) // Sorry for changing this so much but I keep under-estimating how long X number of ticks last in seconds.
|
||||
. = ..()
|
||||
|
||||
@@ -430,7 +430,7 @@
|
||||
var/fuel = 0
|
||||
power_use = 0
|
||||
|
||||
/obj/item/flashlight/glowstick/Initialize()
|
||||
/obj/item/flashlight/glowstick/Initialize(mapload)
|
||||
fuel = rand(1600, 2000)
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/geiger/Initialize()
|
||||
/obj/item/geiger/Initialize(mapload)
|
||||
soundloop = new(list(src), FALSE)
|
||||
return ..()
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
var/last_tick //used to delay the powercheck
|
||||
var/wiresexposed = 0
|
||||
|
||||
/obj/item/geiger/wall/Initialize()
|
||||
/obj/item/geiger/wall/Initialize(mapload)
|
||||
START_PROCESSING(SSobj, src)
|
||||
soundloop = new(list(src), FALSE)
|
||||
return ..()
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
var/last_tick //used to delay the powercheck
|
||||
var/wiresexposed = 0
|
||||
|
||||
/obj/item/geiger/wall/Initialize()
|
||||
/obj/item/geiger/wall/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
soundloop = new(list(src), FALSE)
|
||||
return ..()
|
||||
|
||||
/obj/item/geiger/wall/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
|
||||
@@ -26,7 +26,7 @@ GLOBAL_LIST_EMPTY(GPS_list)
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/gps/Initialize()
|
||||
/obj/item/gps/Initialize(mapload)
|
||||
. = ..()
|
||||
compass = new(src)
|
||||
GLOB.GPS_list += src
|
||||
|
||||
@@ -346,7 +346,7 @@ var/global/list/paikeys = list()
|
||||
icon_state = "broken"
|
||||
pickup_sound = 'sound/items/pickup/card.ogg'
|
||||
drop_sound = 'sound/items/drop/card.ogg'
|
||||
/obj/item/paiparts/Initialize()
|
||||
/obj/item/paiparts/Initialize(mapload)
|
||||
. = ..()
|
||||
pixel_x = rand(-10,10)
|
||||
pixel_y = rand(-10,10)
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
drop_sound = 'sound/items/drop/component.ogg'
|
||||
pickup_sound = 'sound/items/pickup/component.ogg'
|
||||
|
||||
/obj/item/radio/headset/Initialize()
|
||||
/obj/item/radio/headset/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels.Cut()
|
||||
if(ks1type)
|
||||
@@ -674,7 +674,7 @@
|
||||
syndie = 1
|
||||
ks1type = /obj/item/encryptionkey/raider
|
||||
|
||||
/obj/item/radio/headset/raider/Initialize()
|
||||
/obj/item/radio/headset/raider/Initialize(mapload)
|
||||
. = ..()
|
||||
set_frequency(RAID_FREQ)
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
var/number = 0
|
||||
var/wiresexposed = FALSE
|
||||
|
||||
/obj/item/radio/intercom/Initialize()
|
||||
/obj/item/radio/intercom/Initialize(mapload)
|
||||
. = ..()
|
||||
var/area/A = get_area(src)
|
||||
if(A)
|
||||
@@ -80,26 +80,26 @@
|
||||
|
||||
/obj/item/radio/intercom/omni
|
||||
name = "global announcer"
|
||||
/obj/item/radio/intercom/omni/Initialize()
|
||||
/obj/item/radio/intercom/omni/Initialize(mapload)
|
||||
channels = radiochannels.Copy()
|
||||
return ..()
|
||||
|
||||
/obj/item/radio/intercom/Initialize()
|
||||
/obj/item/radio/intercom/Initialize(mapload)
|
||||
. = ..()
|
||||
circuit = new circuit(src)
|
||||
|
||||
/obj/item/radio/intercom/department/medbay/Initialize()
|
||||
/obj/item/radio/intercom/department/medbay/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels = default_medbay_channels.Copy()
|
||||
|
||||
/obj/item/radio/intercom/department/security/Initialize()
|
||||
/obj/item/radio/intercom/department/security/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels = list(
|
||||
num2text(PUB_FREQ) = list(),
|
||||
num2text(SEC_I_FREQ) = list(access_security)
|
||||
)
|
||||
|
||||
/obj/item/radio/intercom/entertainment/Initialize()
|
||||
/obj/item/radio/intercom/entertainment/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels = list(
|
||||
num2text(PUB_FREQ) = list(),
|
||||
@@ -113,7 +113,7 @@
|
||||
subspace_transmission = TRUE
|
||||
syndie = TRUE
|
||||
|
||||
/obj/item/radio/intercom/syndicate/Initialize()
|
||||
/obj/item/radio/intercom/syndicate/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels[num2text(SYND_FREQ)] = list(access_syndicate)
|
||||
|
||||
@@ -124,7 +124,7 @@
|
||||
subspace_transmission = TRUE
|
||||
syndie = TRUE
|
||||
|
||||
/obj/item/radio/intercom/raider/Initialize()
|
||||
/obj/item/radio/intercom/raider/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels[num2text(RAID_FREQ)] = list(access_syndicate)
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ var/global/list/active_radio_jammers = list()
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/radio_jammer/Initialize()
|
||||
/obj/item/radio_jammer/Initialize(mapload)
|
||||
. = ..()
|
||||
power_source = new(src)
|
||||
update_icon() // So it starts with the full overlay.
|
||||
|
||||
@@ -768,6 +768,6 @@ GLOBAL_DATUM(autospeaker, /mob/living/silicon/ai/announcer)
|
||||
/obj/item/radio/phone/medbay
|
||||
frequency = MED_I_FREQ
|
||||
|
||||
/obj/item/radio/phone/medbay/Initialize()
|
||||
/obj/item/radio/phone/medbay/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels = default_medbay_channels.Copy()
|
||||
|
||||
@@ -6,12 +6,12 @@
|
||||
for(var/cand_x = max(0, T.x - canhear_range), cand_x <= T.x + canhear_range, cand_x++)
|
||||
for(var/cand_y = max(0, T.y - canhear_range), cand_y <= T.y + canhear_range, cand_y++)
|
||||
var/turf/cand_turf = locate(cand_x,cand_y,T.z)
|
||||
if(!cand_turf)
|
||||
if(!cand_turf)
|
||||
continue
|
||||
if((abs(T.x - cand_x) < dnumber) || (abs(T.y - cand_y) < dnumber))
|
||||
output += cand_turf
|
||||
continue
|
||||
if(sqrt((T.x - cand_x)**2 + (T.y - cand_y)**2) <= canhear_range)
|
||||
if(sqrt((T.x - cand_x)**2 + (T.y - cand_y)**2) <= canhear_range)
|
||||
output += cand_turf
|
||||
continue
|
||||
return output
|
||||
@@ -27,12 +27,12 @@
|
||||
for(var/cand_x = max(0, T.x - canhear_range), cand_x <= T.x + canhear_range, cand_x++)
|
||||
for(var/cand_y = max(0, T.y - canhear_range), cand_y <= T.y + canhear_range, cand_y++)
|
||||
var/turf/cand_turf = locate(cand_x,cand_y,T.z)
|
||||
if(!cand_turf)
|
||||
if(!cand_turf)
|
||||
continue
|
||||
if((abs(T.x - cand_x) < dnumber) || (abs(T.y - cand_y) < dnumber))
|
||||
output += cand_turf
|
||||
continue
|
||||
if(sqrt((T.x - cand_x)**2 + (T.y - cand_y)**2) <= canhear_range)
|
||||
if(sqrt((T.x - cand_x)**2 + (T.y - cand_y)**2) <= canhear_range)
|
||||
output += cand_turf
|
||||
continue
|
||||
broadcast_tiles = output
|
||||
@@ -41,7 +41,7 @@
|
||||
. = ..()
|
||||
update_broadcast_tiles()
|
||||
|
||||
/obj/item/radio/intercom/Initialize()
|
||||
/obj/item/radio/intercom/Initialize(mapload)
|
||||
. = ..()
|
||||
update_broadcast_tiles()
|
||||
|
||||
@@ -72,4 +72,4 @@
|
||||
bs_tx_preload_id = "Receiver A" //Transmit to a receiver
|
||||
bs_rx_preload_id = "Broadcaster A" //Recveive from a transmitter
|
||||
|
||||
#undef CANBROADCAST_INNERBOX
|
||||
#undef CANBROADCAST_INNERBOX
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
subspace_transmission = TRUE
|
||||
adhoc_fallback = TRUE
|
||||
|
||||
/obj/item/radio/emergency/Initialize()
|
||||
/obj/item/radio/emergency/Initialize(mapload)
|
||||
. = ..()
|
||||
internal_channels = default_medbay_channels.Copy()
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
var/obj/item/radio/bluespacehandset/linked/handset = /obj/item/radio/bluespacehandset/linked
|
||||
|
||||
/obj/item/bluespaceradio/Initialize()
|
||||
/obj/item/bluespaceradio/Initialize(mapload)
|
||||
. = ..()
|
||||
if(ispath(handset))
|
||||
handset = new handset(src, src)
|
||||
|
||||
@@ -31,7 +31,7 @@ var/global/mob/living/carbon/human/dummy/mannequin/sleevemate_mob
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/sleevemate/Initialize()
|
||||
/obj/item/sleevemate/Initialize(mapload)
|
||||
. = ..()
|
||||
our_db = SStranscore.db_by_key(db_key)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
/obj/item/suit_cooling_unit/ui_action_click(mob/user, actiontype)
|
||||
toggle(user)
|
||||
|
||||
/obj/item/suit_cooling_unit/Initialize()
|
||||
/obj/item/suit_cooling_unit/Initialize(mapload)
|
||||
. = ..()
|
||||
if(ispath(cell))
|
||||
cell = new cell(src)
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
pickup_sound = 'sound/items/pickup/device.ogg'
|
||||
drop_sound = 'sound/items/drop/device.ogg'
|
||||
|
||||
/obj/item/perfect_tele/Initialize()
|
||||
/obj/item/perfect_tele/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
flags |= NOBLUDGEON
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
. += "Video feed is [camera.status ? "on" : "off"]"
|
||||
. += "Audio feed is [radio.broadcasting ? "on" : "off"]"
|
||||
|
||||
/obj/item/tvcamera/Initialize()
|
||||
/obj/item/tvcamera/Initialize(mapload)
|
||||
. = ..()
|
||||
camera = new(src)
|
||||
camera.c_tag = channel
|
||||
@@ -195,7 +195,7 @@
|
||||
. += "Video feed is [bcamera.status ? "on" : "off"]"
|
||||
. += "Audio feed is [bradio.broadcasting ? "on" : "off"]"
|
||||
|
||||
/obj/item/clothing/accessory/bodycam/Initialize()
|
||||
/obj/item/clothing/accessory/bodycam/Initialize(mapload)
|
||||
. = ..()
|
||||
bcamera = new(src)
|
||||
bcamera.c_tag = channel
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
var/selected_cat
|
||||
|
||||
// The hidden uplink MUST be inside an obj/item's contents.
|
||||
/obj/item/uplink/hidden/Initialize()
|
||||
/obj/item/uplink/hidden/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!isitem(loc))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
@@ -237,6 +237,6 @@
|
||||
/obj/item/radio/headset/uplink
|
||||
traitor_frequency = 1445
|
||||
|
||||
/obj/item/radio/headset/uplink/Initialize()
|
||||
/obj/item/radio/headset/uplink/Initialize(mapload)
|
||||
. = ..()
|
||||
hidden_uplink = new(src)
|
||||
|
||||
@@ -7,16 +7,12 @@
|
||||
icon_state = "drop_marker"
|
||||
|
||||
/obj/effect/calldown_attack/Initialize(mapload)
|
||||
..()
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
|
||||
/obj/effect/calldown_attack/LateInitialize()
|
||||
var/delay = rand(25, 30)
|
||||
spawn(delay-7)
|
||||
new /obj/effect/falling_effect/calldown_attack(src.loc)
|
||||
spawn(delay)
|
||||
qdel(src)
|
||||
addtimer(CALLBACK(src, PROC_REF(spawn_object)), delay-7)
|
||||
|
||||
/obj/effect/calldown_attack/proc/spawn_object()
|
||||
new /obj/effect/falling_effect/calldown_attack(loc)
|
||||
QDEL_IN(src, 0.7 SECONDS)
|
||||
|
||||
/obj/effect/falling_effect/calldown_attack
|
||||
falling_type = /obj/effect/illusionary_fall
|
||||
@@ -42,4 +38,4 @@
|
||||
if(!L.apply_damage(35, BRUTE, target_zone, blocked, soaked))
|
||||
break
|
||||
playsound(src, 'sound/effects/clang2.ogg', 50, 1)
|
||||
qdel(src)
|
||||
qdel(src)
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
"JOINING THE NAVY? HERE'S 15 EXPERT TIPS FOR AVOIDING BRAIN PARASITES"
|
||||
)
|
||||
|
||||
/obj/item/tabloid/Initialize()
|
||||
/obj/item/tabloid/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
pixel_x = 5-rand(10)
|
||||
|
||||
@@ -195,7 +195,7 @@
|
||||
return
|
||||
return ..()
|
||||
|
||||
/obj/item/kit/suit/rig/debug/Initialize()
|
||||
/obj/item/kit/suit/rig/debug/Initialize(mapload)
|
||||
set_info("debug suit", "This is a test", "debug", CUSTOM_ITEM_OBJ, CUSTOM_ITEM_MOB)
|
||||
. = ..()
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ var/list/marker_beacon_colors = list(
|
||||
/obj/item/stack/marker_beacon/hundred
|
||||
amount = 100
|
||||
|
||||
/obj/item/stack/marker_beacon/Initialize()
|
||||
/obj/item/stack/marker_beacon/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/obj/item/stack/medical/advanced
|
||||
icon = 'icons/obj/stacks_vr.dmi'
|
||||
|
||||
/obj/item/stack/medical/advanced/Initialize()
|
||||
/obj/item/stack/medical/advanced/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
w_class = ITEMSIZE_TINY
|
||||
max_amount = 30
|
||||
|
||||
/obj/item/stack/arcadeticket/Initialize()
|
||||
/obj/item/stack/arcadeticket/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
@@ -29,4 +29,4 @@
|
||||
qdel(src)
|
||||
|
||||
/obj/item/stack/arcadeticket/thirty
|
||||
amount = 30
|
||||
amount = 30
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
var/apply_colour //ChompEDIT
|
||||
|
||||
|
||||
/obj/item/stack/tile/Initialize()
|
||||
/obj/item/stack/tile/Initialize(mapload)
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
if(craftable)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
var/wins = 0 // This mech's win count in combat
|
||||
var/losses = 0 // ...And their loss count in combat
|
||||
|
||||
/obj/item/toy/mecha/Initialize()
|
||||
/obj/item/toy/mecha/Initialize(mapload)
|
||||
. = ..()
|
||||
desc = "Mini-Mecha action figure! Collect them all! Attack your friends or another mech with one to initiate epic mech combat! [desc]."
|
||||
combat_health = max_combat_health
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
var/matter_chances = list() //List of lists: list(mat_name, chance, amount)
|
||||
|
||||
|
||||
/obj/item/trash/material/Initialize()
|
||||
/obj/item/trash/material/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!matter)
|
||||
matter = list()
|
||||
@@ -29,7 +29,7 @@
|
||||
list(MAT_PLASTEEL, 5, 10)
|
||||
)
|
||||
|
||||
/obj/item/trash/material/metal/Initialize()
|
||||
/obj/item/trash/material/metal/Initialize(mapload)
|
||||
. = ..()
|
||||
icon_state = "metal[rand(4)]"
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
list(MAT_DIAMOND, 4, 2),
|
||||
)
|
||||
|
||||
/obj/item/trash/material/circuit/Initialize()
|
||||
/obj/item/trash/material/circuit/Initialize(mapload)
|
||||
. = ..()
|
||||
icon_state = "circuit[rand(3)]"
|
||||
|
||||
@@ -67,6 +67,6 @@
|
||||
list(MAT_DIAMOND, 5, 2),
|
||||
)
|
||||
|
||||
/obj/item/trash/material/device/Initialize()
|
||||
/obj/item/trash/material/device/Initialize(mapload)
|
||||
. = ..()
|
||||
icon_state = "device[rand(3)]"
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
/obj/item/uav/loaded
|
||||
cell_type = /obj/item/cell/high
|
||||
|
||||
/obj/item/uav/Initialize()
|
||||
/obj/item/uav/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
if(!cell && cell_type)
|
||||
|
||||
@@ -270,7 +270,7 @@ AI MODULES
|
||||
origin_tech = list(TECH_DATA = 3, TECH_MATERIAL = 4)
|
||||
|
||||
// VOREstation edit: use map default laws
|
||||
/obj/item/aiModule/reset/Initialize()
|
||||
/obj/item/aiModule/reset/Initialize(mapload)
|
||||
. = ..()
|
||||
laws = new global.using_map.default_law_type // Pull from loaded map
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
var/material_to_use = DEFAULT_WALL_MATERIAL // So badmins can make RCDs that print diamond walls.
|
||||
var/make_rwalls = FALSE // If true, when building walls, they will be reinforced.
|
||||
/* VOREStation Removal - Unused
|
||||
/obj/item/rcd/Initialize()
|
||||
/obj/item/rcd/Initialize(mapload)
|
||||
|
||||
src.spark_system = new /datum/effect/effect/system/spark_spread
|
||||
spark_system.set_up(5, 0, src)
|
||||
@@ -147,7 +147,7 @@
|
||||
// RCD variants.
|
||||
|
||||
// This one starts full.
|
||||
/obj/item/rcd/loaded/Initialize()
|
||||
/obj/item/rcd/loaded/Initialize(mapload)
|
||||
stored_matter = max_stored_matter
|
||||
return ..()
|
||||
|
||||
@@ -158,7 +158,7 @@
|
||||
used in the construction of hulls for starships. Reload with compressed matter cartridges."
|
||||
material_to_use = MAT_STEELHULL
|
||||
|
||||
/obj/item/rcd/shipwright/loaded/Initialize()
|
||||
/obj/item/rcd/shipwright/loaded/Initialize(mapload)
|
||||
stored_matter = max_stored_matter
|
||||
return ..()
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
toolspeed = 0.5 // Twice as fast.
|
||||
max_stored_matter = RCD_MAX_CAPACITY * 3 // Three times capacity.
|
||||
|
||||
/obj/item/rcd/advanced/loaded/Initialize()
|
||||
/obj/item/rcd/advanced/loaded/Initialize(mapload)
|
||||
stored_matter = max_stored_matter
|
||||
return ..()
|
||||
|
||||
@@ -189,7 +189,7 @@
|
||||
var/make_cell = TRUE // If false, initialize() won't spawn a cell for this.
|
||||
var/electric_cost_coefficent = 83.33 // Higher numbers make it less efficent. 86.3... means it should matche the standard RCD capacity on a 10k cell.
|
||||
|
||||
/obj/item/rcd/electric/Initialize()
|
||||
/obj/item/rcd/electric/Initialize(mapload)
|
||||
if(make_cell)
|
||||
cell = new /obj/item/cell/high(src)
|
||||
return ..()
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
slot_r_hand_str = 'icons/mob/items/righthand_vr.dmi',
|
||||
)
|
||||
|
||||
/obj/item/rcd/Initialize()
|
||||
/obj/item/rcd/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
var/static/image/radial_image_random = image(icon = 'icons/mob/radial_vr.dmi', icon_state = "sheet-random")
|
||||
|
||||
|
||||
/obj/item/rms/Initialize()
|
||||
/obj/item/rms/Initialize(mapload)
|
||||
. = ..()
|
||||
src.spark_system = new /datum/effect/effect/system/spark_spread
|
||||
spark_system.set_up(5, 0, src)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
"Aux" = PIPING_LAYER_AUX
|
||||
)
|
||||
|
||||
/obj/item/pipe_dispenser/Initialize()
|
||||
/obj/item/pipe_dispenser/Initialize(mapload)
|
||||
. = ..()
|
||||
src.spark_system = new /datum/effect/effect/system/spark_spread
|
||||
spark_system.set_up(5, 0, src)
|
||||
|
||||
@@ -112,13 +112,13 @@
|
||||
/obj/item/flame/candle/everburn
|
||||
wax = 99999
|
||||
|
||||
/obj/item/flame/candle/everburn/Initialize()
|
||||
/obj/item/flame/candle/everburn/Initialize(mapload)
|
||||
. = ..()
|
||||
light(span_notice("\The [src] mysteriously lights itself!."))
|
||||
|
||||
/obj/item/flame/candle/candelabra/everburn
|
||||
wax = 99999
|
||||
|
||||
/obj/item/flame/candle/candelabra/everburn/Initialize()
|
||||
/obj/item/flame/candle/candelabra/everburn/Initialize(mapload)
|
||||
. = ..()
|
||||
light(span_notice("\The [src] mysteriously lights itself!."))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
/obj/item/cane/concealed
|
||||
var/concealed_blade
|
||||
|
||||
/obj/item/cane/concealed/Initialize()
|
||||
/obj/item/cane/concealed/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/material/butterfly/switchblade/temp_blade = new(src)
|
||||
concealed_blade = temp_blade
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
var/full_icon = "full"
|
||||
var/capture_chance_modifier = 1 //So we can have special subtypes with different capture rates!
|
||||
|
||||
/obj/item/capture_crystal/Initialize()
|
||||
/obj/item/capture_crystal/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
@@ -854,7 +854,7 @@
|
||||
list(/mob/living/simple_mob/vore/devil)
|
||||
)
|
||||
|
||||
/obj/item/capture_crystal/random/Initialize()
|
||||
/obj/item/capture_crystal/random/Initialize(mapload)
|
||||
var/subchoice = pickweight(possible_mob_types) //Some of the lists have nested lists, so let's pick one of them
|
||||
var/choice = pickweight(subchoice) //And then we'll pick something from whatever's left
|
||||
spawn_mob_type = choice //Now when someone uses this, we'll spawn whatever we picked!
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
if(wrapped)
|
||||
add_overlay("[initial(icon_state)]_wrapper")
|
||||
|
||||
/obj/item/clothing/mask/chewable/Initialize()
|
||||
/obj/item/clothing/mask/chewable/Initialize(mapload)
|
||||
. = ..()
|
||||
flags |= NOREACT // so it doesn't react until you light it
|
||||
create_reagents(chem_volume) // making the cigarrete a chemical holder with a maximum volume of 15
|
||||
@@ -118,7 +118,7 @@
|
||||
type_butt = /obj/item/trash/spitgum
|
||||
wrapped = TRUE
|
||||
|
||||
/obj/item/clothing/mask/chewable/tobacco/nico/Initialize()
|
||||
/obj/item/clothing/mask/chewable/tobacco/nico/Initialize(mapload)
|
||||
. = ..()
|
||||
reagents.add_reagent(REAGENT_ID_NICOTINE, 2)
|
||||
color = reagents.get_color()
|
||||
@@ -136,7 +136,7 @@
|
||||
slot_flags = SLOT_BELT
|
||||
starts_with = list(/obj/item/clothing/mask/chewable/tobacco = 6)
|
||||
|
||||
/obj/item/storage/chewables/Initialize()
|
||||
/obj/item/storage/chewables/Initialize(mapload)
|
||||
. = ..()
|
||||
make_exact_fit()
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
item_state = "gum"
|
||||
wrapped = TRUE
|
||||
|
||||
/obj/item/clothing/mask/chewable/candy/gum/Initialize()
|
||||
/obj/item/clothing/mask/chewable/candy/gum/Initialize(mapload)
|
||||
. = ..()
|
||||
reagents.add_reagent(pick(REAGENT_ID_BANANA,REAGENT_ID_BERRYJUICE,REAGENT_ID_GRAPEJUICE,REAGENT_ID_LEMONJUICE,REAGENT_ID_LIMEJUICE,REAGENT_ID_ORANGEJUICE,REAGENT_ID_WATERMELONJUICE),10)
|
||||
color = reagents.get_color()
|
||||
@@ -333,7 +333,7 @@
|
||||
|
||||
// CHOMPAdd End
|
||||
|
||||
/obj/item/clothing/mask/chewable/candy/lolli/Initialize()
|
||||
/obj/item/clothing/mask/chewable/candy/lolli/Initialize(mapload)
|
||||
. = ..()
|
||||
reagents.add_reagent(pick(REAGENT_ID_BANANA,REAGENT_ID_BERRYJUICE,REAGENT_ID_GRAPEJUICE,REAGENT_ID_LEMONJUICE,REAGENT_ID_LIMEJUICE,REAGENT_ID_ORANGEJUICE,REAGENT_ID_WATERMELONJUICE),20)
|
||||
color = reagents.get_color()
|
||||
|
||||
@@ -101,7 +101,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
blood_sprite_state = null //Can't bloody these
|
||||
drop_sound = 'sound/items/cigs_lighters/cig_snuff.ogg'
|
||||
|
||||
/obj/item/clothing/mask/smokable/Initialize()
|
||||
/obj/item/clothing/mask/smokable/Initialize(mapload)
|
||||
. = ..()
|
||||
flags |= NOREACT // so it doesn't react until you light it
|
||||
create_reagents(chem_volume) // making the cigarrete a chemical holder with a maximum volume of 15
|
||||
@@ -295,7 +295,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
weldermes = span_notice("USER casually lights the NAME with FLAME.")
|
||||
ignitermes = span_notice("USER fiddles with FLAME, and manages to light their NAME.")
|
||||
|
||||
/obj/item/clothing/mask/smokable/cigarette/Initialize()
|
||||
/obj/item/clothing/mask/smokable/cigarette/Initialize(mapload)
|
||||
. = ..()
|
||||
if(nicotine_amt)
|
||||
reagents.add_reagent(REAGENT_ID_NICOTINE, nicotine_amt)
|
||||
@@ -393,7 +393,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
slot_flags = SLOT_EARS
|
||||
throwforce = 1
|
||||
|
||||
/obj/item/trash/cigbutt/Initialize()
|
||||
/obj/item/trash/cigbutt/Initialize(mapload)
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
transform = turn(transform,rand(0,360))
|
||||
@@ -430,7 +430,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
ignitermes = span_notice("USER fiddles with FLAME, and manages to light their NAME with the power of science.")
|
||||
is_pipe = 1
|
||||
|
||||
/obj/item/clothing/mask/smokable/pipe/Initialize()
|
||||
/obj/item/clothing/mask/smokable/pipe/Initialize(mapload)
|
||||
. = ..()
|
||||
name = "empty [initial(name)]"
|
||||
|
||||
@@ -618,7 +618,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
/obj/item/flame/lighter/random
|
||||
|
||||
// Randomizes Cheap Lighters on Spawn
|
||||
/obj/item/flame/lighter/Initialize()
|
||||
/obj/item/flame/lighter/Initialize(mapload)
|
||||
. = ..()
|
||||
var/image/I = image(icon, "lighter-[pick("trans","tall","matte")]")
|
||||
I.color = pick(available_colors)
|
||||
@@ -683,7 +683,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM
|
||||
activation_sound = 'sound/items/zippo_on.ogg'
|
||||
deactivation_sound = 'sound/items/zippo_off.ogg'
|
||||
|
||||
/obj/item/flame/lighter/zippo/Initialize()
|
||||
/obj/item/flame/lighter/zippo/Initialize(mapload)
|
||||
. = ..()
|
||||
cut_overlays() //Prevents the Cheap Lighter overlay from appearing on this
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
var/locked = 1
|
||||
var/emagged = 0
|
||||
|
||||
/obj/item/circuitboard/security/Initialize()
|
||||
/obj/item/circuitboard/security/Initialize(mapload)
|
||||
. = ..()
|
||||
network = using_map.station_networks
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
build_path = /obj/machinery/computer/security/engineering
|
||||
req_access = list()
|
||||
|
||||
/obj/item/circuitboard/security/engineering/Initialize()
|
||||
/obj/item/circuitboard/security/engineering/Initialize(mapload)
|
||||
. = ..()
|
||||
network = engineering_networks
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
board_type = new /datum/frame/frame_types/display
|
||||
matter = list(MAT_STEEL = 50, MAT_GLASS = 50)
|
||||
|
||||
/obj/item/circuitboard/security/telescreen/entertainment/Initialize()
|
||||
/obj/item/circuitboard/security/telescreen/entertainment/Initialize(mapload)
|
||||
. = ..()
|
||||
network = NETWORK_THUNDER
|
||||
|
||||
|
||||
@@ -100,7 +100,7 @@
|
||||
icon_state = "trinketbox"
|
||||
var/datum/tgui_module/appearance_changer/mirror/coskit/M
|
||||
|
||||
/obj/item/makeover/Initialize()
|
||||
/obj/item/makeover/Initialize(mapload)
|
||||
. = ..()
|
||||
M = new(src, null)
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
var/has_radiation = TRUE
|
||||
// Traitgenes edit end
|
||||
|
||||
/obj/item/dnainjector/Initialize() // Traitgenes edit - Moved to init
|
||||
/obj/item/dnainjector/Initialize(mapload) // Traitgenes edit - Moved to init
|
||||
if(datatype && block)
|
||||
buf=new
|
||||
buf.dna=new
|
||||
@@ -168,54 +168,54 @@
|
||||
desc = "This injects the person with DNA."
|
||||
|
||||
// Purely rando
|
||||
/obj/item/dnainjector/random/Initialize()
|
||||
/obj/item/dnainjector/random/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_good + GLOB.dna_genes_neutral + GLOB.dna_genes_bad), FALSE, TRUE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_labeled/Initialize()
|
||||
/obj/item/dnainjector/random_labeled/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_good + GLOB.dna_genes_neutral + GLOB.dna_genes_bad), TRUE, TRUE)
|
||||
. = ..()
|
||||
|
||||
// Good/bad but also neutral genes mixed in, less OP selection of genes
|
||||
/obj/item/dnainjector/random_good/Initialize()
|
||||
/obj/item/dnainjector/random_good/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_good + GLOB.dna_genes_neutral ), FALSE, TRUE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_good_labeled/Initialize()
|
||||
/obj/item/dnainjector/random_good_labeled/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_good + GLOB.dna_genes_neutral ), TRUE, TRUE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_bad/Initialize()
|
||||
/obj/item/dnainjector/random_bad/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_bad + GLOB.dna_genes_neutral ), FALSE, TRUE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_bad_labeled/Initialize()
|
||||
/obj/item/dnainjector/random_bad_labeled/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_bad + GLOB.dna_genes_neutral ), TRUE, TRUE)
|
||||
. = ..()
|
||||
|
||||
// Purely good/bad genes, intended to be usually good rewards or punishments
|
||||
/obj/item/dnainjector/random_verygood/Initialize()
|
||||
/obj/item/dnainjector/random_verygood/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_good), FALSE, FALSE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_verygood_labeled/Initialize()
|
||||
/obj/item/dnainjector/random_verygood_labeled/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_good), TRUE, FALSE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_verybad/Initialize()
|
||||
/obj/item/dnainjector/random_verybad/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_bad), FALSE, FALSE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_verybad_labeled/Initialize()
|
||||
/obj/item/dnainjector/random_verybad_labeled/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_bad), TRUE, FALSE)
|
||||
. = ..()
|
||||
|
||||
// Random neutral traits
|
||||
/obj/item/dnainjector/random_neutral/Initialize()
|
||||
/obj/item/dnainjector/random_neutral/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_neutral ), FALSE, TRUE)
|
||||
. = ..()
|
||||
|
||||
/obj/item/dnainjector/random_neutral_labeled/Initialize()
|
||||
/obj/item/dnainjector/random_neutral_labeled/Initialize(mapload)
|
||||
pick_block( pick(GLOB.dna_genes_neutral ), TRUE, TRUE)
|
||||
. = ..()
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
var/trait_path
|
||||
var/disabling = FALSE
|
||||
|
||||
/obj/item/dnainjector/set_trait/Initialize()
|
||||
/obj/item/dnainjector/set_trait/Initialize(mapload)
|
||||
var/G = get_gene_from_trait(trait_path)
|
||||
if(trait_path && G)
|
||||
pick_block( G, TRUE, FALSE, disabling)
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
sprite_name = "atmos_extinguisher"
|
||||
rand_overlays = 0
|
||||
|
||||
/obj/item/extinguisher/Initialize()
|
||||
/obj/item/extinguisher/Initialize(mapload)
|
||||
create_reagents(max_water)
|
||||
reagents.add_reagent(REAGENT_ID_FIREFOAM, max_water)
|
||||
if(rand_overlays)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
var/list/allowed_containers = list(/obj/item/reagent_containers/glass/beaker, /obj/item/reagent_containers/glass/bottle)
|
||||
var/affected_area = 3
|
||||
|
||||
/obj/item/grenade/chem_grenade/Initialize()
|
||||
/obj/item/grenade/chem_grenade/Initialize(mapload)
|
||||
. = ..()
|
||||
create_reagents(1000)
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
stage = 2
|
||||
sealed = TRUE
|
||||
|
||||
/obj/item/grenade/chem_grenade/metalfoam/Initialize()
|
||||
/obj/item/grenade/chem_grenade/metalfoam/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/reagent_containers/glass/beaker/B1 = new(src)
|
||||
var/obj/item/reagent_containers/glass/beaker/B2 = new(src)
|
||||
@@ -230,7 +230,7 @@
|
||||
stage = 2
|
||||
sealed = TRUE
|
||||
|
||||
/obj/item/grenade/chem_grenade/incendiary/Initialize()
|
||||
/obj/item/grenade/chem_grenade/incendiary/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/reagent_containers/glass/beaker/B1 = new(src)
|
||||
var/obj/item/reagent_containers/glass/beaker/B2 = new(src)
|
||||
@@ -253,7 +253,7 @@
|
||||
stage = 2
|
||||
sealed = TRUE
|
||||
|
||||
/obj/item/grenade/chem_grenade/antiweed/Initialize()
|
||||
/obj/item/grenade/chem_grenade/antiweed/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/reagent_containers/glass/beaker/B1 = new(src)
|
||||
var/obj/item/reagent_containers/glass/beaker/B2 = new(src)
|
||||
@@ -277,7 +277,7 @@
|
||||
path = 1
|
||||
sealed = TRUE
|
||||
|
||||
/obj/item/grenade/chem_grenade/cleaner/Initialize()
|
||||
/obj/item/grenade/chem_grenade/cleaner/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/reagent_containers/glass/beaker/B1 = new(src)
|
||||
var/obj/item/reagent_containers/glass/beaker/B2 = new(src)
|
||||
@@ -299,7 +299,7 @@
|
||||
path = 1
|
||||
sealed = TRUE
|
||||
|
||||
/obj/item/grenade/chem_grenade/teargas/Initialize()
|
||||
/obj/item/grenade/chem_grenade/teargas/Initialize(mapload)
|
||||
. = ..()
|
||||
var/obj/item/reagent_containers/glass/beaker/large/B1 = new(src)
|
||||
var/obj/item/reagent_containers/glass/beaker/large/B2 = new(src)
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
name = "Robot Miner ID"
|
||||
rank = JOB_SHAFT_MINER
|
||||
|
||||
/obj/item/card/id/cargo/miner/borg/Initialize()
|
||||
/obj/item/card/id/cargo/miner/borg/Initialize(mapload)
|
||||
. = ..()
|
||||
if(isrobot(loc?.loc))
|
||||
R = loc.loc
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
/obj/item/card/emag/used
|
||||
uses = 1
|
||||
|
||||
/obj/item/card/emag/used/Initialize()
|
||||
/obj/item/card/emag/used/Initialize(mapload)
|
||||
. = ..()
|
||||
uses = rand(1, 5)
|
||||
|
||||
@@ -296,7 +296,7 @@
|
||||
name = "Robot Exploration ID"
|
||||
rank = JOB_EXPLORER
|
||||
|
||||
/obj/item/card/id/exploration/borg/Initialize()
|
||||
/obj/item/card/id/exploration/borg/Initialize(mapload)
|
||||
. = ..()
|
||||
if(isrobot(loc?.loc))
|
||||
R = loc.loc
|
||||
|
||||
@@ -131,7 +131,7 @@
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/card/id/Initialize()
|
||||
/obj/item/card/id/Initialize(mapload)
|
||||
. = ..()
|
||||
var/datum/job/J = job_master.GetJob(rank)
|
||||
if(J)
|
||||
@@ -170,7 +170,7 @@
|
||||
item_state = "idgreen"
|
||||
assignment = "Synthetic"
|
||||
|
||||
/obj/item/card/id/synthetic/Initialize()
|
||||
/obj/item/card/id/synthetic/Initialize(mapload)
|
||||
. = ..()
|
||||
access = get_all_station_access().Copy() + access_synth
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
icon_state = "id-robot-n"
|
||||
assignment = "Lost"
|
||||
|
||||
/obj/item/card/id/lost/Initialize()
|
||||
/obj/item/card/id/lost/Initialize(mapload)
|
||||
. = ..()
|
||||
access += access_lost
|
||||
|
||||
@@ -203,11 +203,11 @@
|
||||
registered_name = "Central Command"
|
||||
assignment = "General"
|
||||
|
||||
/obj/item/card/id/centcom/Initialize()
|
||||
/obj/item/card/id/centcom/Initialize(mapload)
|
||||
. = ..()
|
||||
access = get_all_centcom_access().Copy()
|
||||
|
||||
/obj/item/card/id/centcom/station/Initialize()
|
||||
/obj/item/card/id/centcom/station/Initialize(mapload)
|
||||
. = ..()
|
||||
access |= get_all_station_access()
|
||||
|
||||
@@ -217,7 +217,7 @@
|
||||
icon_state = "ert-id"
|
||||
rank = JOB_EMERGENCY_RESPONSE_TEAM
|
||||
|
||||
/obj/item/card/id/centcom/ERT/Initialize()
|
||||
/obj/item/card/id/centcom/ERT/Initialize(mapload)
|
||||
. = ..()
|
||||
access |= get_all_station_access()
|
||||
|
||||
|
||||
@@ -8,12 +8,12 @@
|
||||
|
||||
var/datum/tgui_module/agentcard/agentcard_module
|
||||
|
||||
/obj/item/card/id/syndicate/Initialize()
|
||||
/obj/item/card/id/syndicate/Initialize(mapload)
|
||||
. = ..()
|
||||
agentcard_module = new(src)
|
||||
access = syndicate_access.Copy()
|
||||
|
||||
/obj/item/card/id/syndicate/station_access/Initialize()
|
||||
/obj/item/card/id/syndicate/station_access/Initialize(mapload)
|
||||
. = ..() // Same as the normal Syndicate id, only already has all station access
|
||||
access |= get_all_station_access()
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
cell_type = null
|
||||
opened = TRUE
|
||||
|
||||
/obj/item/inducer/Initialize()
|
||||
/obj/item/inducer/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!cell && cell_type)
|
||||
cell = new cell_type
|
||||
@@ -224,7 +224,7 @@
|
||||
powertransfer = 500
|
||||
opened = TRUE
|
||||
|
||||
/obj/item/inducer/sci/Initialize()
|
||||
/obj/item/inducer/sci/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon() //To get the 'open' state applied
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
author = "NanoTrasen"
|
||||
title = "Standard Operating Procedure"
|
||||
|
||||
/obj/item/book/manual/standard_operating_procedure/Initialize()
|
||||
/obj/item/book/manual/standard_operating_procedure/Initialize(mapload)
|
||||
. = ..()
|
||||
dat = {"
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
author = "Jeremiah Acacius"
|
||||
title = "Corporate Regulations"
|
||||
|
||||
/obj/item/book/manual/command_guide/Initialize()
|
||||
/obj/item/book/manual/command_guide/Initialize(mapload)
|
||||
. = ..()
|
||||
dat = {"
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
author = "Ali Big"
|
||||
title = "Food for Dummies 2"
|
||||
|
||||
/obj/item/book/manual/cook_guide/Initialize()
|
||||
/obj/item/book/manual/cook_guide/Initialize(mapload)
|
||||
. = ..()
|
||||
dat = {"
|
||||
<html>
|
||||
@@ -137,7 +137,7 @@
|
||||
author = "Ali Big"
|
||||
title = "How to Alcohol (And other Drinks)"
|
||||
|
||||
/obj/item/book/manual/bar_guide/Initialize()
|
||||
/obj/item/book/manual/bar_guide/Initialize(mapload)
|
||||
. = ..()
|
||||
dat = {"
|
||||
<html>
|
||||
@@ -350,7 +350,7 @@
|
||||
author = "Engineering Encyclopedia"
|
||||
title = "Rotary Electric Generator Manual"
|
||||
|
||||
/obj/item/book/manual/rotary_electric_generator/Initialize()
|
||||
/obj/item/book/manual/rotary_electric_generator/Initialize(mapload)
|
||||
. = ..()
|
||||
dat = {"<html>
|
||||
<head>
|
||||
@@ -447,7 +447,7 @@
|
||||
author = "Pontifex Publishing"
|
||||
title = "Synthetics"
|
||||
|
||||
/obj/item/book/manual/synthetic_life/Initialize()
|
||||
/obj/item/book/manual/synthetic_life/Initialize(mapload)
|
||||
. = ..()
|
||||
dat = {"
|
||||
<html lang="en">
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
var/active_force = 55
|
||||
var/inactive_force = 10
|
||||
|
||||
/obj/item/chainsaw/Initialize()
|
||||
/obj/item/chainsaw/Initialize(mapload)
|
||||
var/datum/reagents/R = new/datum/reagents(max_fuel)
|
||||
reagents = R
|
||||
R.my_atom = src
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
var/list/food_inserted_micros
|
||||
|
||||
/obj/item/material/kitchen/utensil/Initialize()
|
||||
/obj/item/material/kitchen/utensil/Initialize(mapload)
|
||||
. = ..()
|
||||
if (prob(60))
|
||||
src.pixel_y = rand(0, 4)
|
||||
|
||||
@@ -26,7 +26,7 @@ var/global/list/cached_icons = list()
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/item/reagent_containers/glass/paint/Initialize()
|
||||
/obj/item/reagent_containers/glass/paint/Initialize(mapload)
|
||||
.=..()
|
||||
if(paint_type)
|
||||
reagents.add_reagent(REAGENT_ID_PAINT, volume, paint_type)
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
var/unfoldable = FALSE
|
||||
|
||||
|
||||
/obj/structure/picnic_blanket_deployed/for_mapping_use/Initialize()
|
||||
/obj/structure/picnic_blanket_deployed/for_mapping_use/Initialize(mapload)
|
||||
. = ..()
|
||||
unfold()
|
||||
if(unfoldable)
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
var/apply_tape = FALSE
|
||||
|
||||
/obj/item/taperoll/Initialize()
|
||||
/obj/item/taperoll/Initialize(mapload)
|
||||
. = ..()
|
||||
if(apply_tape)
|
||||
var/turf/T = get_turf(src)
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
var/tilted = 0
|
||||
icon_state = "holdingduffle"
|
||||
|
||||
/obj/item/storage/backpack/holding/duffle/Initialize()
|
||||
/obj/item/storage/backpack/holding/duffle/Initialize(mapload)
|
||||
. = ..()
|
||||
if(prob(50))
|
||||
icon_state = "[icon_state]_tilted"
|
||||
@@ -184,7 +184,7 @@
|
||||
var/can_tilt = 1
|
||||
max_storage_space = INVENTORY_DUFFLEBAG_SPACE
|
||||
|
||||
/obj/item/storage/backpack/dufflebag/Initialize()
|
||||
/obj/item/storage/backpack/dufflebag/Initialize(mapload)
|
||||
. = ..()
|
||||
if(prob(50))
|
||||
icon_state = "[icon_state]_tilted"
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
use_sound = 'sound/items/drop/flesh.ogg'
|
||||
var/egg_name = null //CHOMPAdd
|
||||
|
||||
/obj/item/storage/vore_egg/Initialize()
|
||||
/obj/item/storage/vore_egg/Initialize(mapload)
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@
|
||||
/obj/item/pen/crayon/purple
|
||||
)
|
||||
|
||||
/obj/item/storage/fancy/crayons/Initialize()
|
||||
/obj/item/storage/fancy/crayons/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
@@ -198,7 +198,7 @@
|
||||
/obj/item/pen/crayon/marker/purple
|
||||
)
|
||||
|
||||
/obj/item/storage/fancy/markers/Initialize()
|
||||
/obj/item/storage/fancy/markers/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette = 6)
|
||||
var/brand = "\improper Trans-Stellar Duty-free"
|
||||
|
||||
/obj/item/storage/fancy/cigarettes/Initialize()
|
||||
/obj/item/storage/fancy/cigarettes/Initialize(mapload)
|
||||
. = ..()
|
||||
flags |= NOREACT
|
||||
create_reagents(15 * storage_slots)//so people can inject cigarettes without opening a packet, now with being able to inject the whole one
|
||||
@@ -263,7 +263,7 @@
|
||||
C.brand = brand
|
||||
C.desc += " This one is \a [brand]."
|
||||
|
||||
/obj/item/storage/fancy/cigarettes/Initialize()
|
||||
/obj/item/storage/fancy/cigarettes/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!open_state)
|
||||
open_state = "[initial(icon_state)]_open"
|
||||
@@ -399,7 +399,7 @@
|
||||
icon_type = "cigar"
|
||||
starts_with = list(/obj/item/clothing/mask/smokable/cigarette/cigar = 5)
|
||||
|
||||
/obj/item/storage/fancy/cigar/Initialize()
|
||||
/obj/item/storage/fancy/cigar/Initialize(mapload)
|
||||
. = ..()
|
||||
flags |= NOREACT
|
||||
create_reagents(15 * storage_slots)
|
||||
@@ -410,7 +410,7 @@
|
||||
reagents.trans_to_obj(C, (reagents.total_volume/contents.len))
|
||||
return ..()
|
||||
|
||||
/obj/item/storage/fancy/cigar/Initialize()
|
||||
/obj/item/storage/fancy/cigar/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!open_state)
|
||||
open_state = "[initial(icon_state)]0"
|
||||
@@ -507,7 +507,7 @@
|
||||
storage_slots = 6
|
||||
req_access = list(access_virology)
|
||||
|
||||
/obj/item/storage/lockbox/vials/Initialize()
|
||||
/obj/item/storage/lockbox/vials/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
@@ -550,7 +550,7 @@
|
||||
/obj/item/reagent_containers/food/snacks/chocolatepiece/truffle
|
||||
)
|
||||
|
||||
/obj/item/storage/fancy/heartbox/Initialize()
|
||||
/obj/item/storage/fancy/heartbox/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
drop_sound = 'sound/items/drop/cardboardbox.ogg'
|
||||
pickup_sound = 'sound/items/pickup/cardboardbox.ogg'
|
||||
|
||||
/obj/item/storage/firstaid/Initialize()
|
||||
/obj/item/storage/firstaid/Initialize(mapload)
|
||||
. = ..()
|
||||
if(icon_variety)
|
||||
icon_state = pick(icon_variety)
|
||||
@@ -193,7 +193,7 @@
|
||||
var/base_name = " "
|
||||
var/base_desc = " "
|
||||
|
||||
/obj/item/storage/pill_bottle/Initialize()
|
||||
/obj/item/storage/pill_bottle/Initialize(mapload)
|
||||
. = ..()
|
||||
base_name = name
|
||||
base_desc = desc
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user