/tg/ Station 13 - Modules - TypesVar Details - Proc Details

cone

Cone spells

Cone spells shoot off as a cone from the caster.

Vars

cone_levelsThis controls how many levels the cone has. Increase this value to make a bigger cone.
respect_densityThis value determines if the cone penetrates walls.

Procs

calculate_cone_shapeAdjusts the width of the cone at the passed level. This is never called on the first level of the cone (level 1 is always 1 width)
do_cone_effectsThis proc does obj, mob and turf cone effects on all targets in the passed list.
do_mob_cone_effectThis proc deterimines how the spell will affect mobs.
do_obj_cone_effectThis proc deterimines how the spell will affect objects.
do_turf_cone_effectThis proc deterimines how the spell will affect turfs.
get_cone_turfsThis proc creates a list of turfs that are hit by the cone.

Var Details

cone_levels

This controls how many levels the cone has. Increase this value to make a bigger cone.

respect_density

This value determines if the cone penetrates walls.

Proc Details

calculate_cone_shape

Adjusts the width of the cone at the passed level. This is never called on the first level of the cone (level 1 is always 1 width)

Return a number - the TOTAL width of the cone at the passed level.

do_cone_effects

This proc does obj, mob and turf cone effects on all targets in the passed list.

do_mob_cone_effect

This proc deterimines how the spell will affect mobs.

do_obj_cone_effect

This proc deterimines how the spell will affect objects.

do_turf_cone_effect

This proc deterimines how the spell will affect turfs.

get_cone_turfs

This proc creates a list of turfs that are hit by the cone.