Skip to content

Commit

Permalink
Random blink nerfs
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDinamit committed Jan 25, 2024
1 parent cdfaf67 commit 9f7f9ba
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions code/modules/spells/aoe_turf/random_blink.dm
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
/datum/spell/aoe_turf/random_blink
name = "Random blink"
desc = "This spell randomly teleports you a short distance."
charge_max = 20

spell_flags = Z2NOCAST | IGNOREDENSE | IGNORESPACE | NO_SOMATIC
invocation = "none"
invocation_type = INVOKE_NONE
range = 7
range = 4
inner_radius = 1

level_max = list(UPGRADE_TOTAL = 4, UPGRADE_SPEED = 4, UPGRADE_POWER = 4)
cooldown_min = 5 //4 deciseconds reduction per rank
charge_max = 5 SECONDS
cooldown_reduc = 1.5 SECONDS
cooldown_min = 0.5 SECONDS

level_max = list(UPGRADE_TOTAL = 4, UPGRADE_SPEED = 3, UPGRADE_POWER = 3)
hud_state = "wiz_blink_random"
cast_sound = 'sound/magic/blink.ogg'

categories = list(SPELL_CATEGORY_MOBILITY)
spell_cost = 1
mana_cost = 1

/datum/spell/aoe_turf/random_blink/cast(list/targets, mob/user)
/datum/spell/aoe_turf/random_blink/cast(list/targets, mob/living/user)
if(!targets.len)
return

Expand All @@ -37,11 +40,12 @@
D.alpha = min(150 + i*15, 255)
animate(D, alpha = 0, time = 2 + i*2)

if(user.incapacitated(INCAPACITATION_STUNNED|INCAPACITATION_RESTRAINED|INCAPACITATION_BUCKLED_FULLY|INCAPACITATION_FORCELYING|INCAPACITATION_KNOCKOUT))
charge_counter = -3 SECONDS
to_chat(user, SPAN_WARNING("Castin [src] while incapacitated has put it on a higher cooldown!"))

return

/datum/spell/aoe_turf/random_blink/ImproveSpellPower()
if(!..())
return 0
inner_radius += 1

return "You've increased the inner range of [src]."
range += 1
return "You've increased the range of [src]."

0 comments on commit 9f7f9ba

Please sign in to comment.