… | |
… | |
1908 | |
1908 | |
1909 | tmp->stats.food = spell->duration + SP_level_duration_adjust (caster, spell); |
1909 | tmp->stats.food = spell->duration + SP_level_duration_adjust (caster, spell); |
1910 | |
1910 | |
1911 | if (tmp->glow_radius) |
1911 | if (tmp->glow_radius) |
1912 | tmp->set_glow_radius ( |
1912 | tmp->set_glow_radius ( |
1913 | min (MAX_LIGHT_RADIUS, spell->range + SP_level_range_adjust (caster, spell)) |
1913 | clamp (spell->range + SP_level_range_adjust (caster, spell), 1, MAX_LIGHT_RADIUS) |
1914 | ); |
1914 | ); |
1915 | |
1915 | |
1916 | if (dir) |
1916 | if (dir) |
1917 | m->insert (tmp, x, y, op); |
1917 | m->insert (tmp, x, y, op); |
1918 | else |
1918 | else |