mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 15:48:49 +01:00
[MIRROR] next new to init (#10524)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Kashargul
parent
9156a08bf0
commit
55d696e503
@@ -14,14 +14,14 @@
|
||||
var/mob/living/carbon/human/watchowner = null
|
||||
|
||||
|
||||
/obj/item/deadringer/New()
|
||||
..()
|
||||
/obj/item/deadringer/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
/obj/item/deadringer/Destroy() //just in case some smartass tries to stay invisible by destroying the watch
|
||||
reveal()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/deadringer/dropped(mob/user)
|
||||
..()
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
/obj/item/implanter/exile
|
||||
name = "implanter-exile"
|
||||
|
||||
/obj/item/implanter/exile/New()
|
||||
src.imp = new /obj/item/implant/exile( src )
|
||||
..()
|
||||
/obj/item/implanter/exile/Initialize(mapload)
|
||||
. = ..()
|
||||
imp = new /obj/item/implant/exile(src)
|
||||
update()
|
||||
return
|
||||
|
||||
|
||||
/obj/item/implant/exile
|
||||
name = "exile"
|
||||
@@ -29,10 +27,9 @@
|
||||
icon_state = "implantcase-r"
|
||||
|
||||
|
||||
/obj/item/implantcase/exile/New()
|
||||
src.imp = new /obj/item/implant/exile( src )
|
||||
..()
|
||||
return
|
||||
/obj/item/implantcase/exile/Initialize(mapload)
|
||||
. = ..()
|
||||
src.imp = new /obj/item/implant/exile(src)
|
||||
|
||||
|
||||
/obj/structure/closet/secure_closet/exile
|
||||
|
||||
@@ -17,10 +17,10 @@
|
||||
var/fire_resist = 1
|
||||
var/expandType = /obj/effect/blob
|
||||
|
||||
/obj/effect/blob/New(loc)
|
||||
/obj/effect/blob/Initialize(mapload)
|
||||
. = ..()
|
||||
health = maxHealth
|
||||
update_icon()
|
||||
return ..(loc)
|
||||
|
||||
/obj/effect/blob/CanPass(var/atom/movable/mover, var/turf/target)
|
||||
return FALSE
|
||||
@@ -164,9 +164,9 @@
|
||||
/obj/effect/blob/core/update_icon()
|
||||
return
|
||||
|
||||
/obj/effect/blob/core/New(loc)
|
||||
/obj/effect/blob/core/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..(loc)
|
||||
|
||||
/obj/effect/blob/core/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
@@ -188,8 +188,8 @@
|
||||
brute_resist = 1
|
||||
fire_resist = 2
|
||||
|
||||
/obj/effect/blob/shield/New()
|
||||
..()
|
||||
/obj/effect/blob/shield/Initialize(mapload)
|
||||
. = ..()
|
||||
update_nearby_tiles()
|
||||
|
||||
/obj/effect/blob/shield/Destroy()
|
||||
|
||||
@@ -119,13 +119,13 @@
|
||||
|
||||
/datum/category_item/player_setup_item/vore/size/OnTopic(var/href, var/list/href_list, var/mob/user)
|
||||
if(href_list["size_multiplier"])
|
||||
var/new_size = tgui_input_number(user, "Choose your character's size, ranging from 25% to 200%", "Set Size", pref.size_multiplier*100, 200, 25)
|
||||
if (!ISINRANGE(new_size,25,200))
|
||||
var/new_size = tgui_input_number(user, "Choose your character's size, ranging from [RESIZE_MINIMUM * 100]% to [RESIZE_MAXIMUM * 100]%", "Set Size", pref.size_multiplier * 100, RESIZE_MAXIMUM * 100, RESIZE_MINIMUM * 100)
|
||||
if (!ISINRANGE(new_size, RESIZE_MINIMUM * 100, RESIZE_MAXIMUM * 100))
|
||||
pref.size_multiplier = 1
|
||||
to_chat(user, span_notice("Invalid size."))
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
else if(new_size)
|
||||
pref.size_multiplier = (new_size/100)
|
||||
pref.size_multiplier = (new_size / 100)
|
||||
return TOPIC_REFRESH_UPDATE_PREVIEW
|
||||
|
||||
else if(href_list["toggle_fuzzy"])
|
||||
|
||||
@@ -92,9 +92,9 @@ var/list/spawntypes = list()
|
||||
name = "JoinLateShuttle"
|
||||
delete_me = 1
|
||||
|
||||
/obj/effect/landmark/arrivals/New()
|
||||
/obj/effect/landmark/arrivals/Initialize(mapload)
|
||||
latejoin += loc
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
var/global/list/latejoin_tram = list()
|
||||
|
||||
@@ -102,9 +102,9 @@ var/global/list/latejoin_tram = list()
|
||||
name = "JoinLateTram"
|
||||
delete_me = 1
|
||||
|
||||
/obj/effect/landmark/tram/New()
|
||||
/obj/effect/landmark/tram/Initialize(mapload)
|
||||
latejoin_tram += loc // There's no tram but you know whatever man!
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/datum/spawnpoint/tram
|
||||
display_name = "Tram Station"
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
var/burn_damage = 0 // Specifically burn damage.
|
||||
var/base_name // Used to keep the original name safe while we apply modifiers.
|
||||
|
||||
/obj/item/clothing/suit/space/New()
|
||||
..()
|
||||
/obj/item/clothing/suit/space/Initialize(mapload)
|
||||
. = ..()
|
||||
base_name = "[name]"
|
||||
|
||||
//Some simple descriptors for breaches. Global because lazy, TODO: work out a better way to do this.
|
||||
|
||||
@@ -15,7 +15,8 @@
|
||||
drop_sound = 'sound/items/drop/ring.ogg'
|
||||
pickup_sound = 'sound/items/pickup/ring.ogg'
|
||||
|
||||
/obj/item/aliencoin/New()
|
||||
/obj/item/aliencoin/Initialize(mapload)
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
|
||||
/obj/item/aliencoin/basic
|
||||
|
||||
+17
-16
@@ -11,7 +11,8 @@
|
||||
var/tamper_proof = FALSE //Set to TRUE if the die needs to be unable to be weighted, such as for events
|
||||
attack_verb = list("diced")
|
||||
|
||||
/obj/item/dice/New()
|
||||
/obj/item/dice/Initialize(mapload)
|
||||
. = ..()
|
||||
icon_state = "[name][rand(1,sides)]"
|
||||
|
||||
/obj/item/dice/attackby(obj/item/W, mob/user)
|
||||
@@ -126,10 +127,10 @@
|
||||
drop_sound = 'sound/items/drop/hat.ogg'
|
||||
pickup_sound = 'sound/items/pickup/hat.ogg'
|
||||
|
||||
/obj/item/storage/pill_bottle/dice/New()
|
||||
..()
|
||||
/obj/item/storage/pill_bottle/dice/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 1 to 7)
|
||||
new /obj/item/dice( src )
|
||||
new /obj/item/dice(src)
|
||||
|
||||
/obj/item/storage/pill_bottle/dice_nerd //DnD dice
|
||||
name = "bag of gaming dice"
|
||||
@@ -139,15 +140,15 @@
|
||||
drop_sound = 'sound/items/drop/hat.ogg'
|
||||
pickup_sound = 'sound/items/pickup/hat.ogg'
|
||||
|
||||
/obj/item/storage/pill_bottle/dice_nerd/New()
|
||||
..()
|
||||
new /obj/item/dice/d4( src )
|
||||
new /obj/item/dice( src )
|
||||
new /obj/item/dice/d8( src )
|
||||
new /obj/item/dice/d10( src )
|
||||
new /obj/item/dice/d12( src )
|
||||
new /obj/item/dice/d20( src )
|
||||
new /obj/item/dice/d100( src )
|
||||
/obj/item/storage/pill_bottle/dice_nerd/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/dice/d4(src)
|
||||
new /obj/item/dice(src)
|
||||
new /obj/item/dice/d8(src)
|
||||
new /obj/item/dice/d10(src)
|
||||
new /obj/item/dice/d12(src)
|
||||
new /obj/item/dice/d20(src)
|
||||
new /obj/item/dice/d100(src)
|
||||
|
||||
/*
|
||||
*Liar's Dice cup
|
||||
@@ -198,7 +199,7 @@
|
||||
revealDice(player)
|
||||
|
||||
|
||||
/obj/item/storage/dicecup/loaded/New()
|
||||
..()
|
||||
/obj/item/storage/dicecup/loaded/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 1 to 5)
|
||||
new /obj/item/dice( src )
|
||||
new /obj/item/dice(src)
|
||||
|
||||
@@ -184,8 +184,8 @@
|
||||
power_draw_per_use = 20
|
||||
var/list/sounds = list()
|
||||
|
||||
/obj/item/integrated_circuit/output/sound/New()
|
||||
..()
|
||||
/obj/item/integrated_circuit/output/sound/Initialize(mapload)
|
||||
. = ..()
|
||||
extended_desc = list()
|
||||
extended_desc += "The first input pin determines which sound is used. The choices are; "
|
||||
extended_desc += jointext(sounds, ", ")
|
||||
|
||||
@@ -92,12 +92,9 @@ var/static/list/fake_sunlight_zs = list()
|
||||
var/weather_visuals_icon = 'icons/effects/weather.dmi'
|
||||
var/weather_visuals_icon_state = null
|
||||
|
||||
/obj/effect/fake_sun/New(loc, ...)
|
||||
/obj/effect/fake_sun/Initialize(mapload)
|
||||
. = ..()
|
||||
world_suns += src
|
||||
|
||||
/obj/effect/fake_sun/Initialize(mapload)
|
||||
..()
|
||||
if(!advanced_lighting)
|
||||
return INITIALIZE_HINT_LATELOAD
|
||||
do_sun = FALSE
|
||||
|
||||
@@ -105,9 +105,10 @@ GLOBAL_DATUM_INIT(mhelp_tickets, /datum/mentor_help_tickets, new)
|
||||
/obj/effect/statclick/mticket_list
|
||||
var/current_state
|
||||
|
||||
/obj/effect/statclick/mticket_list/New(loc, name, state)
|
||||
INITIALIZE_IMMEDIATE(/obj/effect/statclick/mticket_list)
|
||||
/obj/effect/statclick/mticket_list/Initialize(mapload, name, state)
|
||||
. = ..()
|
||||
current_state = state
|
||||
..()
|
||||
|
||||
/obj/effect/statclick/mticket_list/Click()
|
||||
GLOB.mhelp_tickets.BrowseTickets(current_state)
|
||||
@@ -398,9 +399,10 @@ GLOBAL_DATUM_INIT(mhelp_tickets, /datum/mentor_help_tickets, new)
|
||||
/obj/effect/statclick/mhelp
|
||||
var/datum/mentor_help/mhelp_datum
|
||||
|
||||
/obj/effect/statclick/mhelp/New(loc, datum/mentor_help/MH)
|
||||
INITIALIZE_IMMEDIATE(/obj/effect/statclick/mhelp)
|
||||
/obj/effect/statclick/mhelp/Initialize(mapload, datum/mentor_help/MH)
|
||||
mhelp_datum = MH
|
||||
..(loc)
|
||||
. = ..()
|
||||
|
||||
/obj/effect/statclick/mhelp/update()
|
||||
return ..(mhelp_datum.name)
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
var/codelen = 4
|
||||
locked = 1
|
||||
|
||||
/obj/structure/closet/crate/secure/loot/New()
|
||||
..()
|
||||
/obj/structure/closet/crate/secure/loot/Initialize(mapload)
|
||||
. = ..()
|
||||
var/list/digits = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
|
||||
|
||||
for(var/i in 1 to codelen)
|
||||
|
||||
@@ -678,7 +678,7 @@ var/list/mining_overlay_cache = list()
|
||||
if(is_clean)
|
||||
X = new /obj/item/archaeological_find(src, F.find_type)
|
||||
else
|
||||
X = new /obj/item/strangerock(src, inside_item_type = F.find_type)
|
||||
X = new /obj/item/strangerock(src, F.find_type)
|
||||
geologic_data.UpdateNearbyArtifactInfo(src)
|
||||
var/obj/item/strangerock/SR = X
|
||||
SR.geologic_data = geologic_data
|
||||
|
||||
@@ -209,11 +209,11 @@ GLOBAL_LIST_EMPTY(unique_deployable)
|
||||
/obj/structure/table/survival_pod/update_icon()
|
||||
icon_state = "table"
|
||||
|
||||
/obj/structure/table/survival_pod/New()
|
||||
/obj/structure/table/survival_pod/Initialize(mapload)
|
||||
material = get_material_by_name(MAT_STEEL)
|
||||
. = ..()
|
||||
verbs -= /obj/structure/table/verb/do_flip
|
||||
verbs -= /obj/structure/table/proc/do_put
|
||||
..()
|
||||
|
||||
/obj/structure/table/survival_pod/dismantle(obj/item/tool/wrench/W, mob/user)
|
||||
to_chat(user, span_warning("You cannot dismantle \the [src]."))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/mob/living/silicon/ai/New(loc, var/datum/ai_laws/L, var/obj/item/mmi/B, var/safety = 0)
|
||||
..(loc, L, B, safety)
|
||||
/mob/living/silicon/ai/Initialize(mapload, var/datum/ai_laws/L, var/obj/item/mmi/B, var/safety = 0)
|
||||
. = ..(mapload, L, B, safety)
|
||||
add_language(LANGUAGE_BIRDSONG, 1)
|
||||
add_language(LANGUAGE_SAGARU, 1)
|
||||
add_language(LANGUAGE_CANILUNZT, 1)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
var/hudmode = null
|
||||
|
||||
/mob/living/silicon/New()
|
||||
silicon_mob_list |= src
|
||||
silicon_mob_list += src
|
||||
..()
|
||||
add_language(LANGUAGE_GALCOM)
|
||||
apply_default_language(GLOB.all_languages[LANGUAGE_GALCOM])
|
||||
|
||||
@@ -39,8 +39,8 @@
|
||||
|
||||
faction = FACTION_CATGIRL
|
||||
|
||||
/mob/living/simple_mob/vore/catgirl/New()
|
||||
..()
|
||||
/mob/living/simple_mob/vore/catgirl/Initialize(mapload)
|
||||
. = ..()
|
||||
if(random_skin)
|
||||
icon_living = pick(skins)
|
||||
icon_rest = "[icon_living]asleep"
|
||||
|
||||
@@ -48,11 +48,11 @@
|
||||
allow_mind_transfer = TRUE
|
||||
|
||||
// Pepe is love, not hate.
|
||||
/mob/living/simple_mob/vore/aggressive/frog/New()
|
||||
/mob/living/simple_mob/vore/aggressive/frog/Initialize(mapload)
|
||||
. = ..()
|
||||
if(rand(1,1000000) == 1)
|
||||
name = "rare Pepe"
|
||||
desc = "You found a rare Pepe. Screenshot for good luck."
|
||||
..()
|
||||
|
||||
/mob/living/simple_mob/vore/aggressive/frog/do_special_attack(atom/A)
|
||||
set_AI_busy(TRUE)
|
||||
|
||||
@@ -148,8 +148,8 @@
|
||||
|
||||
glow_toggle = !glow_toggle
|
||||
|
||||
/mob/living/simple_mob/vore/leopardmander/exotic/New()
|
||||
..()
|
||||
/mob/living/simple_mob/vore/leopardmander/exotic/Initialize(mapload)
|
||||
. = ..()
|
||||
add_verb(src, /mob/living/simple_mob/vore/leopardmander/exotic/proc/toggle_glow)
|
||||
|
||||
/mob/living/simple_mob/vore/leopardmander/exotic/init_vore()
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
tt_desc = "E Homo sapiens corydon horrificus" //this is a redspace clown
|
||||
faction = FACTION_CLOWN
|
||||
|
||||
/mob/living/simple_mob/clowns/big/c_shift/New()
|
||||
..()
|
||||
/mob/living/simple_mob/clowns/big/c_shift/Initialize(mapload)
|
||||
. = ..()
|
||||
add_verb(src, /mob/living/simple_mob/clowns/big/c_shift/proc/phase_shift)
|
||||
|
||||
@@ -30,8 +30,8 @@
|
||||
|
||||
faction = FACTION_PEASANT
|
||||
|
||||
/mob/living/simple_mob/vore/peasant/New()
|
||||
..()
|
||||
/mob/living/simple_mob/vore/peasant/Initialize(mapload)
|
||||
. = ..()
|
||||
if(random_skin)
|
||||
icon_living = pick(skins)
|
||||
icon_rest = "[icon_living]asleep"
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
var/last_pet // This tracks the last time someone patted us.
|
||||
var/grump_decay = 5 SECONDS // This is how quickly our grumpiness decays.
|
||||
|
||||
/mob/living/simple_mob/vore/rabbit/New()
|
||||
/mob/living/simple_mob/vore/rabbit/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
if(!body_color)
|
||||
|
||||
@@ -65,8 +65,8 @@
|
||||
vore_pounce_maxhealth = 125
|
||||
vore_bump_emote = "tries to snap up"
|
||||
|
||||
/mob/living/simple_mob/vore/raptor/New()
|
||||
..()
|
||||
/mob/living/simple_mob/vore/raptor/Initialize(mapload)
|
||||
. = ..()
|
||||
if(random_skin)
|
||||
icon_living = pick(skins)
|
||||
initial_icon = icon_living
|
||||
|
||||
@@ -58,8 +58,8 @@
|
||||
|
||||
allow_mind_transfer = TRUE
|
||||
|
||||
/mob/living/simple_mob/vore/scel/New()
|
||||
..()
|
||||
/mob/living/simple_mob/vore/scel/Initialize(mapload)
|
||||
. = ..()
|
||||
if(random_skin)
|
||||
icon_living = pick(skins)
|
||||
icon_rest = "[icon_living]-rest"
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
say_list_type = /datum/say_list/softdog
|
||||
swallowTime = 0.1 SECONDS
|
||||
|
||||
/mob/living/simple_mob/vore/woof/New()
|
||||
..()
|
||||
/mob/living/simple_mob/vore/woof/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
add_verb(src, /mob/living/proc/ventcrawl)
|
||||
add_verb(src, /mob/living/proc/hide)
|
||||
|
||||
@@ -53,8 +53,8 @@ var/global/list/grub_machine_overlays = list()
|
||||
|
||||
glow_override = TRUE
|
||||
|
||||
/mob/living/simple_mob/animal/solargrub_larva/New()
|
||||
..()
|
||||
/mob/living/simple_mob/animal/solargrub_larva/Initialize(mapload)
|
||||
. = ..()
|
||||
existing_solargrubs += src
|
||||
powermachine = new(src)
|
||||
sparks = new(src)
|
||||
|
||||
@@ -19,11 +19,6 @@
|
||||
broken_damage = 150
|
||||
w_class = ITEMSIZE_HUGE
|
||||
|
||||
/obj/item/modular_computer/telescreen/New()
|
||||
..()
|
||||
// Allows us to create "north bump" "south bump" etc. named objects, for more comfortable mapping.
|
||||
name = "telescreen"
|
||||
|
||||
/obj/item/modular_computer/telescreen/attackby(var/obj/item/W as obj, var/mob/user as mob)
|
||||
if(W.has_tool_quality(TOOL_CROWBAR))
|
||||
if(anchored)
|
||||
|
||||
@@ -297,8 +297,8 @@
|
||||
icon = 'icons/obj/boxes.dmi'
|
||||
icon_state = "nifsoft_kit_sec"
|
||||
|
||||
/obj/item/storage/box/nifsofts_security/New()
|
||||
..()
|
||||
/obj/item/storage/box/nifsofts_security/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/nifsoft/security(src)
|
||||
|
||||
@@ -323,8 +323,8 @@
|
||||
icon = 'icons/obj/boxes.dmi'
|
||||
icon_state = "nifsoft_kit_eng"
|
||||
|
||||
/obj/item/storage/box/nifsofts_engineering/New()
|
||||
..()
|
||||
/obj/item/storage/box/nifsofts_engineering/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/nifsoft/engineering(src)
|
||||
|
||||
@@ -348,8 +348,8 @@
|
||||
icon = 'icons/obj/boxes.dmi'
|
||||
icon_state = "nifsoft_kit_med"
|
||||
|
||||
/obj/item/storage/box/nifsofts_medical/New()
|
||||
..()
|
||||
/obj/item/storage/box/nifsofts_medical/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/nifsoft/medical(src)
|
||||
|
||||
@@ -377,8 +377,8 @@
|
||||
icon = 'icons/obj/boxes.dmi'
|
||||
icon_state = "nifsoft_kit_mining"
|
||||
|
||||
/obj/item/storage/box/nifsofts_mining/New()
|
||||
..()
|
||||
/obj/item/storage/box/nifsofts_mining/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/nifsoft/mining(src)
|
||||
|
||||
@@ -406,8 +406,8 @@
|
||||
icon = 'icons/obj/boxes_vr.dmi'
|
||||
icon_state = "nifsoft_kit_pilot"
|
||||
|
||||
/obj/item/storage/box/nifsofts_pilot/New()
|
||||
..()
|
||||
/obj/item/storage/box/nifsofts_pilot/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/nifsoft/pilot(src)
|
||||
|
||||
@@ -429,7 +429,7 @@
|
||||
icon = 'icons/obj/boxes.dmi'
|
||||
icon_state = "nifsoft_kit_mining"
|
||||
|
||||
/obj/item/storage/box/nifsofts_sizechange/New()
|
||||
..()
|
||||
/obj/item/storage/box/nifsofts_sizechange/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/nifsoft/sizechange(src)
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
GLOBAL_DATUM_INIT(overmap_event_handler, /decl/overmap_event_handler, new)
|
||||
|
||||
/decl/overmap_event_handler
|
||||
var/list/hazard_by_turf
|
||||
var/list/ship_events
|
||||
|
||||
/decl/overmap_event_handler/New()
|
||||
..()
|
||||
hazard_by_turf = list()
|
||||
ship_events = list()
|
||||
var/list/hazard_by_turf = list()
|
||||
var/list/ship_events = list()
|
||||
|
||||
// Populates overmap with random events! Should be called once at startup at some point.
|
||||
/decl/overmap_event_handler/proc/create_events(var/z_level, var/overmap_size, var/number_of_events)
|
||||
|
||||
@@ -1,8 +1,3 @@
|
||||
var/list/exploration_cartridges = list(
|
||||
/obj/item/cartridge/explorer,
|
||||
/obj/item/cartridge/sar
|
||||
)
|
||||
|
||||
/obj/item/cartridge
|
||||
slot_flags = SLOT_EARS
|
||||
|
||||
|
||||
@@ -517,8 +517,8 @@ var/global/list/obj/item/pda/PDAs = list()
|
||||
icon = 'icons/obj/pda_vr.dmi' //VOREStation edit
|
||||
icon_state = "pdabox"
|
||||
|
||||
/obj/item/storage/box/PDAs/New()
|
||||
..()
|
||||
/obj/item/storage/box/PDAs/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/pda(src)
|
||||
new /obj/item/pda(src)
|
||||
new /obj/item/pda(src)
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
/obj/item/pda
|
||||
var/delete_id = FALSE //Guaranteed deletion of ID upon deletion of PDA
|
||||
|
||||
/obj/item/pda/multicaster/exploration/New()
|
||||
..()
|
||||
/obj/item/pda/multicaster/exploration
|
||||
owner = "Exploration Department" //CHOMP keep explo
|
||||
name = "Exploration Department (Relay)" //CHOMP keep explo
|
||||
cartridges_to_send_to = exploration_cartridges
|
||||
cartridges_to_send_to = list(/obj/item/cartridge/explorer,/obj/item/cartridge/sar)
|
||||
|
||||
/obj/item/pda/centcom
|
||||
default_cartridge = /obj/item/cartridge/captain
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
var/graffiti_age = 0
|
||||
var/author = "unknown"
|
||||
|
||||
/obj/effect/decal/writing/New(var/newloc, var/_age, var/_message, var/_author)
|
||||
..(newloc)
|
||||
/obj/effect/decal/writing/Initialize(mapload, var/_age, var/_message, var/_author)
|
||||
. = ..()
|
||||
if(!isnull(_age))
|
||||
graffiti_age = _age
|
||||
if(!isnull(_message))
|
||||
|
||||
@@ -12,13 +12,10 @@
|
||||
var/radioactivity = 0
|
||||
var/const/initial_amount = 3000000
|
||||
|
||||
/obj/item/fuel_assembly/New(var/newloc, var/_material, var/_colour)
|
||||
/obj/item/fuel_assembly/Initialize(mapload, var/_material, var/_colour)
|
||||
. = ..()
|
||||
fuel_type = _material
|
||||
fuel_colour = _colour
|
||||
..(newloc)
|
||||
|
||||
/obj/item/fuel_assembly/Initialize(mapload)
|
||||
. = ..()
|
||||
var/datum/material/material = get_material_by_name(fuel_type)
|
||||
if(istype(material))
|
||||
name = "[material.use_name] fuel rod assembly"
|
||||
@@ -53,14 +50,14 @@
|
||||
return ..()
|
||||
|
||||
// Mapper shorthand.
|
||||
/obj/item/fuel_assembly/deuterium/New(var/newloc)
|
||||
..(newloc, MAT_DEUTERIUM)
|
||||
/obj/item/fuel_assembly/deuterium/Initialize(mapload)
|
||||
. = ..(mapload, MAT_DEUTERIUM)
|
||||
|
||||
/obj/item/fuel_assembly/tritium/New(var/newloc)
|
||||
..(newloc, MAT_TRITIUM)
|
||||
/obj/item/fuel_assembly/tritium/Initialize(mapload)
|
||||
. = ..(mapload, MAT_TRITIUM)
|
||||
|
||||
/obj/item/fuel_assembly/phoron/New(var/newloc)
|
||||
..(newloc, MAT_PHORON)
|
||||
/obj/item/fuel_assembly/phoron/Initialize(mapload)
|
||||
. = ..(mapload, MAT_PHORON)
|
||||
|
||||
/obj/item/fuel_assembly/supermatter/New(var/newloc)
|
||||
..(newloc, MAT_SUPERMATTER)
|
||||
/obj/item/fuel_assembly/supermatter/Initialize(mapload)
|
||||
. = ..(mapload, MAT_SUPERMATTER)
|
||||
|
||||
@@ -1095,8 +1095,8 @@ var/global/list/light_type_cache = list()
|
||||
desc = "A broken [name]."
|
||||
|
||||
|
||||
/obj/item/light/New(atom/newloc, obj/machinery/light/fixture = null)
|
||||
..()
|
||||
/obj/item/light/Initialize(mapload, obj/machinery/light/fixture = null)
|
||||
. = ..()
|
||||
if(fixture)
|
||||
status = fixture.status
|
||||
rigged = fixture.rigged
|
||||
|
||||
@@ -633,10 +633,10 @@
|
||||
icon = 'icons/obj/supermatter.dmi'
|
||||
icon_state = "darkmatter_broken"
|
||||
|
||||
/obj/item/broken_sm/New()
|
||||
/obj/item/broken_sm/Initialize(mapload)
|
||||
. = ..()
|
||||
message_admins("Broken SM shard created at ([x],[y],[z] - <A href='byond://?_src_=holder;[HrefToken()];adminplayerobservecoodjump=1;X=[x];Y=[y];Z=[z]'>JMP</a>)",0,1)
|
||||
START_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
/obj/item/broken_sm/process()
|
||||
SSradiation.radiate(src, 50)
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
var/obj/item/projectile/BB = null //The loaded bullet - make it so that the projectiles are created only when needed?
|
||||
var/caseless = null //Caseless ammo deletes its self once the projectile is fired.
|
||||
|
||||
/obj/item/ammo_casing/New()
|
||||
..()
|
||||
/obj/item/ammo_casing/Initialize(mapload)
|
||||
. = ..()
|
||||
if(ispath(projectile_type))
|
||||
BB = new projectile_type(src)
|
||||
randpixel_xy()
|
||||
@@ -124,8 +124,8 @@
|
||||
var/list/icon_keys = list() //keys
|
||||
var/list/ammo_states = list() //values
|
||||
|
||||
/obj/item/ammo_magazine/New()
|
||||
..()
|
||||
/obj/item/ammo_magazine/Initialize(mapload)
|
||||
. = ..()
|
||||
pixel_x = rand(-5, 5)
|
||||
pixel_y = rand(-5, 5)
|
||||
if(multiple_sprites)
|
||||
|
||||
@@ -26,13 +26,13 @@
|
||||
|
||||
var/emagged = 0 // If you emag the smart mag, you can get the bullets out by clicking it
|
||||
|
||||
/obj/item/ammo_magazine/smart/New()
|
||||
/obj/item/ammo_magazine/smart/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
..()
|
||||
|
||||
/obj/item/ammo_magazine/smart/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/ammo_magazine/smart/process()
|
||||
if(!holding_gun) // Yes, this is awful, sorry. Don't know a better way to figure out if we've been moved into or out of a gun.
|
||||
|
||||
@@ -9,19 +9,18 @@
|
||||
|
||||
var/do_rotation = TRUE
|
||||
|
||||
/obj/item/broken_gun/New(var/newloc, var/path)
|
||||
..()
|
||||
/obj/item/broken_gun/Initialize(mapload, path)
|
||||
. = ..()
|
||||
if(path)
|
||||
if(!setup_gun(path))
|
||||
qdel(src)
|
||||
return
|
||||
return INITIALIZE_HINT_QDEL
|
||||
setup_repair_needs()
|
||||
|
||||
/obj/item/broken_gun/Initialize(mapload)
|
||||
. = ..()
|
||||
spawn(30 SECONDS)
|
||||
if(!my_guntype && !QDELETED(src))
|
||||
qdel(src)
|
||||
addtimer(CALLBACK(src, PROC_REF(validate_gun_type)), 30 SECONDS, TIMER_DELETE_ME)
|
||||
|
||||
/obj/item/broken_gun/proc/validate_gun_type()
|
||||
if(!my_guntype)
|
||||
qdel(src)
|
||||
|
||||
/obj/item/broken_gun/examine(mob/user)
|
||||
. = ..()
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
/obj/item/broken_gun/laserrifle/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/energy/laser/empty)
|
||||
/obj/item/broken_gun/laserrifle/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/energy/laser/empty)
|
||||
|
||||
/obj/item/broken_gun/laser_retro/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/energy/retro/empty)
|
||||
/obj/item/broken_gun/laser_retro/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/energy/retro/empty)
|
||||
|
||||
/obj/item/broken_gun/ionrifle/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/energy/ionrifle/empty)
|
||||
/obj/item/broken_gun/ionrifle/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/energy/ionrifle/empty)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
|
||||
/obj/item/broken_gun/grenadelauncher/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/launcher/grenade)
|
||||
/obj/item/broken_gun/grenadelauncher/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/launcher/grenade)
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
|
||||
/obj/item/broken_gun/flechette/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/magnetic/railgun/flechette)
|
||||
/obj/item/broken_gun/flechette/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/magnetic/railgun/flechette)
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
|
||||
/obj/item/broken_gun/c20r/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/projectile/automatic/c20r/empty)
|
||||
/obj/item/broken_gun/c20r/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/projectile/automatic/c20r/empty)
|
||||
|
||||
/obj/item/broken_gun/silenced45/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/projectile/silenced/empty)
|
||||
/obj/item/broken_gun/silenced45/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/projectile/silenced/empty)
|
||||
|
||||
/obj/item/broken_gun/pumpshotgun/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/projectile/shotgun/pump/empty)
|
||||
/obj/item/broken_gun/pumpshotgun/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/projectile/shotgun/pump/empty)
|
||||
|
||||
/obj/item/broken_gun/pumpshotgun_combat/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/projectile/shotgun/pump/combat/empty)
|
||||
/obj/item/broken_gun/pumpshotgun_combat/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/projectile/shotgun/pump/combat/empty)
|
||||
|
||||
/obj/item/broken_gun/z8/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/projectile/automatic/z8/empty)
|
||||
/obj/item/broken_gun/z8/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/projectile/automatic/z8/empty)
|
||||
|
||||
/obj/item/broken_gun/dartgun/New(var/newloc)
|
||||
..(newloc, /obj/item/gun/projectile/dartgun)
|
||||
/obj/item/broken_gun/dartgun/Initialize(mapload)
|
||||
. = ..(mapload, /obj/item/gun/projectile/dartgun)
|
||||
|
||||
@@ -126,8 +126,8 @@
|
||||
update_icon()
|
||||
//VOREStation Add End
|
||||
|
||||
/obj/item/gun/New()
|
||||
..()
|
||||
/obj/item/gun/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i in 1 to firemodes.len)
|
||||
firemodes[i] = new /datum/firemode(src, firemodes[i])
|
||||
|
||||
|
||||
@@ -14,14 +14,12 @@
|
||||
var/active = 0//Just tells us that it was clicked on so we should start shooting
|
||||
var/delay_del = 0//Delays the del if we retarget without shooting
|
||||
|
||||
/obj/screen/auto_target/New(loc, var/obj/item/gun/G)
|
||||
..()
|
||||
gun = G
|
||||
var/image/I = image('icons/effects/Targeted.dmi', src, "locked")
|
||||
I.override = 1
|
||||
usr << I
|
||||
//autodel() //Currently doesn't really work right.
|
||||
return
|
||||
/obj/screen/auto_target/Initialize(mapload, var/obj/item/gun/G)
|
||||
. = ..()
|
||||
gun = G
|
||||
var/image/I = image('icons/effects/Targeted.dmi', src, "locked")
|
||||
I.override = 1
|
||||
usr << I
|
||||
|
||||
/obj/screen/auto_target/CanPass()//Everything should ignore this guy and just pass by
|
||||
return 1
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
var/battery_lock = 0 //If set, weapon cannot switch batteries
|
||||
var/random_start_ammo = FALSE //if TRUE, the weapon will spawn with randomly-determined ammo
|
||||
|
||||
/obj/item/gun/energy/New()
|
||||
//..() CHOMPEdit moved to bottom
|
||||
/obj/item/gun/energy/Initialize(mapload)
|
||||
. = ..()
|
||||
var/static/list/gun_icons = icon_states('icons/obj/gun_ch.dmi')
|
||||
if (icon == 'icons/obj/gun_ch.dmi' && !(icon_state in gun_icons))
|
||||
icon = 'icons/obj/gun.dmi'
|
||||
@@ -45,14 +45,7 @@
|
||||
//random starting power! gives us a random number of shots in the battery between 0 and the max possible
|
||||
if(random_start_ammo && cell_type)
|
||||
power_supply.charge = charge_cost*rand(0,power_supply.maxcharge/charge_cost)
|
||||
//update_icon() //CHOMPRemove
|
||||
..() //CHOMPEdit if you see this, it is a cry for help. Please tell people to stop putting ..() at the top of New() :(
|
||||
|
||||
//CHOMPEdit Start
|
||||
/obj/item/gun/energy/Initialize(mapload)
|
||||
. = ..()
|
||||
update_icon()
|
||||
//CHOMPEdit End
|
||||
|
||||
/obj/item/gun/energy/Destroy()
|
||||
if(self_recharge)
|
||||
|
||||
@@ -248,8 +248,8 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(/obj/item/gun/projectile/cell_loaded,/obj/item/ammo_magazine/cell_mag,/obj/item/ammo_casing/microbattery)
|
||||
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack_hybrid/New()
|
||||
..()
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack_hybrid/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/gun/projectile/cell_loaded(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/advanced(src)
|
||||
new /obj/item/ammo_casing/microbattery/combat/stun(src)
|
||||
@@ -270,8 +270,8 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(/obj/item/gun/projectile/cell_loaded,/obj/item/ammo_magazine/cell_mag,/obj/item/ammo_casing/microbattery)
|
||||
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack_hybrid_combat/New()
|
||||
..()
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack_hybrid_combat/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/gun/projectile/cell_loaded(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/advanced(src)
|
||||
new /obj/item/ammo_casing/microbattery/combat/shotstun(src)
|
||||
|
||||
@@ -50,8 +50,8 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(/obj/item/gun/projectile/cell_loaded/medical,/obj/item/ammo_magazine/cell_mag/medical,/obj/item/ammo_casing/microbattery/medical)
|
||||
|
||||
/obj/item/storage/secure/briefcase/ml3m_pack_med/New()
|
||||
..()
|
||||
/obj/item/storage/secure/briefcase/ml3m_pack_med/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/gun/projectile/cell_loaded/medical(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/medical(src)
|
||||
new /obj/item/ammo_casing/microbattery/medical/brute(src)
|
||||
@@ -66,8 +66,8 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(/obj/item/gun/projectile/cell_loaded/medical,/obj/item/ammo_magazine/cell_mag/medical,/obj/item/ammo_casing/microbattery/medical)
|
||||
|
||||
/obj/item/storage/secure/briefcase/ml3m_pack_cmo/New()
|
||||
..()
|
||||
/obj/item/storage/secure/briefcase/ml3m_pack_cmo/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/gun/projectile/cell_loaded/medical/cmo(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/medical(src)
|
||||
new /obj/item/ammo_casing/microbattery/medical/brute(src)
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(/obj/item/gun/projectile/cell_loaded/combat,/obj/item/ammo_magazine/cell_mag/combat,/obj/item/ammo_casing/microbattery/combat)
|
||||
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack/New()
|
||||
..()
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/gun/projectile/cell_loaded/combat(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/combat(src)
|
||||
for(var/path in subtypesof(/obj/item/ammo_casing/microbattery/combat))
|
||||
@@ -62,8 +62,8 @@
|
||||
max_w_class = ITEMSIZE_NORMAL
|
||||
can_hold = list(/obj/item/gun/projectile/cell_loaded/combat,/obj/item/ammo_magazine/cell_mag/combat,/obj/item/ammo_casing/microbattery/combat)
|
||||
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack_hos/New()
|
||||
..()
|
||||
/obj/item/storage/secure/briefcase/nsfw_pack_hos/Initialize(mapload)
|
||||
. = ..()
|
||||
new /obj/item/gun/projectile/cell_loaded/combat(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/combat(src)
|
||||
new /obj/item/ammo_magazine/cell_mag/combat(src)
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
var/force_divisor = 400 // Force equates to speed. Speed/5 equates to a damage multiplier for whoever you hit.
|
||||
// For reference, a fully pressurized oxy tank at 50% gas release firing a health
|
||||
// analyzer with a force_divisor of 10 hit with a damage multiplier of 3000+.
|
||||
/obj/item/gun/launcher/pneumatic/New()
|
||||
..()
|
||||
/obj/item/gun/launcher/pneumatic/Initialize(mapload)
|
||||
. = ..()
|
||||
item_storage = new(src)
|
||||
item_storage.name = "hopper"
|
||||
item_storage.max_w_class = max_w_class
|
||||
|
||||
@@ -397,7 +397,8 @@
|
||||
else if(M.ear_damage >= 5)
|
||||
to_chat(M, span_danger("Your ears start to ring!"))
|
||||
//CHOMPEdit End
|
||||
/obj/item/gun/magnetic/fuelrod/New()
|
||||
|
||||
/obj/item/gun/magnetic/fuelrod/Initialize(mapload)
|
||||
cell = new /obj/item/cell/high
|
||||
capacitor = new /obj/item/stock_parts/capacitor
|
||||
. = ..()
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
//Excessively long because it won't accept subtypes for some reason!
|
||||
|
||||
|
||||
/obj/item/gun/energy/modular/New() //Initialize our components.
|
||||
..()
|
||||
/obj/item/gun/energy/modular/Initialize(mapload)
|
||||
. = ..()
|
||||
guncomponents = list()
|
||||
guncomponents += new /obj/item/stock_parts/capacitor
|
||||
guncomponents += new /obj/item/stock_parts/micro_laser
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
var/random_start_ammo = FALSE //randomize amount of starting ammo
|
||||
|
||||
/obj/item/gun/projectile/New(loc, var/starts_loaded = 1)
|
||||
..()
|
||||
/obj/item/gun/projectile/Initialize(mapload, var/starts_loaded = 1)
|
||||
. = ..()
|
||||
if(starts_loaded)
|
||||
if(ispath(ammo_type) && (load_method & (SINGLE_CASING|SPEEDLOADER)))
|
||||
for(var/i in 1 to max_shells)
|
||||
|
||||
@@ -232,8 +232,8 @@
|
||||
var/use_launcher = 0
|
||||
var/obj/item/gun/launcher/grenade/underslung/launcher
|
||||
|
||||
/obj/item/gun/projectile/automatic/z8/New()
|
||||
..()
|
||||
/obj/item/gun/projectile/automatic/z8/Initialize(mapload)
|
||||
. = ..()
|
||||
launcher = new(src)
|
||||
|
||||
/obj/item/gun/projectile/automatic/z8/attackby(obj/item/I, mob/user)
|
||||
|
||||
@@ -7,7 +7,8 @@
|
||||
|
||||
muzzle_type = null
|
||||
|
||||
/obj/item/projectile/bullet/chemdart/New()
|
||||
/obj/item/projectile/bullet/chemdart/Initialize(mapload)
|
||||
. = ..()
|
||||
reagents = new/datum/reagents(reagent_amount)
|
||||
reagents.my_atom = src
|
||||
|
||||
@@ -69,8 +70,8 @@
|
||||
var/container_type = /obj/item/reagent_containers/glass/beaker
|
||||
var/list/starting_chems = null
|
||||
|
||||
/obj/item/gun/projectile/dartgun/New()
|
||||
..()
|
||||
/obj/item/gun/projectile/dartgun/Initialize(mapload)
|
||||
. = ..()
|
||||
if(starting_chems)
|
||||
for(var/chem in starting_chems)
|
||||
var/obj/B = new container_type(src)
|
||||
|
||||
@@ -358,13 +358,13 @@
|
||||
/obj/item/ammo_casing/a545 = "5.45mm"
|
||||
)
|
||||
|
||||
/obj/item/gun/projectile/pirate/New()
|
||||
/obj/item/gun/projectile/pirate/Initialize(mapload)
|
||||
ammo_type = pick(ammo_types)
|
||||
desc += " Uses [ammo_types[ammo_type]] rounds."
|
||||
|
||||
var/obj/item/ammo_casing/ammo = ammo_type
|
||||
caliber = initial(ammo.caliber)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/*
|
||||
* Derringer
|
||||
|
||||
@@ -241,10 +241,10 @@
|
||||
var/list/tertiary_loaded = list()
|
||||
|
||||
|
||||
/obj/item/gun/projectile/revolver/lemat/New()
|
||||
/obj/item/gun/projectile/revolver/lemat/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i in 1 to secondary_max_shells)
|
||||
secondary_loaded += new secondary_ammo_type(src)
|
||||
..()
|
||||
|
||||
/obj/item/gun/projectile/revolver/lemat/verb/swap_firingmode()
|
||||
set name = "Swap Firing Mode"
|
||||
|
||||
@@ -49,24 +49,24 @@
|
||||
name = "AM rifle barrel"
|
||||
icon_state = "heavysniper-barrel"
|
||||
|
||||
/obj/item/sniper_rifle_part/barrel/New()
|
||||
..()
|
||||
/obj/item/sniper_rifle_part/barrel/Initialize(mapload)
|
||||
. = ..()
|
||||
barrel = src
|
||||
|
||||
/obj/item/sniper_rifle_part/stock
|
||||
name = "AM rifle stock"
|
||||
icon_state = "heavysniper-stock"
|
||||
|
||||
/obj/item/sniper_rifle_part/stock/New()
|
||||
..()
|
||||
/obj/item/sniper_rifle_part/stock/Initialize(mapload)
|
||||
. = ..()
|
||||
stock = src
|
||||
|
||||
/obj/item/sniper_rifle_part/trigger_group
|
||||
name = "AM rifle trigger assembly"
|
||||
icon_state = "heavysniper-trig"
|
||||
|
||||
/obj/item/sniper_rifle_part/trigger_group/New()
|
||||
..()
|
||||
/obj/item/sniper_rifle_part/trigger_group/Initialize(mapload)
|
||||
. = ..()
|
||||
trigger_group = src
|
||||
|
||||
/obj/item/sniper_rifle_part/attack_self(mob/user)
|
||||
|
||||
@@ -18,14 +18,14 @@
|
||||
fire_sound = 'sound/weapons/bladeslice.ogg'
|
||||
fire_sound_text = "a strange noise"
|
||||
|
||||
/obj/item/gun/launcher/spikethrower/New()
|
||||
..()
|
||||
/obj/item/gun/launcher/spikethrower/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
last_regen = world.time
|
||||
|
||||
/obj/item/gun/launcher/spikethrower/Destroy()
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/item/gun/launcher/spikethrower/process()
|
||||
if(spikes < max_spikes && world.time > last_regen + spike_gen_time)
|
||||
|
||||
@@ -149,10 +149,10 @@
|
||||
var/obj/item/ammo_casing/my_case = null
|
||||
|
||||
|
||||
/obj/item/projectile/New()
|
||||
/obj/item/projectile/Initialize(mapload)
|
||||
. = ..()
|
||||
if(istype(loc, /obj/item/ammo_casing))
|
||||
my_case = loc
|
||||
. = ..()
|
||||
|
||||
/obj/item/projectile/proc/Range()
|
||||
range--
|
||||
|
||||
@@ -14,11 +14,11 @@
|
||||
/obj/item/projectile/energy/blob/splattering
|
||||
splatter = TRUE
|
||||
|
||||
/obj/item/projectile/energy/blob/New()
|
||||
/obj/item/projectile/energy/blob/Initialize(mapload)
|
||||
. = ..()
|
||||
if(splatter)
|
||||
create_reagents(splatter_volume)
|
||||
ready_chemicals()
|
||||
..()
|
||||
|
||||
/obj/item/projectile/energy/blob/on_impact(var/atom/A)
|
||||
if(splatter)
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
var/active = 0 // Is our owner intending to take hostages?
|
||||
var/target_permissions = 0 // Permission bitflags.
|
||||
|
||||
/obj/aiming_overlay/New(var/newowner)
|
||||
..()
|
||||
owner = newowner
|
||||
loc = null
|
||||
/obj/aiming_overlay/Initialize(mapload)
|
||||
. = ..()
|
||||
owner = loc
|
||||
if(!istype(owner))
|
||||
return INITIALIZE_HINT_QDEL
|
||||
moveToNullspace()
|
||||
verbs.Cut()
|
||||
|
||||
/obj/aiming_overlay/proc/toggle_permission(var/perm)
|
||||
|
||||
@@ -51,8 +51,8 @@
|
||||
desc = "A glowing bulb of some sort."
|
||||
icon_state = "glowbulb"
|
||||
|
||||
/obj/structure/diona/bulb/New(var/newloc)
|
||||
..()
|
||||
/obj/structure/diona/bulb/Initialize(mapload)
|
||||
. = ..()
|
||||
set_light(3,3,"#557733")
|
||||
|
||||
/datum/random_map/automata/diona
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
desc = "Neutralizes toxins and provides a mild analgesic effect."
|
||||
icon_state = "pill2"
|
||||
|
||||
/obj/item/reagent_containers/pill/airlock/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/pill/airlock/Initialize(mapload)
|
||||
. = ..()
|
||||
reagents.add_reagent(REAGENT_ID_ANTITOXIN, 15)
|
||||
reagents.add_reagent(REAGENT_ID_PARACETAMOL, 5)
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
possible_transfer_amounts = null
|
||||
volume = 80
|
||||
|
||||
/obj/item/reagent_containers/spray/windowsealant/New()
|
||||
..()
|
||||
/obj/item/reagent_containers/spray/windowsealant/Initialize(mapload)
|
||||
. = ..()
|
||||
reagents.add_reagent(REAGENT_ID_SILICATE, 80)
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
var/dpdir = 0 // directions as disposalpipe
|
||||
var/base_state = "pipe-s"
|
||||
|
||||
/obj/structure/disposalconstruct/New(var/newturf, var/newtype, var/newdir, var/flipped, var/newsubtype)
|
||||
..(newturf)
|
||||
/obj/structure/disposalconstruct/Initialize(mapload, var/newtype, var/newdir, var/flipped, var/newsubtype)
|
||||
. = ..()
|
||||
ptype = newtype
|
||||
dir = newdir
|
||||
// Disposals handle "bent"/"corner" strangely, handle this specially.
|
||||
|
||||
@@ -809,11 +809,9 @@
|
||||
var/subtype = 0
|
||||
|
||||
// new pipe, set the icon_state as on map
|
||||
/obj/structure/disposalpipe/New()
|
||||
..()
|
||||
/obj/structure/disposalpipe/Initialize(mapload)
|
||||
. = ..()
|
||||
base_icon_state = icon_state
|
||||
return
|
||||
|
||||
|
||||
// pipe is deleted
|
||||
// ensure if holder is present, it is expelled
|
||||
@@ -1118,25 +1116,23 @@
|
||||
/obj/structure/disposalpipe/segment
|
||||
icon_state = "pipe-s"
|
||||
|
||||
/obj/structure/disposalpipe/segment/New()
|
||||
..()
|
||||
/obj/structure/disposalpipe/segment/Initialize(mapload)
|
||||
. = ..()
|
||||
if(icon_state == "pipe-s")
|
||||
dpdir = dir | turn(dir, 180)
|
||||
else
|
||||
dpdir = dir | turn(dir, -90)
|
||||
|
||||
update()
|
||||
return
|
||||
|
||||
///// Z-Level stuff
|
||||
/obj/structure/disposalpipe/up
|
||||
icon_state = "pipe-u"
|
||||
|
||||
/obj/structure/disposalpipe/up/New()
|
||||
..()
|
||||
/obj/structure/disposalpipe/up/Initialize(mapload)
|
||||
. = ..()
|
||||
dpdir = dir
|
||||
update()
|
||||
return
|
||||
|
||||
/obj/structure/disposalpipe/up/nextdir(var/fromdir)
|
||||
var/nextdir
|
||||
@@ -1182,11 +1178,10 @@
|
||||
/obj/structure/disposalpipe/down
|
||||
icon_state = "pipe-d"
|
||||
|
||||
/obj/structure/disposalpipe/down/New()
|
||||
..()
|
||||
/obj/structure/disposalpipe/down/Initialize(mapload)
|
||||
. = ..()
|
||||
dpdir = dir
|
||||
update()
|
||||
return
|
||||
|
||||
/obj/structure/disposalpipe/down/nextdir(var/fromdir)
|
||||
var/nextdir
|
||||
@@ -1237,8 +1232,8 @@
|
||||
/obj/structure/disposalpipe/junction
|
||||
icon_state = "pipe-j1"
|
||||
|
||||
/obj/structure/disposalpipe/junction/New()
|
||||
..()
|
||||
/obj/structure/disposalpipe/junction/Initialize(mapload)
|
||||
. = ..()
|
||||
if(icon_state == "pipe-j1")
|
||||
dpdir = dir | turn(dir, -90) | turn(dir,180)
|
||||
else if(icon_state == "pipe-j2")
|
||||
@@ -1295,7 +1290,7 @@
|
||||
else
|
||||
name = initial(name)
|
||||
|
||||
/obj/structure/disposalpipe/tagger/New()
|
||||
/obj/structure/disposalpipe/tagger/Initialize(mapload)
|
||||
. = ..()
|
||||
dpdir = dir | turn(dir, 180)
|
||||
if(sort_tag) GLOB.tagger_locations |= list("[sort_tag]" = get_z(src))
|
||||
@@ -1362,7 +1357,7 @@
|
||||
|
||||
dpdir = sortdir | posdir | negdir
|
||||
|
||||
/obj/structure/disposalpipe/sortjunction/New()
|
||||
/obj/structure/disposalpipe/sortjunction/Initialize(mapload)
|
||||
. = ..()
|
||||
if(sortType) GLOB.tagger_locations |= list("[sortType]" = get_z(src))
|
||||
|
||||
@@ -1552,10 +1547,9 @@
|
||||
// i.e. will be treated as an empty turf
|
||||
desc = "A broken piece of disposal pipe."
|
||||
|
||||
/obj/structure/disposalpipe/broken/New()
|
||||
..()
|
||||
/obj/structure/disposalpipe/broken/Initialize(mapload)
|
||||
. = ..()
|
||||
update()
|
||||
return
|
||||
|
||||
// called when welded
|
||||
// for broken pipe, remove and turn into scrap
|
||||
|
||||
@@ -228,9 +228,9 @@
|
||||
icon_state = "debris"
|
||||
w_class = ITEMSIZE_NORMAL
|
||||
|
||||
/obj/item/debris_pack/New(newloc, list/matter)
|
||||
..()
|
||||
src.matter = matter.Copy()
|
||||
/obj/item/debris_pack/Initialize(mapload, list/matter)
|
||||
. = ..()
|
||||
matter = matter.Copy()
|
||||
|
||||
/obj/item/material_dust
|
||||
name = "dust"
|
||||
@@ -240,8 +240,8 @@
|
||||
w_class = ITEMSIZE_SMALL
|
||||
var/material_name
|
||||
|
||||
/obj/item/material_dust/New(loc, mat)
|
||||
..()
|
||||
/obj/item/material_dust/Initialize(mapload, mat)
|
||||
. = ..()
|
||||
material_name = mat
|
||||
name = "[material_name] [initial(name)]"
|
||||
var/datum/material/M = get_material_by_name(material_name)
|
||||
|
||||
@@ -209,7 +209,8 @@ GLOBAL_LIST_INIT(design_datums, list())
|
||||
matter = list(MAT_STEEL = 30, MAT_GLASS = 10)
|
||||
var/datum/tech/stored
|
||||
|
||||
/obj/item/disk/tech_disk/New()
|
||||
/obj/item/disk/tech_disk/Initialize(mapload)
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
|
||||
/obj/item/disk/design_disk
|
||||
@@ -223,5 +224,6 @@ GLOBAL_LIST_INIT(design_datums, list())
|
||||
matter = list(MAT_STEEL = 30, MAT_GLASS = 10)
|
||||
var/datum/design/blueprint
|
||||
|
||||
/obj/item/disk/design_disk/New()
|
||||
/obj/item/disk/design_disk/Initialize(mapload)
|
||||
. = ..()
|
||||
randpixel_xy()
|
||||
|
||||
@@ -85,8 +85,8 @@
|
||||
desc = "A box of body record disks, apparently."
|
||||
icon_state = "disk_kit"
|
||||
|
||||
/obj/item/storage/box/body_record_disk/New()
|
||||
..()
|
||||
/obj/item/storage/box/body_record_disk/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 0 to 7)
|
||||
new /obj/item/disk/body_record(src)
|
||||
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
<b>Integrity:</b> Generally very survivable. Susceptible to being destroyed by acid."}
|
||||
return dat
|
||||
|
||||
/obj/item/implant/backup/New(newloc, db_key)
|
||||
/obj/item/implant/backup/Initialize(mapload, db_key)
|
||||
. = ..()
|
||||
src.db_key = db_key
|
||||
db_key = db_key
|
||||
|
||||
/obj/item/implant/backup/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -66,8 +66,8 @@
|
||||
|
||||
var/db_key // To give to the baby implants
|
||||
|
||||
/obj/item/backup_implanter/New()
|
||||
..()
|
||||
/obj/item/backup_implanter/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 1 to max_implants)
|
||||
var/obj/item/implant/backup/imp = new(src, db_key)
|
||||
imps |= imp
|
||||
@@ -134,10 +134,9 @@
|
||||
desc = "A case containing a backup implant."
|
||||
icon_state = "implantcase-b"
|
||||
|
||||
/obj/item/implantcase/backup/New()
|
||||
src.imp = new /obj/item/implant/backup(src)
|
||||
..()
|
||||
return
|
||||
/obj/item/implantcase/backup/Initialize(mapload)
|
||||
. = ..()
|
||||
imp = new /obj/item/implant/backup(src)
|
||||
|
||||
//The box of backup implants
|
||||
/obj/item/storage/box/backup_kit
|
||||
@@ -146,8 +145,8 @@
|
||||
icon_state = "implant"
|
||||
item_state_slots = list(slot_r_hand_str = "syringe_kit", slot_l_hand_str = "syringe_kit")
|
||||
|
||||
/obj/item/storage/box/backup_kit/New()
|
||||
..()
|
||||
/obj/item/storage/box/backup_kit/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/i = 1 to 7)
|
||||
new /obj/item/implantcase/backup(src)
|
||||
new /obj/item/implanter(src)
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
to_chat(our_infomorph, span_warning("You can feel the restricting binds of your card's directives taking hold of your mind as \the [user] swipes their [E] over you. You must serve your master."))
|
||||
|
||||
/obj/item/paicard/sleevecard/proc/sleeveInto(var/datum/transhuman/mind_record/MR, var/db_key)
|
||||
var/mob/living/silicon/pai/infomorph/infomorph = new(src,MR.mindname,db_key=db_key)
|
||||
var/mob/living/silicon/pai/infomorph/infomorph = new(src,MR.mindname,db_key)
|
||||
|
||||
for(var/datum/language/L in MR.languages)
|
||||
infomorph.add_language(L.name)
|
||||
@@ -83,8 +83,8 @@
|
||||
ram = 35
|
||||
var/emagged = FALSE
|
||||
|
||||
/mob/living/silicon/pai/infomorph/New(var/obj/item/paicard/sleevecard/SC, var/our_name = "Unknown", var/db_key)
|
||||
..()
|
||||
/mob/living/silicon/pai/infomorph/Initialize(mapload, var/our_name = "Unknown", var/db_key)
|
||||
. = ..()
|
||||
|
||||
name = our_name
|
||||
|
||||
|
||||
@@ -11,7 +11,8 @@
|
||||
anchored = TRUE
|
||||
var/datum/rogue/asteroid/myasteroid
|
||||
|
||||
/obj/asteroid_spawner/New()
|
||||
/obj/asteroid_spawner/Initialize(mapload)
|
||||
. = ..()
|
||||
if(loc && istype(loc,/turf/space) && istype(loc.loc,/area/asteroid/rogue))
|
||||
var/area/asteroid/rogue/A = loc.loc
|
||||
A.asteroid_spawns += src
|
||||
@@ -24,7 +25,8 @@
|
||||
anchored = TRUE
|
||||
var/mob/mymob
|
||||
|
||||
/obj/rogue_mobspawner/New()
|
||||
/obj/rogue_mobspawner/Initialize(mapload)
|
||||
. = ..()
|
||||
if(loc && istype(loc,/turf/space) && istype(loc.loc,/area/asteroid/rogue))
|
||||
var/area/asteroid/rogue/A = loc.loc
|
||||
A.mob_spawns += src
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/north/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/north/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = x
|
||||
teleport_y = 16
|
||||
teleport_z = z
|
||||
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/south/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/south/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = x
|
||||
teleport_y = world.maxy - 16
|
||||
teleport_z = z
|
||||
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/west/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/west/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = world.maxx - 16
|
||||
teleport_y = y
|
||||
teleport_z = z
|
||||
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/east/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/roguemine_loop/east/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = 16
|
||||
teleport_y = y
|
||||
teleport_z = z
|
||||
@@ -45,8 +45,8 @@
|
||||
var/rel_x
|
||||
var/rel_y
|
||||
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
|
||||
//Figure out where I am on the map and set up vars.
|
||||
@@ -82,29 +82,29 @@
|
||||
return
|
||||
|
||||
//These are placed ON the side they are named after.
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/onleft/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/onleft/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = quad_R - margin
|
||||
teleport_x_offset = quad_R - margin
|
||||
teleport_y = quad_D + margin
|
||||
teleport_y_offset = quad_U - margin
|
||||
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/onright/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/onright/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = quad_L + margin
|
||||
teleport_x_offset = quad_L + margin
|
||||
teleport_y = quad_D + margin
|
||||
teleport_y_offset = quad_U - margin
|
||||
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/ontop/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/ontop/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = quad_L + margin
|
||||
teleport_x_offset = quad_R - margin
|
||||
teleport_y = quad_D + margin
|
||||
teleport_y_offset = quad_D + margin
|
||||
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/onbottom/New()
|
||||
..()
|
||||
/obj/effect/step_trigger/teleporter/random/rogue/fourbyfour/onbottom/Initialize(mapload)
|
||||
. = ..()
|
||||
teleport_x = quad_L + margin
|
||||
teleport_x_offset = quad_R - margin
|
||||
teleport_y = quad_U - margin
|
||||
|
||||
@@ -36,15 +36,15 @@
|
||||
to_chat(user, span_notice("You scoop \the [S] into \the [src]."))
|
||||
|
||||
//Splice research sample containers into the list of valid items for these belts *without* overriding the lists entirely
|
||||
/obj/item/storage/belt/explorer/New()
|
||||
/obj/item/storage/belt/explorer/Initialize(mapload)
|
||||
. = ..()
|
||||
can_hold.Add(/obj/item/storage/sample_container)
|
||||
|
||||
/obj/item/storage/belt/miner/New()
|
||||
/obj/item/storage/belt/miner/Initialize(mapload)
|
||||
. = ..()
|
||||
can_hold.Add(/obj/item/storage/sample_container)
|
||||
|
||||
/obj/item/storage/belt/archaeology/New()
|
||||
/obj/item/storage/belt/archaeology/Initialize(mapload)
|
||||
. = ..()
|
||||
can_hold.Add(/obj/item/storage/sample_container)
|
||||
|
||||
|
||||
@@ -24,7 +24,8 @@
|
||||
var/max_ore = 5
|
||||
var/list/resource_list = list(/obj/item/ore/glass,/obj/item/ore/coal,/obj/item/ore/iron,/obj/item/ore/lead,/obj/item/ore/marble,/obj/item/ore/phoron,/obj/item/ore/silver,/obj/item/ore/gold)
|
||||
|
||||
/obj/item/research_sample/New()
|
||||
/obj/item/research_sample/Initialize(mapload)
|
||||
. = ..()
|
||||
var/tech_mod = rand(0,rand_level)
|
||||
var/tech_value = tech_level+tech_mod
|
||||
if(fixed_tech)
|
||||
@@ -261,8 +262,8 @@
|
||||
max_ore = 1
|
||||
resource_list = list(/obj/item/bluespace_crystal)
|
||||
|
||||
/obj/item/research_sample/bluespace/New()
|
||||
..()
|
||||
/obj/item/research_sample/bluespace/Initialize(mapload)
|
||||
. = ..()
|
||||
set_light(1, 3, lightcolor)
|
||||
|
||||
//catalogue data
|
||||
|
||||
@@ -16,7 +16,8 @@
|
||||
var/x_offset = 0 // Offset from the 'center' of where the projector is, so that if it moves, the shield can recalc its position.
|
||||
var/y_offset = 0 // Ditto.
|
||||
|
||||
/obj/effect/directional_shield/New(var/newloc, var/new_projector)
|
||||
/obj/effect/directional_shield/Initialize(mapload, var/new_projector)
|
||||
. = ..()
|
||||
if(new_projector)
|
||||
projector = new_projector
|
||||
var/turf/us = get_turf(src)
|
||||
@@ -26,7 +27,6 @@
|
||||
y_offset = us.y - them.y
|
||||
else
|
||||
update_color()
|
||||
..(newloc)
|
||||
|
||||
/obj/effect/directional_shield/proc/relocate()
|
||||
if(!projector)
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
var/ticks_recovering = 10
|
||||
var/max_strength = 10
|
||||
|
||||
/obj/effect/energy_field/New(var/newloc, var/new_gen)
|
||||
..(newloc)
|
||||
/obj/effect/energy_field/Initialize(mapload, var/new_gen)
|
||||
. = ..()
|
||||
my_gen = new_gen
|
||||
update_nearby_tiles()
|
||||
|
||||
|
||||
@@ -78,9 +78,9 @@
|
||||
anchored = TRUE
|
||||
var/turf/last_valid_turf
|
||||
|
||||
/obj/effect/dummy/spell_jaunt/New(var/location)
|
||||
..()
|
||||
last_valid_turf = get_turf(location)
|
||||
/obj/effect/dummy/spell_jaunt/Initialize(mapload)
|
||||
. = ..()
|
||||
last_valid_turf = get_turf(loc)
|
||||
|
||||
/obj/effect/dummy/spell_jaunt/Destroy()
|
||||
// Eject contents if deleted somehow
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
can_reinforce = 0
|
||||
flipped = -1
|
||||
|
||||
/obj/structure/table/rack/New()
|
||||
..()
|
||||
/obj/structure/table/rack/Initialize(mapload)
|
||||
. = ..()
|
||||
verbs -= /obj/structure/table/verb/do_flip
|
||||
verbs -= /obj/structure/table/proc/do_put
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
/obj/structure/table/rack/steel
|
||||
color = "#666666"
|
||||
|
||||
/obj/structure/table/rack/steel/New()
|
||||
/obj/structure/table/rack/steel/Initialize(mapload)
|
||||
material = get_material_by_name(MAT_STEEL)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/structure/table/rack/shelf
|
||||
name = "shelving"
|
||||
@@ -16,9 +16,9 @@
|
||||
/obj/structure/table/rack/shelf/steel
|
||||
color = "#666666"
|
||||
|
||||
/obj/structure/table/rack/shelf/steel/New()
|
||||
/obj/structure/table/rack/shelf/steel/Initialize(mapload)
|
||||
material = get_material_by_name(MAT_STEEL)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
// SOMEONE should add cool overlay stuff to this
|
||||
/obj/structure/table/rack/gun_rack
|
||||
@@ -29,20 +29,20 @@
|
||||
/obj/structure/table/rack/gun_rack/steel
|
||||
color = "#666666"
|
||||
|
||||
/obj/structure/table/rack/gun_rack/steel/New()
|
||||
/obj/structure/table/rack/gun_rack/steel/Initialize(mapload)
|
||||
material = get_material_by_name(MAT_STEEL)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/structure/table/rack/wood
|
||||
color = "#A1662F"
|
||||
|
||||
/obj/structure/table/rack/wood/New()
|
||||
/obj/structure/table/rack/wood/Initialize(mapload)
|
||||
material = get_material_by_name(MAT_WOOD)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
/obj/structure/table/rack/shelf/wood
|
||||
color = "#A1662F"
|
||||
|
||||
/obj/structure/table/rack/shelf/wood/New()
|
||||
/obj/structure/table/rack/shelf/wood/Initialize(mapload)
|
||||
material = get_material_by_name(MAT_WOOD)
|
||||
..()
|
||||
. = ..()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/obj/structure/window/New()
|
||||
..()
|
||||
/obj/structure/window/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/obj/structure/table/T in view(src, 1))
|
||||
T.update_connections()
|
||||
T.update_icon()
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
origin_tech = list(TECH_BLUESPACE = 6, TECH_MATERIAL = 3)
|
||||
var/blink_range = 8 // The teleport range when crushed/thrown at someone.
|
||||
|
||||
/obj/item/bluespace_crystal/New()
|
||||
..()
|
||||
/obj/item/bluespace_crystal/Initialize(mapload)
|
||||
. = ..()
|
||||
pixel_x = rand(-5, 5)
|
||||
pixel_y = rand(-5, 5)
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
if(istype(B) && recycled)
|
||||
g_damage = w_class / 2
|
||||
if(B.item_digest_logs)
|
||||
to_chat(B.owner,span_notice("[src] was digested inside your [lowertext(B.name)]."))
|
||||
to_chat(B.owner, span_vnotice("[src] was digested inside your [lowertext(B.name)]."))
|
||||
qdel(src)
|
||||
else if(istype(src,/obj/item/stack))
|
||||
var/obj/item/stack/S = src
|
||||
@@ -142,8 +142,8 @@
|
||||
new goodmeal.package_trash(src)
|
||||
if(goodmeal.trash)
|
||||
new goodmeal.trash(src)
|
||||
if(B.item_digest_logs)
|
||||
to_chat(B.owner,span_notice("[src] was digested inside your [lowertext(B.name)]."))
|
||||
if(istype(B) && B.item_digest_logs)
|
||||
to_chat(B.owner, span_vnotice("[src] was digested inside your [lowertext(B.name)]."))
|
||||
qdel(src)
|
||||
if(g_damage > w_class)
|
||||
return w_class
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
pickup_sound = 'sound/items/pickup/ring.ogg'
|
||||
projectile_type = /obj/item/projectile/bullet/cap //Just a placeholder. Doesn't actually matter what this is. All that matters is what the projecttile_type of our BB is.
|
||||
|
||||
/obj/item/ammo_casing/artifact/New() //These should ONLY ever be in artifact weapons. If you spawn outside of artifact weapons, it'll have a riot foam dart inside of it as the bullet.
|
||||
..()
|
||||
/obj/item/ammo_casing/artifact/Initialize(mapload) //These should ONLY ever be in artifact weapons. If you spawn outside of artifact weapons, it'll have a riot foam dart inside of it as the bullet.
|
||||
. = ..()
|
||||
BB = null
|
||||
if(istype(loc, /obj/item/gun/projectile/artifact)) //If we are IN an artifact gun
|
||||
var/obj/item/gun/projectile/artifact/our_gun = loc
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
origin_tech = list(TECH_MATERIAL = 5)
|
||||
w_class = ITEMSIZE_SMALL
|
||||
|
||||
/obj/item/strangerock/New(loc, var/inside_item_type = 0)
|
||||
/obj/item/strangerock/Initialize(mapload, var/inside_item_type = 0)
|
||||
. = ..()
|
||||
pixel_x = rand(0,16)-8
|
||||
pixel_y = rand(0,8)-8
|
||||
var/d100 = rand(1,100)
|
||||
|
||||
@@ -35,7 +35,8 @@
|
||||
var/last_twitch = 0
|
||||
var/max_stored_messages = 100
|
||||
|
||||
/obj/item/clothing/mask/gas/poltergeist/New()
|
||||
/obj/item/clothing/mask/gas/poltergeist/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
/obj/item/clothing/mask/gas/poltergeist/process()
|
||||
@@ -68,8 +69,8 @@
|
||||
var/wight_check_index = 1
|
||||
var/list/shadow_wights = list()
|
||||
|
||||
/obj/item/vampiric/New()
|
||||
..()
|
||||
/obj/item/vampiric/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
/obj/item/vampiric/process()
|
||||
@@ -157,8 +158,8 @@
|
||||
var/turf/target_turf
|
||||
var/loc_last_process
|
||||
|
||||
/obj/effect/decal/cleanable/blood/splatter/animated/New()
|
||||
..()
|
||||
/obj/effect/decal/cleanable/blood/splatter/animated/Initialize(mapload, _age)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
loc_last_process = src.loc
|
||||
|
||||
@@ -188,7 +189,8 @@
|
||||
icon_state = "shade"
|
||||
density = TRUE
|
||||
|
||||
/obj/effect/shadow_wight/New()
|
||||
/obj/effect/shadow_wight/Initialize(mapload)
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
/obj/effect/shadow_wight/process()
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
flags = OPENCONTAINER
|
||||
|
||||
|
||||
/obj/item/slime_extract/New()
|
||||
..()
|
||||
/obj/item/slime_extract/Initialize(mapload)
|
||||
create_reagents(60)
|
||||
. = ..()
|
||||
|
||||
/obj/item/slime_extract/attackby(obj/item/O, mob/user)
|
||||
if(istype(O, /obj/item/slimepotion/enhancer))
|
||||
|
||||
@@ -80,8 +80,8 @@ Slime definitions, Life and New live here.
|
||||
REAGENT_ID_WOODPULP = list(XENO_CHEM_HEAL = 0.1, XENO_CHEM_NUTRI = 0.7),
|
||||
REAGENT_ID_MUTATIONTOXIN = list(XENO_CHEM_NUTRI = 0.3) )
|
||||
|
||||
/mob/living/simple_mob/xeno/slime/New()
|
||||
..()
|
||||
/mob/living/simple_mob/xeno/slime/Initialize(mapload)
|
||||
. = ..()
|
||||
for(var/datum/language/L in subtypesof(/datum/language))
|
||||
languages += L
|
||||
speak += "[station_name()]?"
|
||||
@@ -90,4 +90,3 @@ Slime definitions, Life and New live here.
|
||||
resistances[BRUTE] = 0.2
|
||||
resistances[TOX] = 1.5
|
||||
GenerateChild()
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user