mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 12:43:13 +00:00
Added a direction finding algorithm for target, get_dir_to(). Mostly useful for positioning sprites in relation to a target. Such as energy beams, lines, and so on. Changes to ninjas. Fixed a bunch of bugs and finished content. It is now possible to drag people with you when phase jaunting/shifting. Jaunting/shifting should also kill livestock, huggers, and damage mechs. Renamed /obj/spell path to obj/proc_holder/spell in order to have a generic proc_holder category. For now it only works for the AI but can be expanded to other mobs. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1566 316c924e-a436-60f5-8080-3fe189b3f50e
15 lines
353 B
Plaintext
15 lines
353 B
Plaintext
/obj/proc_holder/spell/targeted/explosion
|
|
name = "Explosion"
|
|
desc = "This spell explodes an area."
|
|
|
|
var/ex_severe = 1
|
|
var/ex_heavy = 2
|
|
var/ex_light = 3
|
|
var/ex_flash = 4
|
|
|
|
/obj/proc_holder/spell/targeted/explosion/cast(list/targets)
|
|
|
|
for(var/mob/target in targets)
|
|
explosion(target.loc,ex_severe,ex_heavy,ex_light,ex_flash)
|
|
|
|
return |