Files
CHOMPStation2/code/modules/spells/targeted/projectile/dumbfire.dm
PsiOmega 990530d118 Ports /vg/'s spell system for the sake of cult porting.
Does offer a much more pleasant basis to work with in the future, if someone wishes to add more spell-like abilities.
2015-04-09 20:08:06 +02:00

13 lines
438 B
Plaintext

/spell/targeted/projectile/dumbfire
name = "dumbfire spell"
/spell/targeted/projectile/dumbfire/choose_targets(mob/user = usr)
var/list/targets = list()
var/starting_dir = user.dir //where are we facing at the time of casting?
var/turf/starting_turf = get_turf(user)
var/current_turf = starting_turf
for(var/i = 1; i <= src.range; i++)
current_turf = get_step(current_turf, starting_dir)
targets += current_turf
return targets