-
-
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.
Flamethrower spell, more tweaks, remove "tower" subtypes
- Loading branch information
1 parent
42b7808
commit cd9dbbb
Showing
23 changed files
with
75 additions
and
137 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
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,59 @@ | ||
/datum/spell/aimed/flamethrower | ||
name = "Flamethrower" | ||
desc = "This spell sets a small targeted area on fire." | ||
deactive_msg = "You discharge the flamethrower spell..." | ||
active_msg = "You charge the flamethrower spell!" | ||
|
||
charge_max = 10 SECONDS | ||
cooldown_reduc = 4 SECONDS | ||
|
||
invocation = "Flamma!" | ||
invocation_type = INVOKE_SHOUT | ||
level_max = list(UPGRADE_TOTAL = 3, UPGRADE_SPEED = 2, UPGRADE_POWER = 2) | ||
|
||
range = 8 | ||
hud_state = "wiz_flame" | ||
cast_sound = 'sound/magic/fire.ogg' | ||
spell_cost = 2 | ||
mana_cost = 6 | ||
categories = list(SPELL_CATEGORY_FIRE) | ||
|
||
var/flame_power = 20 | ||
var/flame_distance = 4 | ||
var/flame_color = COLOR_RED_GRAY | ||
|
||
/datum/spell/aimed/flamethrower/TargetCastCheck(mob/living/user, mob/living/target) | ||
if(get_dist(user, target) > range) | ||
to_chat(user, SPAN_WARNING("The target is too far away!")) | ||
return FALSE | ||
return ..() | ||
|
||
/datum/spell/aimed/flamethrower/fire_projectile(mob/living/user, mob/living/target) | ||
. = ..() | ||
var/turf/start_turf = get_step(get_turf(user), get_dir(user, target)) | ||
var/turf/target_turf = get_ranged_target_turf_direct(start_turf, target, flame_distance) | ||
var/list/flame_line = getline(start_turf, target_turf) | ||
for(var/i = 1 to length(flame_line)) | ||
var/turf/T = flame_line[i] | ||
if(T.density) | ||
break | ||
var/dense_obj = FALSE | ||
for(var/obj/O in T) | ||
if(O.density) | ||
dense_obj = TRUE | ||
break | ||
if(dense_obj) | ||
break | ||
addtimer(CALLBACK(src, .proc/PlaceFlame, T), i-1) | ||
|
||
/datum/spell/aimed/flamethrower/proc/PlaceFlame(turf/T) | ||
T.IgniteTurf(flame_power, flame_color) | ||
T.hotspot_expose((flame_power * 3) + 380, 500) | ||
|
||
/datum/spell/aimed/flamethrower/empower_spell() | ||
if(!..()) | ||
return FALSE | ||
|
||
flame_power += 20 | ||
flame_color = flame_power >= 60 ? COLOR_PURPLE : COLOR_RED | ||
return "The [src] spell is now much more powerful." |
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 |
---|---|---|
|
@@ -11,7 +11,3 @@ | |
|
||
spell_cost = 2 | ||
mana_cost = 20 | ||
|
||
/datum/spell/aoe_turf/conjure/force_portal/tower | ||
charge_max = 2 | ||
spell_flags = 0 |
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 |
---|---|---|
|
@@ -25,6 +25,3 @@ | |
smoke_amt += 2 | ||
|
||
return "[src] will now create more smoke." | ||
|
||
/datum/spell/aoe_turf/smoke/tower | ||
charge_max = 2 |
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
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
Binary file not shown.