mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
comment out panicwriter and saytesting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
var/list/prob_G_list = list()
|
||||
|
||||
/proc/probG(var/define,var/everyother)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/probG() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/probG() called tick#: [world.time]")
|
||||
if(prob_G_list["[define]"])
|
||||
prob_G_list["[define]"] += 1
|
||||
if(prob_G_list["[define]"] == everyother)
|
||||
|
||||
@@ -102,7 +102,7 @@
|
||||
return
|
||||
|
||||
/datum/computer/file/computer_program/arcade/proc/arcade_action()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/computer/file/computer_program/arcade/proc/arcade_action() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/computer/file/computer_program/arcade/proc/arcade_action() called tick#: [world.time]")
|
||||
if ((src.enemy_mp <= 0) || (src.enemy_hp <= 0))
|
||||
src.gameover = 1
|
||||
src.temp = "[src.enemy_name] has fallen! Rejoice!"
|
||||
|
||||
@@ -332,14 +332,14 @@
|
||||
return
|
||||
|
||||
/obj/machinery/computer2/proc/send_command(command, datum/signal/signal)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/send_command() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/send_command() called tick#: [world.time]")
|
||||
for(var/obj/item/weapon/peripheral/P in src.peripherals)
|
||||
P.receive_command(src, command, signal)
|
||||
|
||||
del(signal)
|
||||
|
||||
/obj/machinery/computer2/proc/receive_command(obj/source, command, datum/signal/signal)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/receive_command() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/receive_command() called tick#: [world.time]")
|
||||
if(source in src.contents)
|
||||
|
||||
for(var/datum/computer/file/computer_program/P in src.processing_programs)
|
||||
@@ -351,7 +351,7 @@
|
||||
|
||||
|
||||
/obj/machinery/computer2/proc/run_program(datum/computer/file/computer_program/program,datum/computer/file/computer_program/host)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/run_program() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/run_program() called tick#: [world.time]")
|
||||
if(!program)
|
||||
return 0
|
||||
|
||||
@@ -369,7 +369,7 @@
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer2/proc/load_program(datum/computer/file/computer_program/program)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/load_program() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/load_program() called tick#: [world.time]")
|
||||
if((!program) || (!program.holder))
|
||||
return 0
|
||||
|
||||
@@ -390,7 +390,7 @@
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer2/proc/unload_program(datum/computer/file/computer_program/program)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/unload_program() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/unload_program() called tick#: [world.time]")
|
||||
if((!program) || (!src.hd))
|
||||
return 0
|
||||
|
||||
@@ -401,7 +401,7 @@
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer2/proc/delete_file(datum/computer/file/file)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/delete_file() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer2/proc/delete_file() called tick#: [world.time]")
|
||||
//world << "Deleting [file]..."
|
||||
if((!file) || (!file.holder) || (file.holder.read_only))
|
||||
//world << "Cannot delete :("
|
||||
|
||||
@@ -143,7 +143,7 @@
|
||||
return
|
||||
|
||||
proc/vend_prize()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/vend_prize() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/vend_prize() called tick#: [world.time]")
|
||||
var/obj/item/prize
|
||||
var/prizeselect = rand(1,4)
|
||||
var/turf/prize_location = null
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
|
||||
/proc/infect_virus2(var/mob/living/carbon/M,var/datum/disease2/disease/disease,var/forced = 0)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/infect_virus2() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/infect_virus2() called tick#: [world.time]")
|
||||
if(prob(disease.infectionchance))
|
||||
if(M.virus2)
|
||||
return
|
||||
@@ -52,7 +52,7 @@
|
||||
var/list/datum/disease2/effect/resistances = list()
|
||||
|
||||
proc/resistsdisease(var/datum/disease2/disease/virus2)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/resistsdisease() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/resistsdisease() called tick#: [world.time]")
|
||||
var/list/res2 = list()
|
||||
for(var/datum/disease2/effect/e in resistances)
|
||||
res2 += e.type
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
|
||||
/proc/infect_mob_random(var/mob/living/carbon/M)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/infect_mob_random() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/infect_mob_random() called tick#: [world.time]")
|
||||
if(!M.virus2)
|
||||
M.virus2 = new /datum/disease2/disease
|
||||
M.virus2.makerandom()
|
||||
@@ -88,7 +88,7 @@
|
||||
var/uniqueID = 0
|
||||
var/list/datum/disease2/effectholder/effects = list()
|
||||
proc/makerandom()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/makerandom() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/makerandom() called tick#: [world.time]")
|
||||
var/datum/disease2/effectholder/holder = new /datum/disease2/effectholder
|
||||
holder.stage = 1
|
||||
holder.getrandomeffect()
|
||||
@@ -109,12 +109,12 @@
|
||||
infectionchance = rand(1,10)
|
||||
spreadtype = "Airborne"
|
||||
proc/minormutate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/minormutate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/minormutate() called tick#: [world.time]")
|
||||
var/datum/disease2/effectholder/holder = pick(effects)
|
||||
holder.minormutate()
|
||||
infectionchance = min(10,infectionchance + rand(0,1))
|
||||
proc/issame(var/datum/disease2/disease/disease)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/issame() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/issame() called tick#: [world.time]")
|
||||
var/list/types = list()
|
||||
var/list/types2 = list()
|
||||
for(var/datum/disease2/effectholder/d in effects)
|
||||
@@ -130,7 +130,7 @@
|
||||
return equal
|
||||
|
||||
proc/activate(var/mob/living/carbon/mob)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/activate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/activate() called tick#: [world.time]")
|
||||
if(dead)
|
||||
mob.virus2 = null
|
||||
return
|
||||
@@ -148,18 +148,18 @@
|
||||
e.runeffect(mob,stage)
|
||||
|
||||
proc/cure_added(var/datum/disease2/resistance/res)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/cure_added() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/cure_added() called tick#: [world.time]")
|
||||
if(res.resistsdisease(src))
|
||||
dead = 1
|
||||
|
||||
proc/majormutate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/majormutate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/majormutate() called tick#: [world.time]")
|
||||
var/datum/disease2/effectholder/holder = pick(effects)
|
||||
holder.majormutate()
|
||||
|
||||
|
||||
proc/getcopy()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/getcopy() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/getcopy() called tick#: [world.time]")
|
||||
// world << "getting copy"
|
||||
var/datum/disease2/disease/disease = new /datum/disease2/disease
|
||||
disease.infectionchance = infectionchance
|
||||
@@ -184,7 +184,7 @@
|
||||
var/stage = 4
|
||||
var/maxm = 1
|
||||
proc/activate(var/mob/living/carbon/mob,var/multiplier)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/activate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/activate() called tick#: [world.time]")
|
||||
|
||||
/datum/disease2/effect/gibbingtons
|
||||
name = "Gibbingtons Syndrome"
|
||||
@@ -315,14 +315,14 @@
|
||||
var/stage = 0
|
||||
|
||||
proc/runeffect(var/mob/living/carbon/human/mob,var/stage)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/runeffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/runeffect() called tick#: [world.time]")
|
||||
if(happensonce > -1 && effect.stage <= stage && prob(chance))
|
||||
effect.activate(mob)
|
||||
if(happensonce == 1)
|
||||
happensonce = -1
|
||||
|
||||
proc/getrandomeffect()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/getrandomeffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/getrandomeffect() called tick#: [world.time]")
|
||||
var/list/datum/disease2/effect/list = list()
|
||||
for(var/e in (typesof(/datum/disease2/effect) - /datum/disease2/effect))
|
||||
// world << "Making [e]"
|
||||
@@ -333,16 +333,16 @@
|
||||
chance = rand(1,6)
|
||||
|
||||
proc/minormutate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/minormutate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/minormutate() called tick#: [world.time]")
|
||||
switch(pick(1,2,3,4,5))
|
||||
if(1)
|
||||
chance = rand(0,100)
|
||||
if(2)
|
||||
multiplier = rand(1,effect.maxm)
|
||||
proc/majormutate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/majormutate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/majormutate() called tick#: [world.time]")
|
||||
getrandomeffect()
|
||||
|
||||
/proc/dprob(var/p)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/dprob() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/dprob() called tick#: [world.time]")
|
||||
return(prob(sqrt(p)) && prob(sqrt(p)))
|
||||
|
||||
@@ -134,7 +134,7 @@
|
||||
|
||||
|
||||
/obj/machinery/computer/curer/proc/createcure(var/datum/disease2/disease/virus2)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/curer/proc/createcure() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/curer/proc/createcure() called tick#: [world.time]")
|
||||
var/obj/item/weapon/cureimplanter/implanter = new /obj/item/weapon/cureimplanter(src.loc)
|
||||
implanter.resistance = new /datum/disease2/resistance(dish.virus2)
|
||||
if(probG("Virus curing",3))
|
||||
@@ -144,7 +144,7 @@
|
||||
state("The [src.name] Buzzes")
|
||||
|
||||
/obj/machinery/computer/curer/proc/createvirus(var/datum/disease2/disease/virus2)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/curer/proc/createvirus() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/curer/proc/createvirus() called tick#: [world.time]")
|
||||
var/obj/item/weapon/cureimplanter/implanter = new /obj/item/weapon/cureimplanter(src.loc)
|
||||
implanter.name = "Viral implanter (MAJOR BIOHAZARD)"
|
||||
implanter.virus2 = dish.virus2.getcopy()
|
||||
@@ -153,6 +153,6 @@
|
||||
|
||||
|
||||
/obj/machinery/computer/curer/proc/state(var/msg)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/curer/proc/state() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/curer/proc/state() called tick#: [world.time]")
|
||||
for(var/mob/O in hearers(src, null))
|
||||
O.show_message("\icon[src] <span class='notice'>[msg]</span>", 2)
|
||||
|
||||
@@ -185,7 +185,7 @@
|
||||
return
|
||||
|
||||
/obj/machinery/computer/diseasesplicer/proc/state(var/msg)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/diseasesplicer/proc/state() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/diseasesplicer/proc/state() called tick#: [world.time]")
|
||||
for(var/mob/O in hearers(src, null))
|
||||
O.show_message("\icon[src] <span class='notice'>[msg]</span>", 2)
|
||||
|
||||
|
||||
@@ -172,6 +172,6 @@
|
||||
toxins += 1
|
||||
|
||||
proc/state(var/msg)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/state() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/state() called tick#: [world.time]")
|
||||
for(var/mob/O in hearers(src, null))
|
||||
O.show_message("\icon[src] <span class='notice'>[msg]</span>", 2)
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
return
|
||||
|
||||
/obj/machinery/filter_control/proc/updateicon()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/filter_control/proc/updateicon() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/filter_control/proc/updateicon() called tick#: [world.time]")
|
||||
overlays.len = 0
|
||||
if(stat & NOPOWER)
|
||||
icon_state = "filter_control-nopower"
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
*/
|
||||
|
||||
mob/verb/Convert(filename as file)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\mob/verb/Convert() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\mob/verb/Convert() called tick#: [world.time]")
|
||||
dmp2swapmap(filename)
|
||||
|
||||
proc/d2sm_prepmap(filename)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_prepmap() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_prepmap() called tick#: [world.time]")
|
||||
var/txt = file2text(filename)
|
||||
if(!txt) return
|
||||
var/i,j
|
||||
@@ -26,7 +26,7 @@ proc/d2sm_prepmap(filename)
|
||||
return txt
|
||||
|
||||
proc/dmp2swapmap(filename)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/dmp2swapmap() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/dmp2swapmap() called tick#: [world.time]")
|
||||
//var/txt = file2text(filename)
|
||||
//if(!txt) return
|
||||
var/txt = d2sm_prepmap(filename)
|
||||
@@ -191,7 +191,7 @@ proc/dmp2swapmap(filename)
|
||||
F << codes[pick(codes)] */
|
||||
|
||||
proc/d2sm_ParseCommaList(txt)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_ParseCommaList() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_ParseCommaList() called tick#: [world.time]")
|
||||
var/list/L=new
|
||||
var/i,ch
|
||||
for(i=1,i<=length(txt),++i)
|
||||
@@ -210,7 +210,7 @@ proc/d2sm_ParseCommaList(txt)
|
||||
return L
|
||||
|
||||
proc/d2sm_MatchBrace(txt, i, which)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_MatchBrace() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_MatchBrace() called tick#: [world.time]")
|
||||
if(which==40) ++which
|
||||
else which+=2
|
||||
var/j,ch
|
||||
@@ -222,7 +222,7 @@ proc/d2sm_MatchBrace(txt, i, which)
|
||||
if(!j) return 0
|
||||
|
||||
proc/d2sm_ConvertType(tt,tabs="")
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_ConvertType() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_ConvertType() called tick#: [world.time]")
|
||||
var/i=findText(tt,"{")
|
||||
if(!i) return "[tabs]type = [tt]\n"
|
||||
.="[tabs]type = [copytext(tt,1,i)]\n"
|
||||
@@ -232,7 +232,7 @@ proc/d2sm_ConvertType(tt,tabs="")
|
||||
.="[.][tabs][pair]\n"
|
||||
|
||||
proc/d2sm_Contents(list/conts,n,tabs="")
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_Contents() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/d2sm_Contents() called tick#: [world.time]")
|
||||
.="[tabs]contents = list("
|
||||
var/i
|
||||
for(i=0,i<n,++i)
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
return
|
||||
|
||||
/obj/item/weapon/ctf_flag/proc/check_if_equipped()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/weapon/ctf_flag/proc/check_if_equipped() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/weapon/ctf_flag/proc/check_if_equipped() called tick#: [world.time]")
|
||||
var/equipped = 0
|
||||
for(var/mob/M in living_mob_list)
|
||||
if(M &&!M.stat)
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
..()
|
||||
|
||||
/datum/game_mode/monkey/proc/is_important_monkey(var/mob/living/carbon/monkey/M as mob)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/monkey/proc/is_important_monkey() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/monkey/proc/is_important_monkey() called tick#: [world.time]")
|
||||
var/turf/T = get_turf(M)
|
||||
var/area/A = get_area(M)
|
||||
if(M.stat!=2)
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
|
||||
/datum/game_mode/proc/auto_declare_completion_monkey()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/proc/auto_declare_completion_monkey() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/proc/auto_declare_completion_monkey() called tick#: [world.time]")
|
||||
for(var/mob/living/carbon/monkey/monkey_player in mob_list)
|
||||
for(var/datum/disease/D in monkey_player.viruses)
|
||||
if (istype(D, /datum/disease/jungle_fever) && monkey_player.ckey)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
..()
|
||||
|
||||
/datum/game_mode/restructuring/proc/pick_target(who)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/pick_target() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/pick_target() called tick#: [world.time]")
|
||||
var/mob/target
|
||||
var/mob/target_desc
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
return 0
|
||||
|
||||
/datum/game_mode/restructuring/proc/get_mob_list()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/get_mob_list() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/get_mob_list() called tick#: [world.time]")
|
||||
var/list/mobs = list()
|
||||
for(var/mob/M in world)
|
||||
if (M.stat<2 && M.client && istype(M, /mob/living/carbon/human))
|
||||
@@ -64,13 +64,13 @@
|
||||
return mobs
|
||||
|
||||
/datum/game_mode/restructuring/proc/the_winner()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/the_winner() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/the_winner() called tick#: [world.time]")
|
||||
for(var/mob/M in world)
|
||||
if (M.stat<2 && M.client && istype(M, /mob/living/carbon/human))
|
||||
return M.name
|
||||
|
||||
/datum/game_mode/restructuring/proc/get_target_desc(mob/target) //return a useful string describing the target
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/get_target_desc() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/restructuring/proc/get_target_desc() called tick#: [world.time]")
|
||||
var/targetrank = null
|
||||
for(var/datum/data/record/R in data_core.general)
|
||||
if (R.fields["name"] == target.real_name)
|
||||
|
||||
@@ -90,15 +90,15 @@
|
||||
|
||||
|
||||
/datum/game_mode/ruby/proc/spawn_macguffin()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/ruby/proc/spawn_macguffin() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/datum/game_mode/ruby/proc/spawn_macguffin() called tick#: [world.time]")
|
||||
|
||||
/datum/game_mode/ruby/proc/get_possible_abominations()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\datum/game_mode/ruby/proc/get_possible_abominations() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\datum/game_mode/ruby/proc/get_possible_abominations() called tick#: [world.time]")
|
||||
|
||||
|
||||
/mob/proc/make_abomination()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\mob/proc/make_abomination() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\mob/proc/make_abomination() called tick#: [world.time]")
|
||||
src.see_in_dark = 20
|
||||
src.verbs += /client/proc/planar_shift
|
||||
src.verbs += /client/proc/vile_ressurection
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
|
||||
/client/proc/planar_shift()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/planar_shift() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/planar_shift() called tick#: [world.time]")
|
||||
set name = "Planar Shift"
|
||||
set category = "Abomination"
|
||||
// This is a pretty shitty way to do this. Should use the spell_holder method from Wizard mode
|
||||
@@ -135,7 +135,7 @@
|
||||
*/
|
||||
|
||||
/client/proc/vile_ressurection()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/vile_ressurection() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/vile_ressurection() called tick#: [world.time]")
|
||||
set name = "Vile Ressurection"
|
||||
set category = "Abomination"
|
||||
if(src.mob.stat != 2 || !src.mob)
|
||||
@@ -147,7 +147,7 @@
|
||||
// nope
|
||||
|
||||
/client/proc/defile_corpse(var/mob/living/carbon/human/H in view())
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/defile_corpse() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/defile_corpse() called tick#: [world.time]")
|
||||
set name = "Defile Corpse"
|
||||
set category = "Abomination"
|
||||
if(istype(H, /mob/living/carbon/human))
|
||||
@@ -159,7 +159,7 @@
|
||||
// play sound
|
||||
|
||||
/client/proc/summon_weapon()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/summon_weapon() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/summon_weapon() called tick#: [world.time]")
|
||||
set name = "Summon Weapon"
|
||||
set category = "Abomination"
|
||||
|
||||
@@ -176,7 +176,7 @@
|
||||
return
|
||||
|
||||
/client/proc/sacrifice_self()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/sacrifice_self() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/sacrifice_self() called tick#: [world.time]")
|
||||
set name = "Sacrifice Self"
|
||||
set category = "Abomination"
|
||||
set desc = "Everything must come to an end. After you have freed them, you must free yourself."
|
||||
@@ -190,7 +190,7 @@
|
||||
ticker.mode:abominationwins = 1
|
||||
|
||||
/client/proc/hunt()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/hunt() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/hunt() called tick#: [world.time]")
|
||||
set name = "Hunt"
|
||||
set category = "Abomination"
|
||||
set desc = ""
|
||||
@@ -256,7 +256,7 @@
|
||||
|
||||
|
||||
/client/proc/howl() // This is just a way for the Abomination to make the game more atmospheric periodically.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/howl() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/howl() called tick#: [world.time]")
|
||||
set name = "Howl"
|
||||
set category = "Abomination"
|
||||
set desc = ""
|
||||
@@ -279,7 +279,7 @@
|
||||
var/mob/owner
|
||||
|
||||
proc/check_owner()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/check_owner() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/check_owner() called tick#: [world.time]")
|
||||
if(!owner)
|
||||
sleep(300)
|
||||
if(!owner)
|
||||
@@ -288,7 +288,7 @@
|
||||
spawn(1800) check_owner()
|
||||
|
||||
proc/search_for_new_owner()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/search_for_new_owner() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/search_for_new_owner() called tick#: [world.time]")
|
||||
var/list/possible_owners = list()
|
||||
for(var/mob/living/carbon/human/H in mob_list)
|
||||
possible_owners.Add(H)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_cryokinesis_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_cryokinesis_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_cryokinesis_cd() called tick#: [world.time]")
|
||||
set name = "Cryokinesis (c)"
|
||||
set desc = "Drops the bodytemperature of another person. Currently on cooldown, ironically enough."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -31,7 +31,7 @@
|
||||
usr << "<span class='warning'>Your cryokinetic ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_cryokinesis(var/mob/living/carbon/C in view())
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_cryokinesis() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_cryokinesis() called tick#: [world.time]")
|
||||
set name = "Cryokinesis"
|
||||
set desc = "Drops the bodytemperature of another person."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -101,7 +101,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_mattereater_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_mattereater_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_mattereater_cd() called tick#: [world.time]")
|
||||
set name = "Eat (c)"
|
||||
set desc = "Eat just about anything! Currently on cooldown."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -109,7 +109,7 @@
|
||||
usr << "<span class='warning'>Your Matter Eating ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_mattereater()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_mattereater() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_mattereater() called tick#: [world.time]")
|
||||
set name = "Eat"
|
||||
set desc = "Eat just about anything!"
|
||||
set category = "Mutant Abilities"
|
||||
@@ -185,7 +185,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_jumpy_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_jumpy_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_jumpy_cd() called tick#: [world.time]")
|
||||
set name = "Jump (c)"
|
||||
set desc = "Leap great distances! Currently on cooldown."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -193,7 +193,7 @@
|
||||
usr << "<span class='warning'>Your Jumping ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_jumpy()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_jumpy() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_jumpy() called tick#: [world.time]")
|
||||
set name = "Jump"
|
||||
set desc = "Leap great distances!"
|
||||
set category = "Mutant Abilities"
|
||||
@@ -276,7 +276,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_polymorphism_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_polymorphism_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_polymorphism_cd() called tick#: [world.time]")
|
||||
set name = "Polymorph (c)"
|
||||
set desc = "Mimic the appearance of others! Currently on cooldown."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -284,7 +284,7 @@
|
||||
usr << "<span class='warning'>Your Polymorphing ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_polymorphism(var/mob/M in view())
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_polymorphism() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_polymorphism() called tick#: [world.time]")
|
||||
set name = "Polymorph"
|
||||
set desc = "Mimic the appearance of others!"
|
||||
set category = "Mutant Abilities"
|
||||
@@ -342,7 +342,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_telepathy(var/mob/living/carbon/M in range(7,usr))
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_telepathy() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_telepathy() called tick#: [world.time]")
|
||||
set name = "Telepathy"
|
||||
set desc = "Project your thoughts into the minds of other organics!"
|
||||
set category = "Mutant Abilities"
|
||||
@@ -401,7 +401,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_empath(var/mob/living/carbon/M in range(7,usr))
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_empath() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_empath() called tick#: [world.time]")
|
||||
set name = "Read Mind"
|
||||
set desc = "Read the minds of others for information."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -504,7 +504,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_immolate_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_immolate_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_immolate_cd() called tick#: [world.time]")
|
||||
set name = "Immolate (c)"
|
||||
set desc = "Wreath yourself in burning flames. Currently on cooldown."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -512,7 +512,7 @@
|
||||
usr << "<span class='warning'>Your Immolation ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_immolate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_immolate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_immolate() called tick#: [world.time]")
|
||||
set name = "Immolate"
|
||||
set desc = "Wreath yourself in burning flames."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -560,7 +560,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_melt()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_melt() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_melt() called tick#: [world.time]")
|
||||
set name = "Dissolve"
|
||||
set desc = "Transform yourself into a liquified state."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -614,7 +614,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_superfart_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_superfart_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_superfart_cd() called tick#: [world.time]")
|
||||
set name = "Super Fart (c)"
|
||||
set desc = "Unleash a gigantic fart! Currently on cooldown."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -622,7 +622,7 @@
|
||||
usr << "<span class='warning'>Your Super Fart ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_superfart()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_superfart() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_superfart() called tick#: [world.time]")
|
||||
set name = "Super Fart"
|
||||
set desc = "Unleash a gigantic fart!"
|
||||
set category = "Mutant Abilities"
|
||||
@@ -695,7 +695,7 @@
|
||||
return
|
||||
|
||||
/proc/bioproc_eyebeams_cd()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_eyebeams_cd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_eyebeams_cd() called tick#: [world.time]")
|
||||
set name = "Eye Beams (c)"
|
||||
set desc = "Shoot lasers from your eyes. Currently on cooldown."
|
||||
set category = "Mutant Abilities"
|
||||
@@ -703,7 +703,7 @@
|
||||
usr << "<span class='warning'>Your Eye Beams ability is recharging.</span>"
|
||||
|
||||
/proc/bioproc_eyebeams()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_eyebeams() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/bioproc_eyebeams() called tick#: [world.time]")
|
||||
set name = "Eye Beams"
|
||||
set desc = "Shoot lasers from your eyes."
|
||||
set category = "Mutant Abilities"
|
||||
|
||||
@@ -59,23 +59,23 @@ var/const/effectTypePower = 3
|
||||
return ..()
|
||||
|
||||
proc/OnAdd() //Called when the effect is added.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnAdd() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnAdd() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
proc/OnRemove() //Called when the effect is removed.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnRemove() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnRemove() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
proc/OnMobDraw() //Called when the overlays for the mob are drawn.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnMobDraw() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnMobDraw() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
proc/OnLife() //Called when the life proc of the mob is called.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnLife() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnLife() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
proc/GetCopy() //Gets a copy of this effect. Used to build local effect pool from global instance list. Please don't use this for anything else as it might not work as you think it should.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GetCopy() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GetCopy() called tick#: [world.time]")
|
||||
var/datum/bioEffect/E = new src.type()
|
||||
E.dnaBlocks.blockList = src.dnaBlocks.blockList //Since we assume that the effect being copied is the one in the global pool we copy a REFERENCE to its correct sequence into the new instance.
|
||||
return E
|
||||
@@ -90,7 +90,7 @@ var/const/effectTypePower = 3
|
||||
return ..()
|
||||
|
||||
proc/sequenceCorrect()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/sequenceCorrect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/sequenceCorrect() called tick#: [world.time]")
|
||||
if(blockList.len != blockListCurr.len) return 0 //Things went completely and entirely wrong and everything is broken HALP. Some dickwad probably messed with the global sequence.
|
||||
for(var/i=0, i < blockList.len, i++)
|
||||
var/datum/basepair/correct = blockList[i+1]
|
||||
@@ -100,7 +100,7 @@ var/const/effectTypePower = 3
|
||||
return 1
|
||||
|
||||
proc/pairCorrect(var/pair_index)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/pairCorrect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/pairCorrect() called tick#: [world.time]")
|
||||
if(blockList.len != blockListCurr.len || !pair_index)
|
||||
return 0
|
||||
var/datum/basepair/correct = blockList[pair_index]
|
||||
@@ -110,7 +110,7 @@ var/const/effectTypePower = 3
|
||||
return 1
|
||||
|
||||
proc/ModBlocks() //Gets the normal sequence for this mutation and then "corrupts" it locally.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/ModBlocks() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/ModBlocks() called tick#: [world.time]")
|
||||
for(var/datum/basepair/bp in blockList)
|
||||
var/datum/basepair/bpNew = new()
|
||||
bpNew.bpp1 = bp.bpp1
|
||||
@@ -159,7 +159,7 @@ var/const/effectTypePower = 3
|
||||
return sequenceCorrect()
|
||||
|
||||
proc/GenerateBlocks() //Generate DNA blocks. This sequence will be used globally.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GenerateBlocks() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GenerateBlocks() called tick#: [world.time]")
|
||||
for(var/i=0, i < owner.blockCount, i++)
|
||||
for(var/a=0, a < 4, a++) //4 pairs per block.
|
||||
var/S = pick("G", "T", "C" , "A")
|
||||
|
||||
@@ -5,7 +5,7 @@ var/numbersAndLetters = list("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "
|
||||
var/list/bioEffectList = null
|
||||
|
||||
/proc/biodbg()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/biodbg() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/biodbg() called tick#: [world.time]")
|
||||
usr:bioHolder:AddEffect("cryokinesis")
|
||||
usr:bioHolder:AddEffect("mattereater")
|
||||
usr:bioHolder:AddEffect("glowy")
|
||||
@@ -16,7 +16,7 @@ var/list/bioEffectList = null
|
||||
return
|
||||
|
||||
/proc/addBio()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/addBio() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/proc/addBio() called tick#: [world.time]")
|
||||
var/mob/M = input(usr, "Select Mob:") as mob in world
|
||||
if(!M) return
|
||||
//if(hasvar(M, "bioHolder"))
|
||||
@@ -52,7 +52,7 @@ var/list/bioEffectList = null
|
||||
var/gender = NEUTER
|
||||
|
||||
proc/CopyOther(var/datum/appearanceHolder/toCopy) //Copies settings of another given holder. Used for the bioholder copy proc and such things.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/CopyOther() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/CopyOther() called tick#: [world.time]")
|
||||
r_hair = toCopy.r_hair
|
||||
g_hair = toCopy.g_hair
|
||||
b_hair = toCopy.b_hair
|
||||
@@ -77,7 +77,7 @@ var/list/bioEffectList = null
|
||||
return
|
||||
|
||||
proc/StaggeredCopyOther(var/datum/appearanceHolder/toCopy, var/progress = 1)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/StaggeredCopyOther() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/StaggeredCopyOther() called tick#: [world.time]")
|
||||
var/adjust_denominator = 11 - progress
|
||||
r_hair += (toCopy.r_hair - r_hair) / adjust_denominator
|
||||
g_hair += (toCopy.g_hair - g_hair) / adjust_denominator
|
||||
@@ -106,7 +106,7 @@ var/list/bioEffectList = null
|
||||
return
|
||||
|
||||
proc/UpdateMob() //Rebuild the appearance of the mob from the settings in this holder.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/UpdateMob() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/UpdateMob() called tick#: [world.time]")
|
||||
if(!owner)
|
||||
return
|
||||
if(hasvar(owner, "hair_icon_state"))
|
||||
@@ -157,7 +157,7 @@ var/list/bioEffectList = null
|
||||
return ..()
|
||||
|
||||
proc/ActivatePoolEffect(var/datum/bioEffect/E)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/ActivatePoolEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/ActivatePoolEffect() called tick#: [world.time]")
|
||||
if(!effectPool.Find(E) || !E.dnaBlocks.sequenceCorrect() || HasEffect(E.id))
|
||||
return 0
|
||||
|
||||
@@ -169,7 +169,7 @@ var/list/bioEffectList = null
|
||||
return 1
|
||||
|
||||
proc/AddNewPoolEffect(var/idToAdd)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/AddNewPoolEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/AddNewPoolEffect() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/D in effectPool)
|
||||
if(lowertext(D.id) == lowertext(idToAdd))
|
||||
return 0
|
||||
@@ -187,7 +187,7 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/AddRandomNewPoolEffect()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/AddRandomNewPoolEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/AddRandomNewPoolEffect() called tick#: [world.time]")
|
||||
var/list/filteredList = list()
|
||||
|
||||
if (!bioEffectList || !bioEffectList.len)
|
||||
@@ -212,14 +212,14 @@ var/list/bioEffectList = null
|
||||
return 1
|
||||
|
||||
proc/RemovePoolEffect(var/datum/bioEffect/E)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RemovePoolEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RemovePoolEffect() called tick#: [world.time]")
|
||||
if(!effectPool.Find(E))
|
||||
return 0
|
||||
effectPool.Remove(E)
|
||||
return 1
|
||||
|
||||
proc/BuildEffectPool()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/BuildEffectPool() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/BuildEffectPool() called tick#: [world.time]")
|
||||
var/list/filteredGood = new/list()
|
||||
var/list/filteredBad = new/list()
|
||||
|
||||
@@ -264,7 +264,7 @@ var/list/bioEffectList = null
|
||||
effectPool = shuffle(effectPool)
|
||||
|
||||
proc/OnLife()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnLife() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnLife() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/curr in effects)
|
||||
curr.OnLife()
|
||||
if(curr.timeLeft != -1) curr.timeLeft--
|
||||
@@ -273,13 +273,13 @@ var/list/bioEffectList = null
|
||||
return
|
||||
|
||||
proc/OnMobDraw()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnMobDraw() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/OnMobDraw() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/curr in effects)
|
||||
curr.OnMobDraw()
|
||||
return
|
||||
|
||||
proc/CreateUid() //Creates a new uid and returns it.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/CreateUid() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/CreateUid() called tick#: [world.time]")
|
||||
var/newUid = ""
|
||||
|
||||
do
|
||||
@@ -290,7 +290,7 @@ var/list/bioEffectList = null
|
||||
return newUid
|
||||
|
||||
proc/CopyOther(var/datum/bioHolder/toCopy, var/copyAppearance = 1, var/copyPool = 1, var/copyEffectBlocks = 0, var/copyActiveEffects = 1) //Copies the settings of another given holder. Used for syringes, the dna spread virus and such things.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/CopyOther() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/CopyOther() called tick#: [world.time]")
|
||||
if(copyAppearance)
|
||||
mobAppearance.CopyOther(toCopy.mobAppearance)
|
||||
mobAppearance.UpdateMob()
|
||||
@@ -322,7 +322,7 @@ var/list/bioEffectList = null
|
||||
return
|
||||
|
||||
proc/StaggeredCopyOther(var/datum/bioHolder/toCopy, progress = 1)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/StaggeredCopyOther() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/StaggeredCopyOther() called tick#: [world.time]")
|
||||
if (progress >= 10)
|
||||
return CopyOther(toCopy)
|
||||
|
||||
@@ -336,7 +336,7 @@ var/list/bioEffectList = null
|
||||
age += (toCopy.age - age) / (11 - progress)
|
||||
|
||||
proc/AddEffect(var/idToAdd, var/variant = 0, var/timeleft = 0) //Adds an effect to this holder. Returns the newly created effect if succesful else 0.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/AddEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/AddEffect() called tick#: [world.time]")
|
||||
if(!owner) return
|
||||
|
||||
for(var/datum/bioEffect/D in effects)
|
||||
@@ -365,7 +365,7 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/RemoveEffect(var/id) //Removes an effect from this holder. Returns 1 on success else 0.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RemoveEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RemoveEffect() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/D in effects)
|
||||
if(lowertext(D.id) == lowertext(id))
|
||||
D.OnRemove()
|
||||
@@ -374,7 +374,7 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/RemoveAllEffects(var/type = null)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RemoveAllEffects() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RemoveAllEffects() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/D in effects)
|
||||
if(D.isHidden) continue
|
||||
if(type != null)
|
||||
@@ -385,7 +385,7 @@ var/list/bioEffectList = null
|
||||
return 1
|
||||
|
||||
proc/HasAnyEffect(var/type = null)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasAnyEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasAnyEffect() called tick#: [world.time]")
|
||||
if(type)
|
||||
for(var/datum/bioEffect/D in effects)
|
||||
if(D.effectType == type)
|
||||
@@ -395,7 +395,7 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/HasEffect(var/id) //Returns variant if this holder has an effect with the given ID else 0. Returns 1 if it has the effect with variant 0, special case for limb tone.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasEffect() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/D in effects)
|
||||
if(lowertext(D.id) == lowertext(id))
|
||||
if(D.variant == 0) return 1
|
||||
@@ -403,14 +403,14 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/HasEffectInPool(var/id)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasEffectInPool() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasEffectInPool() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/D in effectPool)
|
||||
if(lowertext(D.id) == lowertext(id))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
proc/HasOneOfTheseEffects() //HasAnyEffect() was already taken :I
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasOneOfTheseEffects() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasOneOfTheseEffects() called tick#: [world.time]")
|
||||
for (var/datum/bioEffect/D in effects)
|
||||
if (lowertext(D.id) in args)
|
||||
return (D.variant == 0 ? 1 : D.variant)
|
||||
@@ -418,7 +418,7 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/HasAllOfTheseEffects()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasAllOfTheseEffects() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/HasAllOfTheseEffects() called tick#: [world.time]")
|
||||
var/tally = 0 //We cannot edit the args list directly, so just keep a count.
|
||||
for (var/datum/bioEffect/D in effects)
|
||||
if (lowertext(D.id) in args)
|
||||
@@ -427,14 +427,14 @@ var/list/bioEffectList = null
|
||||
return tally >= args.len
|
||||
|
||||
proc/GetEffect(var/id) //Returns the effect with the given ID if it exists else returns null.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GetEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GetEffect() called tick#: [world.time]")
|
||||
for(var/datum/bioEffect/D in effects)
|
||||
if(lowertext(D.id) == lowertext(id))
|
||||
return D
|
||||
return null
|
||||
|
||||
proc/GetCooldownForEffect(var/id)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GetCooldownForEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/GetCooldownForEffect() called tick#: [world.time]")
|
||||
var/divider = 1
|
||||
for(var/datum/bioEffect/cooldown_reducer/D in effects)
|
||||
divider = D.divider
|
||||
@@ -444,7 +444,7 @@ var/list/bioEffectList = null
|
||||
return 0
|
||||
|
||||
proc/RandomEffect(var/type = "either", var/useprobability = 1) //Adds a random effect to this holder. Argument controls which type. bad , good, either.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RandomEffect() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/RandomEffect() called tick#: [world.time]")
|
||||
var/list/filtered = new/list()
|
||||
|
||||
for(var/T in bioEffectList)
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
src.name = "expended " + src.name
|
||||
|
||||
proc/injected(var/mob/living/carbon/user,var/mob/living/carbon/target)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/injected() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/injected() called tick#: [world.time]")
|
||||
if(!istype(user,/mob/living/carbon/) || !istype(target,/mob/living/carbon/))
|
||||
return 1
|
||||
if(!istype(target.bioHolder,/datum/bioHolder/))
|
||||
|
||||
@@ -185,7 +185,7 @@ var/list/genetics_computers = list()
|
||||
return
|
||||
|
||||
/obj/machinery/computer/genetics/proc/checkOccupant()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/checkOccupant() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/checkOccupant() called tick#: [world.time]")
|
||||
if(!scanner)
|
||||
info_html = "<p>No linked scanner detected. Cannot complete operation.</p>"
|
||||
src.updateUsrDialog()
|
||||
@@ -201,7 +201,7 @@ var/list/genetics_computers = list()
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer/genetics/proc/bioEffect_sanity_check(var/datum/bioEffect/E)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/bioEffect_sanity_check() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/bioEffect_sanity_check() called tick#: [world.time]")
|
||||
if(!istype(E,/datum/bioEffect/))
|
||||
info_html = "<p>Unable to scan gene. The gene may be corrupt.</p>"
|
||||
src.updateUsrDialog()
|
||||
@@ -209,7 +209,7 @@ var/list/genetics_computers = list()
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer/genetics/proc/sample_sanity_check(var/datum/computer/file/genetics_scan/S)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/sample_sanity_check() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/sample_sanity_check() called tick#: [world.time]")
|
||||
if (!istype(S,/datum/computer/file/genetics_scan/))
|
||||
info_html = "<p>Unable to scan DNA Sample. The sample may be corrupt.</p>"
|
||||
src.updateUsrDialog()
|
||||
@@ -217,7 +217,7 @@ var/list/genetics_computers = list()
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer/genetics/proc/research_sanity_check(var/datum/geneticsResearchEntry/R)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/research_sanity_check() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/research_sanity_check() called tick#: [world.time]")
|
||||
if (!istype(R,/datum/geneticsResearchEntry/))
|
||||
info_html = "<p>Invalid research article.</p>"
|
||||
src.updateUsrDialog()
|
||||
@@ -785,7 +785,7 @@ var/list/genetics_computers = list()
|
||||
return
|
||||
|
||||
/obj/machinery/computer/genetics/proc/equipment_available(var/equipment = "analyser",var/datum/bioEffect/E)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/equipment_available() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/equipment_available() called tick#: [world.time]")
|
||||
switch(equipment)
|
||||
if("analyser")
|
||||
if(genResearch.isResearched(/datum/geneticsResearchEntry/checker) && world.time >= src.equipment[2])
|
||||
@@ -814,7 +814,7 @@ var/list/genetics_computers = list()
|
||||
return 0
|
||||
|
||||
/obj/machinery/computer/genetics/proc/equipment_cooldown(var/equipment = "analyser")
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/equipment_cooldown() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/equipment_cooldown() called tick#: [world.time]")
|
||||
var/base_cooldown = 1
|
||||
var/equipment_num = 1
|
||||
switch(equipment)
|
||||
@@ -844,7 +844,7 @@ var/list/genetics_computers = list()
|
||||
src.equipment[equipment_num] = world.time + base_cooldown
|
||||
|
||||
/obj/machinery/computer/genetics/proc/ui_build_mutation_research(var/datum/bioEffect/E,var/datum/computer/file/genetics_scan/sample = null)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/ui_build_mutation_research() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/ui_build_mutation_research() called tick#: [world.time]")
|
||||
if(!E)
|
||||
return null
|
||||
|
||||
@@ -878,7 +878,7 @@ var/list/genetics_computers = list()
|
||||
return build
|
||||
|
||||
/obj/machinery/computer/genetics/proc/ui_build_sequence(var/datum/bioEffect/E, var/screen = "pool")
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/ui_build_sequence() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/ui_build_sequence() called tick#: [world.time]")
|
||||
if (!E)
|
||||
return list("ERROR","ERROR","ERROR")
|
||||
|
||||
@@ -919,7 +919,7 @@ var/list/genetics_computers = list()
|
||||
return build
|
||||
|
||||
/obj/machinery/computer/genetics/proc/ui_build_clickable_genes(var/screen = "pool",var/datum/computer/file/genetics_scan/sample)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/ui_build_clickable_genes() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/computer/genetics/proc/ui_build_clickable_genes() called tick#: [world.time]")
|
||||
if(screen == "sample_pool")
|
||||
if(!sample)
|
||||
return
|
||||
|
||||
@@ -20,7 +20,7 @@ var/datum/geneticsResearchManager/genResearch = new()
|
||||
var/lastTick = 0
|
||||
|
||||
proc/setup()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/setup() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/setup() called tick#: [world.time]")
|
||||
researchTree = (typesof(/datum/geneticsResearchEntry) - /datum/geneticsResearchEntry) - /datum/geneticsResearchEntry/mutation
|
||||
|
||||
for(var/entry in researchTree)
|
||||
@@ -38,14 +38,14 @@ var/datum/geneticsResearchManager/genResearch = new()
|
||||
return
|
||||
|
||||
proc/isResearched(var/type)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/isResearched() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/isResearched() called tick#: [world.time]")
|
||||
if(researchTree.Find(type))
|
||||
var/datum/geneticsResearchEntry/E = researchTree[type]
|
||||
if(E.isResearched == 1) return 1
|
||||
return 0
|
||||
|
||||
proc/progress()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/progress() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/progress() called tick#: [world.time]")
|
||||
//var/tickDiff = 0
|
||||
//if(!lastTick) lastTick = world.time
|
||||
//tickDiff = (world.time - lastTick)
|
||||
@@ -63,7 +63,7 @@ var/datum/geneticsResearchManager/genResearch = new()
|
||||
return
|
||||
|
||||
proc/addResearch(var/datum/D)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/addResearch() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/addResearch() called tick#: [world.time]")
|
||||
if(istype(D, /datum/bioEffect))
|
||||
var/datum/geneticsResearchEntry/mutation/M = new()
|
||||
|
||||
@@ -140,7 +140,7 @@ var/datum/geneticsResearchManager/genResearch = new()
|
||||
var/htmlIcon = null
|
||||
|
||||
proc/onFinish()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/onFinish() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/onFinish() called tick#: [world.time]")
|
||||
for (var/obj/machinery/computer/genetics/C in genetics_computers)
|
||||
if (C.tracked_research == src)
|
||||
C.tracked_research = null
|
||||
@@ -148,15 +148,15 @@ var/datum/geneticsResearchManager/genResearch = new()
|
||||
return
|
||||
|
||||
proc/onBegin()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/onBegin() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/onBegin() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
proc/onTick()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/onTick() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/onTick() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
proc/meetsRequirements()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/meetsRequirements() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/meetsRequirements() called tick#: [world.time]")
|
||||
if(src.isResearched == 1 || src.isResearched == -1)
|
||||
return 0
|
||||
|
||||
|
||||
@@ -108,7 +108,7 @@ var/list/genescanner_addresses = list()
|
||||
user << "<span class='info'>The scanner is not currently locked.</span>"
|
||||
|
||||
verb/move_inside()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/move_inside() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/move_inside() called tick#: [world.time]")
|
||||
set name = "Enter"
|
||||
set src in oview(1)
|
||||
|
||||
@@ -172,7 +172,7 @@ var/list/genescanner_addresses = list()
|
||||
return
|
||||
|
||||
verb/eject()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/eject() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/eject() called tick#: [world.time]")
|
||||
set name = "Eject Occupant"
|
||||
set src in oview(1)
|
||||
|
||||
@@ -187,7 +187,7 @@ var/list/genescanner_addresses = list()
|
||||
return
|
||||
|
||||
verb/lock()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/lock() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/lock() called tick#: [world.time]")
|
||||
set name = "Scanner Lock"
|
||||
set src in oview(1)
|
||||
|
||||
@@ -210,7 +210,7 @@ var/list/genescanner_addresses = list()
|
||||
src.occupant << "<span class='warning'>You hear the scanner's lock click into place.</span>"
|
||||
|
||||
proc/go_out()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/go_out() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/go_out() called tick#: [world.time]")
|
||||
if (!src.occupant)
|
||||
return
|
||||
|
||||
@@ -230,7 +230,7 @@ var/list/genescanner_addresses = list()
|
||||
return
|
||||
|
||||
proc/dna_scanner_new_file(var/datum/computer/file/genetics_scan/source_file)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/dna_scanner_new_file() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/dna_scanner_new_file() called tick#: [world.time]")
|
||||
if (!source_file)
|
||||
return
|
||||
var/datum/computer/file/genetics_scan/new_file = new /datum/computer/file/genetics_scan(genResearch.dna_samples)
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
/mob/living/silicon/hivebot/proc/pick_module()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/pick_module() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/pick_module() called tick#: [world.time]")
|
||||
if(src.module)
|
||||
return
|
||||
var/mod = input("Please, select a module!", "Robot", null, null) in list("Combat", "Engineering")
|
||||
@@ -254,14 +254,14 @@
|
||||
|
||||
|
||||
/mob/living/silicon/hivebot/proc/allowed(mob/M)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/allowed() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/allowed() called tick#: [world.time]")
|
||||
//check if it doesn't require any access at all
|
||||
if(src.check_access(null))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/mob/living/silicon/hivebot/proc/check_access(obj/item/weapon/card/id/I)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/check_access() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/check_access() called tick#: [world.time]")
|
||||
if(!istype(src.req_access, /list)) //something's very wrong
|
||||
return 1
|
||||
|
||||
@@ -277,7 +277,7 @@
|
||||
|
||||
/mob/living/silicon/hivebot/proc/updateicon()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/updateicon() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/updateicon() called tick#: [world.time]")
|
||||
|
||||
src.overlays.len = 0
|
||||
|
||||
@@ -289,7 +289,7 @@
|
||||
|
||||
/mob/living/silicon/hivebot/proc/installed_modules()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/installed_modules() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/installed_modules() called tick#: [world.time]")
|
||||
|
||||
if(!src.module)
|
||||
src.pick_module()
|
||||
@@ -373,7 +373,7 @@
|
||||
return
|
||||
|
||||
/mob/living/silicon/hivebot/proc/uneq_active()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/uneq_active() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/uneq_active() called tick#: [world.time]")
|
||||
if(isnull(src.module_active))
|
||||
return
|
||||
if(src.module_state_1 == src.module_active)
|
||||
@@ -400,7 +400,7 @@
|
||||
|
||||
|
||||
/mob/living/silicon/hivebot/proc/activated(obj/item/O)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/activated() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/activated() called tick#: [world.time]")
|
||||
if(src.module_state_1 == O)
|
||||
return 1
|
||||
else if(src.module_state_2 == O)
|
||||
@@ -411,7 +411,7 @@
|
||||
return 0
|
||||
|
||||
/mob/living/silicon/hivebot/proc/radio_menu()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/radio_menu() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/radio_menu() called tick#: [world.time]")
|
||||
var/dat = {"
|
||||
<TT>
|
||||
Microphone: [src.radio.broadcasting ? "<A href='byond://?src=\ref[src.radio];talk=0'>Engaged</A>" : "<A href='byond://?src=\ref[src.radio];talk=1'>Disengaged</A>"]<BR>
|
||||
@@ -497,13 +497,13 @@ Frequency:
|
||||
|
||||
|
||||
/mob/living/silicon/hivebot/verb/cmd_return_mainframe()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/verb/cmd_return_mainframe() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/verb/cmd_return_mainframe() called tick#: [world.time]")
|
||||
set category = "Robot Commands"
|
||||
set name = "Recall to Mainframe."
|
||||
return_mainframe()
|
||||
|
||||
/mob/living/silicon/hivebot/proc/return_mainframe()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/return_mainframe() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hivebot/proc/return_mainframe() called tick#: [world.time]")
|
||||
if(mainframe)
|
||||
mainframe.return_to(src)
|
||||
else
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
/obj/hud/proc/hivebot_hud()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/hud/proc/hivebot_hud() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/hud/proc/hivebot_hud() called tick#: [world.time]")
|
||||
|
||||
src.adding = list( )
|
||||
src.other = list( )
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
|
||||
|
||||
/mob/living/silicon/hive_mainframe/proc/return_to(var/mob/user)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/proc/return_to() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/proc/return_to() called tick#: [world.time]")
|
||||
if(user.mind)
|
||||
user.mind.transfer_to(src)
|
||||
spawn(20)
|
||||
@@ -81,14 +81,14 @@
|
||||
return
|
||||
|
||||
/mob/living/silicon/hive_mainframe/verb/cmd_deploy_to()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/verb/cmd_deploy_to() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/verb/cmd_deploy_to() called tick#: [world.time]")
|
||||
set category = "Mainframe Commands"
|
||||
set name = "Deploy to shell."
|
||||
deploy_to()
|
||||
|
||||
/mob/living/silicon/hive_mainframe/verb/deploy_to()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/verb/deploy_to() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/verb/deploy_to() called tick#: [world.time]")
|
||||
|
||||
if(usr.stat == 2 || (usr.status_flags & FAKEDEATH))
|
||||
usr << "You can't deploy because you are dead!"
|
||||
@@ -118,10 +118,10 @@
|
||||
|
||||
|
||||
/client/proc/MainframeMove(n,direct,var/mob/living/silicon/hive_mainframe/user)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/MainframeMove() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/client/proc/MainframeMove() called tick#: [world.time]")
|
||||
return
|
||||
/obj/hud/proc/hive_mainframe_hud()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/hud/proc/hive_mainframe_hud() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/hud/proc/hive_mainframe_hud() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@
|
||||
|
||||
|
||||
/mob/living/silicon/hive_mainframe/proc/Namepick()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/proc/Namepick() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/mob/living/silicon/hive_mainframe/proc/Namepick() called tick#: [world.time]")
|
||||
var/randomname = pick(ai_names)
|
||||
var/newname = input(src,"You are the a Mainframe Unit. Would you like to change your name to something else?", "Name change",randomname)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ var/list/datum/craftlathe_item/CRAFT_ITEMS = list()
|
||||
var/CRAFT_ITEMS_SETUP = 1 //this should probably be a pre-game thing, but i'll do it so the first lathe2 that's created will set-up the recipes.
|
||||
|
||||
proc/check_craftlathe_recipe(var/list/param_recipe)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/check_craftlathe_recipe() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/check_craftlathe_recipe() called tick#: [world.time]")
|
||||
if(param_recipe.len != 9)
|
||||
return
|
||||
var/i
|
||||
@@ -158,7 +158,7 @@ proc/check_craftlathe_recipe(var/list/param_recipe)
|
||||
return
|
||||
|
||||
/obj/machinery/autolathe2/proc/rmv_item(obj/item/W as obj)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/autolathe2/proc/rmv_item() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/autolathe2/proc/rmv_item() called tick#: [world.time]")
|
||||
if(istype(W,/obj/item/stack))
|
||||
var/obj/item/stack/S = W
|
||||
S.amount--
|
||||
@@ -168,7 +168,7 @@ proc/check_craftlathe_recipe(var/list/param_recipe)
|
||||
del(W)
|
||||
|
||||
/obj/machinery/autolathe2/proc/build_recipes()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/autolathe2/proc/build_recipes() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/autolathe2/proc/build_recipes() called tick#: [world.time]")
|
||||
//Parameters: ID, Name, Amount, Amount_added_per_attackby, Recipe, Object type
|
||||
CRAFT_ITEMS += new/datum/craftlathe_item("METAL","Metal",1,1,list("","","","","","","","",""),/obj/item/stack/sheet/metal)
|
||||
CRAFT_ITEMS += new/datum/craftlathe_item("R METAL","Reinforced Metal",1,1,list("","","","","","","","",""),/obj/item/stack/sheet/r_metal)
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
|
||||
|
||||
/obj/effect/mine_generator/proc/gererateTargetLoc() //this proc determines where the next square-room will end.
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/effect/mine_generator/proc/gererateTargetLoc() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/effect/mine_generator/proc/gererateTargetLoc() called tick#: [world.time]")
|
||||
switch(mineDirection)
|
||||
if(1)
|
||||
randXParam = 0
|
||||
@@ -122,7 +122,7 @@
|
||||
|
||||
/obj/effect/mine_generator/proc/fillWithAsteroids()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/effect/mine_generator/proc/fillWithAsteroids() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/effect/mine_generator/proc/fillWithAsteroids() called tick#: [world.time]")
|
||||
|
||||
if(last_loc)
|
||||
start_loc = last_loc
|
||||
|
||||
@@ -196,7 +196,7 @@ for (var/client/C)
|
||||
|
||||
/obj/machinery/rail_car/proc/load(var/atom/movable/C)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/rail_car/proc/load() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/rail_car/proc/load() called tick#: [world.time]")
|
||||
|
||||
if(get_dist(C, src) > 1)
|
||||
return
|
||||
@@ -222,7 +222,7 @@ for (var/client/C)
|
||||
//send_status()
|
||||
|
||||
/obj/machinery/rail_car/proc/unload(var/dirn = 0)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/rail_car/proc/unload() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/rail_car/proc/unload() called tick#: [world.time]")
|
||||
if(!load)
|
||||
return
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
|
||||
/obj/machinery/spaceship_builder/proc/buildShuttle(var/shuttle)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/spaceship_builder/proc/buildShuttle() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/spaceship_builder/proc/buildShuttle() called tick#: [world.time]")
|
||||
|
||||
var/shuttleat = null
|
||||
var/shuttleto = "/area/shipbuilder/station"
|
||||
@@ -99,7 +99,7 @@
|
||||
|
||||
/obj/machinery/spaceship_builder/proc/scrapShuttle()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/spaceship_builder/proc/scrapShuttle() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/spaceship_builder/proc/scrapShuttle() called tick#: [world.time]")
|
||||
|
||||
var/shuttleat = "/area/shipbuilder/station"
|
||||
var/shuttleto = currentShuttleArea
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
return
|
||||
|
||||
/obj/item/weapon/firbang/proc/prime()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/weapon/firbang/proc/prime() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/weapon/firbang/proc/prime() called tick#: [world.time]")
|
||||
playsound(src.loc, 'sound/effects/bang.ogg', 25, 1)
|
||||
var/turf/T = get_turf(src)
|
||||
if(T)
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
proc/propagate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/propagate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/propagate() called tick#: [world.time]")
|
||||
var/turf/T = get_step(src, dir)
|
||||
if(T)
|
||||
if(T.Enter(src))
|
||||
@@ -47,7 +47,7 @@
|
||||
|
||||
|
||||
proc/remove()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/remove() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/remove() called tick#: [world.time]")
|
||||
if(next)
|
||||
next.remove()
|
||||
del(src)
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
|
||||
proc/blocked(var/atom/A)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/blocked() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/blocked() called tick#: [world.time]")
|
||||
return density || opacity
|
||||
/*
|
||||
/turf/Enter(atom/movable/mover as mob|obj)
|
||||
@@ -111,7 +111,7 @@
|
||||
|
||||
proc/set_wavelength(var/lambda)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_wavelength() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_wavelength() called tick#: [world.time]")
|
||||
|
||||
var/w = round(lambda,1) // integer wavelength
|
||||
wavelength = lambda
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
updateicon()
|
||||
|
||||
verb/rotate()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/rotate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\verb/rotate() called tick#: [world.time]")
|
||||
set name = "Rotate"
|
||||
set src in view(1)
|
||||
turn_off()
|
||||
@@ -56,7 +56,7 @@
|
||||
return .
|
||||
|
||||
proc/turn_on()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/turn_on() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/turn_on() called tick#: [world.time]")
|
||||
if(!isturf(loc))
|
||||
return
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
beam.master = src
|
||||
|
||||
proc/turn_off()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/turn_off() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/turn_off() called tick#: [world.time]")
|
||||
if(beam)
|
||||
beam.remove()
|
||||
|
||||
@@ -73,5 +73,5 @@
|
||||
turn_on()
|
||||
|
||||
proc/updateicon()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/updateicon() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/updateicon() called tick#: [world.time]")
|
||||
icon_state = "pointer[on]"
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
//set the angle from icon_state and dir
|
||||
proc/set_angle()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_angle() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_angle() called tick#: [world.time]")
|
||||
switch(dir)
|
||||
if(1)
|
||||
angle = 0
|
||||
@@ -60,7 +60,7 @@
|
||||
|
||||
// set the dir and icon_state from the angle
|
||||
proc/set_dir()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_dir() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_dir() called tick#: [world.time]")
|
||||
if(angle%2 == 1)
|
||||
icon_state = "mirrorB"
|
||||
else
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
proc/scan_atom(atom/A as mob|obj|turf|area)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/scan_atom() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/scan_atom() called tick#: [world.time]")
|
||||
|
||||
if( !A || (!src.holder) || (!src.master))
|
||||
return 1
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
return
|
||||
|
||||
proc/post_status(var/command, var/data1, var/data2)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/post_status() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/post_status() called tick#: [world.time]")
|
||||
if(!src.master)
|
||||
return
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
verbs += /obj/item/clothing/suit/powered/proc/poweron
|
||||
|
||||
proc/poweron()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/poweron() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/poweron() called tick#: [world.time]")
|
||||
set category = "Object"
|
||||
set name = "Activate armor systems"
|
||||
|
||||
@@ -107,14 +107,14 @@
|
||||
|
||||
|
||||
proc/poweroff()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/poweroff() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/poweroff() called tick#: [world.time]")
|
||||
set category = "Object"
|
||||
set name = "Deactivate armor systems"
|
||||
powerdown() //BYOND doesn't seem to like it if you try using a proc with vars in it as a verb, hence this. --NEO
|
||||
|
||||
proc/powerdown(sudden = 0)
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/powerdown() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/powerdown() called tick#: [world.time]")
|
||||
|
||||
var/delay = sudden?0:20
|
||||
|
||||
@@ -207,7 +207,7 @@
|
||||
var/obj/item/clothing/suit/powered/parent
|
||||
|
||||
proc/atmotoggle()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/atmotoggle() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/atmotoggle() called tick#: [world.time]")
|
||||
set category = "Object"
|
||||
set name = "Toggle helmet seals"
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
var/slowdown = 0 //how much the component slows down the wearer
|
||||
|
||||
proc/toggle()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/toggle() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/toggle() called tick#: [world.time]")
|
||||
return
|
||||
//The child objects will use this proc
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
return
|
||||
|
||||
proc/checkpower()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/checkpower() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/checkpower() called tick#: [world.time]")
|
||||
return 1
|
||||
|
||||
plasma
|
||||
@@ -198,7 +198,7 @@
|
||||
desc = "Keeps the bad stuff out, but lets you remove your helmet without having to turn the whole suit off."
|
||||
|
||||
proc/helmtoggle(sudden = 0, manual = 0)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \ proc/helmtoggle() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \ proc/helmtoggle() called tick#: [world.time]")
|
||||
var/mob/living/carbon/human/user = usr
|
||||
var/obj/item/clothing/head/powered/helm
|
||||
if(user.head && istype(user.head,/obj/item/clothing/head/powered))
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
return
|
||||
|
||||
/obj/machinery/atmoalter/siphs/proc/releaseall()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/releaseall() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/releaseall() called tick#: [world.time]")
|
||||
src.t_status = 1
|
||||
src.t_per = max_valve
|
||||
return
|
||||
|
||||
/obj/machinery/atmoalter/siphs/proc/reset(valve, auto)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/reset() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/reset() called tick#: [world.time]")
|
||||
if(c_status!=0)
|
||||
return
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
return
|
||||
|
||||
/obj/machinery/atmoalter/siphs/proc/release(amount, flag)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/release() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/release() called tick#: [world.time]")
|
||||
/*
|
||||
var/T = src.loc
|
||||
if (!( istype(T, /turf) ))
|
||||
@@ -46,7 +46,7 @@
|
||||
*/ //TODO: FIX
|
||||
|
||||
/obj/machinery/atmoalter/siphs/proc/siphon(amount, flag)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/siphon() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/siphon() called tick#: [world.time]")
|
||||
/*
|
||||
var/T = src.loc
|
||||
if (!( istype(T, /turf) ))
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
/obj/machinery/atmoalter/siphs/proc/setstate()
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/setstate() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/atmoalter/siphs/proc/setstate() called tick#: [world.time]")
|
||||
|
||||
if(stat & NOPOWER)
|
||||
icon_state = "siphon:0"
|
||||
@@ -281,7 +281,7 @@
|
||||
//true if the siphon is portable (therfore no power needed)
|
||||
|
||||
/obj/machinery/proc/portable()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/proc/portable() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/proc/portable() called tick#: [world.time]")
|
||||
return istype(src, /obj/machinery/atmoalter/siphs/fullairsiphon/port) || istype(src, /obj/machinery/atmoalter/siphs/scrubbers/port)
|
||||
|
||||
/obj/machinery/atmoalter/siphs/power_change()
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
var/state = 0 // 0 - Idle, 1 - Spraying, 2 - Done, 3 - Overheated
|
||||
|
||||
obj/machinery/nanosprayer/proc/update_temp()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/update_temp() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/update_temp() called tick#: [world.time]")
|
||||
// 1 second : 1 degree
|
||||
if(src.state == 0)
|
||||
var/diff = (world.time - usr_lastupdate) * 10
|
||||
@@ -83,7 +83,7 @@ obj/machinery/nanosprayer/process()
|
||||
|
||||
|
||||
obj/machinery/nanosprayer/proc/cooldown()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/cooldown() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/cooldown() called tick#: [world.time]")
|
||||
while(state != 1)
|
||||
sleep(200)
|
||||
temp -= rand(5,20)
|
||||
@@ -92,11 +92,11 @@ obj/machinery/nanosprayer/proc/cooldown()
|
||||
return
|
||||
|
||||
obj/machinery/nanosprayer/proc/overheat()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/overheat() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/overheat() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
obj/machinery/nanosprayer/proc/complete()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/complete() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/nanosprayer/proc/complete() called tick#: [world.time]")
|
||||
src.totalpoints = 0
|
||||
src.points = 0
|
||||
spawn() cooldown()
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
|
||||
proc/group_self()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/group_self() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/group_self() called tick#: [world.time]")
|
||||
builders = list()
|
||||
turfs = list()
|
||||
components = list()
|
||||
@@ -77,12 +77,12 @@
|
||||
//world << "Ship initialization complete. [src.turfs.len] tiles added."
|
||||
|
||||
proc/receive_turf(var/turf/T)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/receive_turf() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/receive_turf() called tick#: [world.time]")
|
||||
turfs.Add(T)
|
||||
|
||||
|
||||
proc/MoveShip(var/turf/Center) // Center - The new position of the ship's core
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/MoveShip() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/MoveShip() called tick#: [world.time]")
|
||||
src.anchored = 0
|
||||
var/turf/lowerleft = locate(Center.x - (src.width/2), Center.y - (src.height/2), Center.z)
|
||||
var/turf/upperright = locate(Center.x + (src.width/2), Center.y + (src.height/2), Center.z)
|
||||
@@ -130,7 +130,7 @@
|
||||
src.group_self()
|
||||
|
||||
proc/draw_power(var/n as num)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/draw_power() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/draw_power() called tick#: [world.time]")
|
||||
for(var/obj/machinery/ship_component/engine/E in components)
|
||||
if(E.draw_power(n))
|
||||
return 1
|
||||
@@ -312,7 +312,7 @@ obj/machinery/ship_component/control_panel
|
||||
var/distance = 0
|
||||
|
||||
proc/scan()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/scan() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/scan() called tick#: [world.time]")
|
||||
if(distance < 0)
|
||||
cleanup_self()
|
||||
var/i
|
||||
@@ -325,7 +325,7 @@ obj/machinery/ship_component/control_panel
|
||||
sleep(0)
|
||||
cleanup_self()
|
||||
proc/cleanup_self()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/cleanup_self() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/cleanup_self() called tick#: [world.time]")
|
||||
core.builders.Remove(src)
|
||||
del(src)
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
src.speed = src.maximum_speed
|
||||
|
||||
/obj/machinery/vehicle/verb/eject()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/eject() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/eject() called tick#: [world.time]")
|
||||
set src = usr.loc
|
||||
|
||||
if (usr.stat)
|
||||
@@ -118,7 +118,7 @@
|
||||
return
|
||||
|
||||
/obj/machinery/vehicle/verb/board()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/board() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/board() called tick#: [world.time]")
|
||||
set src in oview(1)
|
||||
|
||||
if (usr.stat)
|
||||
@@ -136,7 +136,7 @@
|
||||
M.loc = src
|
||||
|
||||
/obj/machinery/vehicle/verb/unload(var/atom/movable/A in src)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/unload() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/unload() called tick#: [world.time]")
|
||||
set src in oview(1)
|
||||
|
||||
if (usr.stat)
|
||||
@@ -155,7 +155,7 @@
|
||||
M.client.eye = M
|
||||
|
||||
/obj/machinery/vehicle/verb/load()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/load() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/machinery/vehicle/verb/load() called tick#: [world.time]")
|
||||
set src in oview(1)
|
||||
|
||||
if (usr.stat)
|
||||
@@ -202,7 +202,7 @@
|
||||
return
|
||||
|
||||
proc/inspace()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/inspace() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/inspace() called tick#: [world.time]")
|
||||
if(istype(src.loc, /turf/space))
|
||||
return 1
|
||||
return 0
|
||||
@@ -220,13 +220,13 @@
|
||||
return
|
||||
|
||||
proc/return_pressure()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/return_pressure() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/return_pressure() called tick#: [world.time]")
|
||||
if(src.internal_tank)
|
||||
return src.internal_tank.return_pressure()
|
||||
return 0
|
||||
|
||||
proc/return_temperature()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/return_temperature() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/return_temperature() called tick#: [world.time]")
|
||||
if(src.internal_tank)
|
||||
return src.internal_tank.return_temperature()
|
||||
return 0
|
||||
@@ -242,7 +242,7 @@
|
||||
return
|
||||
|
||||
proc/take_damage(value)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/take_damage() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/take_damage() called tick#: [world.time]")
|
||||
if(isnum(value))
|
||||
src.health -= value
|
||||
if(src.health>0)
|
||||
@@ -256,11 +256,11 @@
|
||||
return
|
||||
|
||||
proc/get_desired_speed()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/get_desired_speed() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/get_desired_speed() called tick#: [world.time]")
|
||||
return (pr_inertial_movement.max_delay-pr_inertial_movement.desired_delay)/(pr_inertial_movement.max_delay-pr_inertial_movement.min_delay)*100
|
||||
|
||||
proc/get_current_speed()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/get_current_speed() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/get_current_speed() called tick#: [world.time]")
|
||||
return (pr_inertial_movement.max_delay-pr_inertial_movement.cur_delay)/(pr_inertial_movement.max_delay-pr_inertial_movement.min_delay)*100
|
||||
|
||||
/obj/machinery/vehicle/space_ship/relaymove(mob/user as mob, direction)
|
||||
@@ -319,7 +319,7 @@
|
||||
return
|
||||
|
||||
proc/set_desired_delay(var/num as num)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_desired_delay() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\proc/set_desired_delay() called tick#: [world.time]")
|
||||
src.desired_delay = num
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user