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:
@@ -17,14 +17,14 @@
|
||||
depth_cast(T)
|
||||
|
||||
/spell/aoe_turf/charge/proc/depth_cast(var/list/targets)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/charge/proc/depth_cast() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/charge/proc/depth_cast() called tick#: [world.time]")
|
||||
for(var/atom/A in targets)
|
||||
if(A.contents.len)
|
||||
depth_cast(A.contents)
|
||||
cast_charge(A)
|
||||
|
||||
/spell/aoe_turf/charge/proc/mob_charge(var/mob/living/M)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/charge/proc/mob_charge() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/charge/proc/mob_charge() called tick#: [world.time]")
|
||||
if(M.spell_list.len != 0)
|
||||
for(var/spell/S in M.spell_list)
|
||||
if(!istype(S, /spell/aoe_turf/charge))
|
||||
@@ -35,7 +35,7 @@
|
||||
return M
|
||||
|
||||
/spell/aoe_turf/charge/proc/cast_charge(var/atom/target)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/charge/proc/cast_charge() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/charge/proc/cast_charge() called tick#: [world.time]")
|
||||
var/atom/charged_item
|
||||
|
||||
if(istype(target, /mob/living))
|
||||
|
||||
@@ -71,5 +71,5 @@ How they spawn stuff is decided by behaviour vars, which are explained below
|
||||
return
|
||||
|
||||
/spell/aoe_turf/conjure/proc/conjure_animation(var/atom/movable/overlay/animation, var/turf/target)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/conjure/proc/conjure_animation() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/aoe_turf/conjure/proc/conjure_animation() called tick#: [world.time]")
|
||||
del(animation)
|
||||
@@ -1,7 +1,7 @@
|
||||
//////////////////////////////Construct Spells/////////////////////////
|
||||
|
||||
proc/findNullRod(var/atom/target)
|
||||
writepanic("[__FILE__].[__LINE__] \\/proc/findNullRod() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] \\/proc/findNullRod() called tick#: [world.time]")
|
||||
if(istype(target,/obj/item/weapon/nullrod))
|
||||
var/turf/T = get_turf(target)
|
||||
T.turf_animation('icons/effects/96x96.dmi',"nullding",-32,-32,MOB_LAYER+1,'sound/piano/Ab7.ogg')
|
||||
|
||||
@@ -65,7 +65,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
charge_counter = charge_max
|
||||
|
||||
/spell/proc/process()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/process() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/process() called tick#: [world.time]")
|
||||
spawn while(charge_counter < charge_max)
|
||||
charge_counter++
|
||||
sleep(1)
|
||||
@@ -76,11 +76,11 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
/////////////////
|
||||
|
||||
/spell/proc/choose_targets(mob/user = usr) //depends on subtype - see targeted.dm, aoe_turf.dm, dumbfire.dm, or code in general folder
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/choose_targets() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/choose_targets() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
/spell/proc/perform(mob/user = usr, skipcharge = 0) //if recharge is started is important for the trigger spells
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/perform() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/perform() called tick#: [world.time]")
|
||||
if(!holder)
|
||||
holder = user //just in case
|
||||
if(!cast_check(skipcharge, user))
|
||||
@@ -102,15 +102,15 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
|
||||
|
||||
/spell/proc/cast(list/targets, mob/user) //the actual meat of the spell
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/cast() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/cast() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
/spell/proc/critfail(list/targets, mob/user) //the wizman has fucked up somehow
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/critfail() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/critfail() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
/spell/proc/adjust_var(mob/living/target = usr, type, amount) //handles the adjustment of the var when the spell is used. has some hardcoded types
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/adjust_var() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/adjust_var() called tick#: [world.time]")
|
||||
switch(type)
|
||||
if("bruteloss")
|
||||
target.adjustBruteLoss(amount)
|
||||
@@ -135,7 +135,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
///////////////////////////
|
||||
|
||||
/spell/proc/before_cast(list/targets)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/before_cast() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/before_cast() called tick#: [world.time]")
|
||||
var/valid_targets[0]
|
||||
for(var/atom/target in targets)
|
||||
// Check range again (fixes long-range EI NATH)
|
||||
@@ -160,7 +160,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
return valid_targets
|
||||
|
||||
/spell/proc/after_cast(list/targets)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/after_cast() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/after_cast() called tick#: [world.time]")
|
||||
for(var/atom/target in targets)
|
||||
var/location = get_turf(target)
|
||||
if(istype(target,/mob/living) && message)
|
||||
@@ -186,7 +186,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
|
||||
/spell/proc/cast_check(skipcharge = 0,mob/user = usr) //checks if the spell can be cast based on its settings; skipcharge is used when an additional cast_check is called inside the spell
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/cast_check() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/cast_check() called tick#: [world.time]")
|
||||
|
||||
if(!(src in user.spell_list) && holder == user)
|
||||
user << "<span class='warning'>You shouldn't have this spell! Something's wrong.</span>"
|
||||
@@ -238,7 +238,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
return 1
|
||||
|
||||
/spell/proc/check_charge(var/skipcharge, mob/user)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/check_charge() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/check_charge() called tick#: [world.time]")
|
||||
if(!skipcharge)
|
||||
switch(charge_type)
|
||||
if(Sp_RECHARGE)
|
||||
@@ -252,7 +252,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
return 1
|
||||
|
||||
/spell/proc/take_charge(mob/user = user, var/skipcharge)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/take_charge() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/take_charge() called tick#: [world.time]")
|
||||
if(!skipcharge)
|
||||
switch(charge_type)
|
||||
if(Sp_RECHARGE)
|
||||
@@ -270,7 +270,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
|
||||
/spell/proc/invocation(mob/user = usr, var/list/targets) //spelling the spell out and setting it on recharge/reducing charges amount
|
||||
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/invocation() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/invocation() called tick#: [world.time]")
|
||||
|
||||
switch(invocation_type)
|
||||
if(SpI_SHOUT)
|
||||
@@ -291,7 +291,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
/////////////////////
|
||||
|
||||
/spell/proc/can_improve(var/upgrade_type)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/can_improve() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/can_improve() called tick#: [world.time]")
|
||||
if(level_max[Sp_TOTAL] <= ( spell_levels[Sp_SPEED] + spell_levels[Sp_POWER] )) //too many levels, can't do it
|
||||
return 0
|
||||
|
||||
@@ -302,11 +302,11 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
return 1
|
||||
|
||||
/spell/proc/empower_spell()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/empower_spell() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/empower_spell() called tick#: [world.time]")
|
||||
return
|
||||
|
||||
/spell/proc/quicken_spell()
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/quicken_spell() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/quicken_spell() called tick#: [world.time]")
|
||||
if(!can_improve(Sp_SPEED))
|
||||
return 0
|
||||
|
||||
@@ -344,7 +344,7 @@ var/list/spells = typesof(/spell) //needed for the badmin verb for now
|
||||
return temp
|
||||
|
||||
/spell/proc/spell_do_after(var/mob/user as mob, delay as num, var/numticks = 5)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/spell_do_after() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/proc/spell_do_after() called tick#: [world.time]")
|
||||
if(!user || isnull(user))
|
||||
return 0
|
||||
if(numticks == 0)
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
return
|
||||
|
||||
/obj/item/projectile/spell_projectile/proc/prox_cast(var/list/targets)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/projectile/spell_projectile/proc/prox_cast() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/obj/item/projectile/spell_projectile/proc/prox_cast() called tick#: [world.time]")
|
||||
if(loc)
|
||||
carried.prox_cast(targets, src)
|
||||
qdel(src)
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
qdel(to_remove)
|
||||
|
||||
/spell/targeted/equip_item/proc/summon_item(var/newtype)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/equip_item/proc/summon_item() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/equip_item/proc/summon_item() called tick#: [world.time]")
|
||||
return new newtype
|
||||
@@ -41,7 +41,7 @@ If the spell_projectile is seeking, it will update its target every process and
|
||||
return
|
||||
|
||||
/spell/targeted/projectile/proc/choose_prox_targets(mob/user = usr, var/atom/movable/spell_holder)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/projectile/proc/choose_prox_targets() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/projectile/proc/choose_prox_targets() called tick#: [world.time]")
|
||||
var/list/targets = list()
|
||||
for(var/mob/living/M in range(spell_holder, cast_prox_range))
|
||||
if(M == user && !(spell_flags & INCLUDEUSER))
|
||||
@@ -50,5 +50,5 @@ If the spell_projectile is seeking, it will update its target every process and
|
||||
return targets
|
||||
|
||||
/spell/targeted/projectile/proc/prox_cast(var/list/targets, var/atom/movable/spell_holder)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/projectile/proc/prox_cast() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/projectile/proc/prox_cast() called tick#: [world.time]")
|
||||
return targets
|
||||
@@ -127,7 +127,7 @@ Targeted spells have two useful flags: INCLUDEUSER and SELECTABLE. These are exp
|
||||
apply_spell_damage(target)
|
||||
|
||||
/spell/targeted/proc/apply_spell_damage(mob/living/target)
|
||||
writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/proc/apply_spell_damage() called tick#: [world.time]")
|
||||
//writepanic("[__FILE__].[__LINE__] ([src.type])([usr ? usr.ckey : ""]) \\/spell/targeted/proc/apply_spell_damage() called tick#: [world.time]")
|
||||
target.adjustBruteLoss(amt_dam_brute)
|
||||
target.adjustFireLoss(amt_dam_fire)
|
||||
target.adjustToxLoss(amt_dam_tox)
|
||||
|
||||
Reference in New Issue
Block a user