-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dispell projectile, more tweaks to spell book
- Loading branch information
1 parent
b4024d8
commit 03df5a5
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/datum/spell/aimed/dispell_projectile | ||
name = "Dispelling projectile" | ||
desc = "Launches a magic bolt capable of dispelling magic." | ||
charge_max = 50 | ||
spell_flags = 0 | ||
invocation = "Ma'Gi-Di!" | ||
invocation_type = INVOKE_SHOUT | ||
range = 15 | ||
level_max = list(UPGRADE_TOTAL = 2, UPGRADE_SPEED = 0, UPGRADE_POWER = 2) | ||
duration = 15 | ||
projectile_type = /obj/item/projectile/spell_projectile/dispell | ||
var/amt_range = 0 | ||
|
||
active_msg = "You prepare to cast the bolt of dispell!" | ||
deactive_msg = "You decide against using the bolt of dispell." | ||
|
||
hud_state = "wiz_dispell_proj" | ||
cast_sound = 'sound/magic/staff_healing.ogg' | ||
|
||
spell_cost = 2 | ||
mana_cost = 15 | ||
|
||
/datum/spell/aimed/dispell_projectile/prox_cast(list/targets, atom/spell_holder) | ||
var/atom/movable/A = targets[1] | ||
if(amt_range > 0) | ||
for(var/atom/movable/AA in range(amt_range, A)) | ||
AA.Dispell() | ||
else | ||
A.Dispell() | ||
|
||
playsound(A, 'sound/magic/smoke.ogg', min(100, 25 * amt_range)) | ||
|
||
/datum/spell/aimed/dispell_projectile/empower_spell() | ||
if(!..()) | ||
return FALSE | ||
|
||
amt_range += 1 | ||
|
||
return "[src] now affects multiple targets within a [amt_range <= 1 ? "small" : "big"] area." | ||
|
||
/obj/item/projectile/spell_projectile/dispell | ||
name = "bolt of dispell" | ||
icon_state = "spark_green" |
Binary file not shown.