-
-
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.
- Loading branch information
1 parent
006fe5a
commit a5d823d
Showing
7 changed files
with
57 additions
and
48 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
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,46 @@ | ||
/datum/spell/aimed/swap | ||
name = "Swap" | ||
desc = "This spell swaps the positions of the wizard and a target." | ||
|
||
invocation = "Joyo!" | ||
invocation_type = INVOKE_WHISPER | ||
|
||
level_max = list(UPGRADE_TOTAL = 2, UPGRADE_SPEED = 0, UPGRADE_POWER = 2) | ||
|
||
spell_flags = 0 | ||
range = 6 | ||
|
||
hud_state = "wiz_swap" | ||
|
||
cast_sound = 'sound/magic/blink.ogg' | ||
|
||
spell_cost = 1 | ||
mana_cost = 5 | ||
|
||
var/eye_blind = 0 | ||
|
||
/datum/spell/aimed/swap/TargetCastCheck(mob/living/user, mob/living/target) | ||
if(!isliving(target)) | ||
to_chat(user, SPAN_WARNING("The target must be a living creature!")) | ||
return FALSE | ||
if(get_dist(user, target) > range) | ||
to_chat(user, SPAN_WARNING("The target is too far away!")) | ||
return FALSE | ||
return ..() | ||
|
||
/datum/spell/aimed/swap/fire_projectile(mob/living/user, mob/living/target) | ||
. = ..() | ||
var/turf/target_turf = get_turf(target) | ||
var/turf/user_turf = get_turf(user) | ||
|
||
target.forceMove(user_turf) | ||
user.forceMove(target_turf) | ||
|
||
target.eye_blind += eye_blind | ||
|
||
/datum/spell/aimed/swap/empower_spell() | ||
if(!..()) | ||
return FALSE | ||
|
||
eye_blind += 2 | ||
return "The [src] spell will now blind the target[eye_blind > 2 ? " even more" : ""]." |
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 was deleted.
Oops, something went wrong.