mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-20 12:42:43 +01:00
remove returns & bad spacing from DoEffectAura
This commit is contained in:
@@ -44,12 +44,9 @@
|
||||
/datum/artifact_effect/common/animate_anomaly/DoEffectAura()
|
||||
var/obj/O = get_master_holder()
|
||||
find_target()
|
||||
|
||||
if(!target || !istype(O))
|
||||
return
|
||||
|
||||
O.dir = get_dir(O, target)
|
||||
|
||||
if(istype(O.loc, /turf))
|
||||
if(get_dist(O.loc, target.loc) > 1)
|
||||
O.Move(get_step_to(O, target))
|
||||
|
||||
@@ -51,10 +51,8 @@
|
||||
to_chat(H, "<font color='red'>[pick(messages)]</font>")
|
||||
else
|
||||
to_chat(H, "<font color='red' size='[num2text(rand(1,5))]'><b>[pick(drastic_messages)]</b></font>")
|
||||
|
||||
if(prob(10))
|
||||
H.dizziness += rand(3,5)
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/common/badfeeling/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
for(var/mob/living/L in range(src.effectrange,T))
|
||||
if(prob(10))
|
||||
apply_berserk(L)
|
||||
return TRUE
|
||||
|
||||
/datum/artifact_effect/uncommon/berserk/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -54,11 +54,9 @@
|
||||
to_chat(H, "<font color='red'>[pick(messages)]</font>")
|
||||
else
|
||||
to_chat(H, "<font color='red' size='[num2text(rand(1,5))]'><b>[pick(drastic_messages)]</b></font>")
|
||||
|
||||
if(prob(10))
|
||||
H.dizziness += rand(3,5)
|
||||
H.nutrition = H.nutrition / 2
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/uncommon/cannibalfeeling/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
if(world.time - last_message > 200)
|
||||
to_chat(M, "<font color='red'>SYSTEM ALERT: Energy drain detected!</font>")
|
||||
last_message = world.time
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/uncommon/celldrain/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -35,15 +35,12 @@
|
||||
for(var/mob/living/L in oview(effectrange, get_turf(holder)))
|
||||
if(!L.stat)
|
||||
nearby_mobs |= L
|
||||
|
||||
for(var/obj/machinery/light/light in range(effectrange, get_turf(holder)))
|
||||
light.flicker()
|
||||
|
||||
for(var/mob/living/L in nearby_mobs)
|
||||
if(L.isSynthetic())
|
||||
to_chat(L, "<span class='danger'>ERROR: Electrical fault detected!</span>")
|
||||
L.stuttering += 3
|
||||
|
||||
if(ishuman(L))
|
||||
var/mob/living/carbon/human/H = L
|
||||
var/obj/item/organ/external/affected = H.get_organ(check_zone(BP_TORSO))
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
for(var/mob/living/L in range(src.effectrange,T))
|
||||
if(prob(10))
|
||||
apply_modifier(L)
|
||||
return TRUE
|
||||
|
||||
/datum/artifact_effect/rare/feysight/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -51,11 +51,8 @@
|
||||
age_plantlife(Tray)
|
||||
if(prob(2))
|
||||
var/mob/living/simple_mob/animal/sif/glitterfly/G = new(get_turf(Tray))
|
||||
|
||||
my_glitterflies |= G
|
||||
|
||||
G.ai_holder.returns_home = TRUE
|
||||
|
||||
for(var/obj/effect/plant/P in view(effectrange,get_turf(holder)))
|
||||
age_plantlife(P)
|
||||
|
||||
|
||||
@@ -49,10 +49,8 @@
|
||||
to_chat(H, "<font color='blue'>[pick(messages)]</font>")
|
||||
else
|
||||
to_chat(H, "<font color='blue' size='[num2text(rand(1,5))]'><b>[pick(drastic_messages)]</b></font>")
|
||||
|
||||
if(prob(5))
|
||||
H.dizziness += rand(3,5)
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/common/goodfeeling/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
/datum/artifact_effect/extreme/gravity_wave/DoEffectAura()
|
||||
var/atom/holder = get_master_holder()
|
||||
var/seconds_since_last_pull = max(0, round((last_wave_pull - world.time) / 10))
|
||||
|
||||
if(prob(10 + seconds_since_last_pull))
|
||||
holder.visible_message("<span class='alien'>\The [holder] distorts as local gravity intensifies, and shifts toward it.</span>")
|
||||
last_wave_pull = world.time
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
|
||||
/datum/artifact_effect/uncommon/heal/DoEffectAura()
|
||||
var/atom/holder = get_master_holder()
|
||||
//todo: check over this properly
|
||||
if(holder)
|
||||
var/turf/T = get_turf(holder)
|
||||
for (var/mob/living/carbon/C in range(src.effectrange,T))
|
||||
|
||||
@@ -27,12 +27,9 @@
|
||||
for(var/mob/living/L in oview(get_turf(holder), effectrange))
|
||||
if(L.stat || !L.mind)
|
||||
continue
|
||||
|
||||
if(target && get_dist(get_turf(holder), L) > get_dist(get_turf(holder), target))
|
||||
continue
|
||||
|
||||
target = L
|
||||
|
||||
if(target)
|
||||
throw_at_mob(target, rand(15, 30))
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
var/atom/holder = get_master_holder()
|
||||
if(holder)
|
||||
SSradiation.flat_radiate(holder, radiation_amount, src.effectrange)
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/rare/radiate/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -90,7 +90,6 @@
|
||||
var/atom/holder = get_master_holder()
|
||||
for(var/mob/living/L in oview(effectrange, get_turf(holder)))
|
||||
stored_life += steal_life(L)
|
||||
|
||||
var/turf/T = get_turf(holder)
|
||||
for(var/mob/living/L in T)
|
||||
if(L.stat == DEAD)
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
M.adjustBruteLoss(-1)
|
||||
M.adjustFireLoss(-1)
|
||||
M.updatehealth()
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/uncommon/roboheal/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
M.adjustBruteLoss(1)
|
||||
M.adjustFireLoss(1)
|
||||
M.updatehealth()
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/uncommon/robohurt/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
H.eye_blurry = min(H.eye_blurry + 1 * weakness, 25 * weakness)
|
||||
for (var/mob/living/silicon/robot/R in range(src.effectrange,holder))
|
||||
to_chat(R, "<font color='red'>SYSTEM ALERT: CPU cycles slowing down.</font>")
|
||||
return 1
|
||||
|
||||
/datum/artifact_effect/uncommon/sleepy/DoEffectPulse()
|
||||
var/atom/holder = get_master_holder()
|
||||
|
||||
@@ -32,11 +32,9 @@
|
||||
to_chat(M, "<font color='red'>You are displaced by a strange force!</font>")
|
||||
if(M.buckled)
|
||||
M.buckled.unbuckle_mob()
|
||||
|
||||
var/datum/effect_system/spark_spread/sparks = new /datum/effect_system/spark_spread()
|
||||
sparks.set_up(3, 0, get_turf(M))
|
||||
sparks.start()
|
||||
|
||||
M.Move(pick(trange(50, T)))
|
||||
sparks = new /datum/effect_system/spark_spread()
|
||||
sparks.set_up(3, 0, M.loc)
|
||||
|
||||
@@ -38,17 +38,14 @@
|
||||
if(nearby_mobs.len)
|
||||
nearby_mobs.Cut()
|
||||
var/turf/T = get_turf(holder)
|
||||
|
||||
for(var/mob/living/L in oview(effectrange, T))
|
||||
if(!L.stat && L.mind)
|
||||
nearby_mobs |= L
|
||||
|
||||
if(world.time - bloodcall_interval >= last_bloodcall && LAZYLEN(nearby_mobs))
|
||||
var/mob/living/carbon/human/M = pick(nearby_mobs)
|
||||
if(get_dist(M, T) <= effectrange && M.health > 20)
|
||||
bloodcall(M)
|
||||
holder.Beam(M, icon_state = "drainbeam", time = 1 SECOND)
|
||||
|
||||
if(world.time - last_eat >= eat_interval)
|
||||
var/obj/effect/decal/cleanable/blood/B = locate() in range(2,holder)
|
||||
if(B)
|
||||
@@ -59,28 +56,21 @@
|
||||
else
|
||||
charges += 1
|
||||
playsound(holder, 'sound/effects/splat.ogg', 50, 1, -3)
|
||||
|
||||
qdel(B)
|
||||
|
||||
if(charges >= 10)
|
||||
charges -= 10
|
||||
var/manifestation = pick(/obj/item/soulstone, /mob/living/simple_mob/faithless/cult/strong, /mob/living/simple_mob/creature/cult/strong, /mob/living/simple_mob/animal/space/bats/cult/strong)
|
||||
new manifestation(pick(RANGE_TURFS(1,T)))
|
||||
|
||||
if(charges >= 3)
|
||||
if(prob(5))
|
||||
charges -= 1
|
||||
var/spawn_type = pick(/mob/living/simple_mob/animal/space/bats, /mob/living/simple_mob/creature, /mob/living/simple_mob/faithless)
|
||||
new spawn_type(pick(RANGE_TURFS(1,T)))
|
||||
playsound(holder, pick('sound/hallucinations/growl1.ogg','sound/hallucinations/growl2.ogg','sound/hallucinations/growl3.ogg'), 50, 1, -3)
|
||||
|
||||
if(charges >= 1 && nearby_mobs.len && prob(15 * nearby_mobs.len))
|
||||
var/mob/living/L = pick(nearby_mobs)
|
||||
|
||||
holder.Beam(L, icon_state = "drainbeam", time = 1 SECOND)
|
||||
|
||||
L.add_modifier(/datum/modifier/agonize, 5 SECONDS)
|
||||
|
||||
if(charges >= 0.1)
|
||||
if(prob(5))
|
||||
holder.visible_message("<span class='alien'>\icon[holder] \The [holder] gleams a bloody red!</span>")
|
||||
|
||||
Reference in New Issue
Block a user