… | |
… | |
1256 | |
1256 | |
1257 | object *tmp = get_archetype (FORCE_NAME); |
1257 | object *tmp = get_archetype (FORCE_NAME); |
1258 | tmp->speed = 0.01; |
1258 | tmp->speed = 0.01; |
1259 | tmp->stats.food = time; |
1259 | tmp->stats.food = time; |
1260 | SET_FLAG (tmp, FLAG_IS_USED_UP); |
1260 | SET_FLAG (tmp, FLAG_IS_USED_UP); |
1261 | tmp->glow_radius = min (MAX_LIGHT_RADIUS, radius); |
1261 | tmp->set_glow_radius (min (MAX_LIGHT_RADIUS, radius)); |
1262 | tmp = insert_ob_in_ob (tmp, op); |
1262 | tmp = insert_ob_in_ob (tmp, op); |
1263 | |
1263 | |
1264 | if (tmp->glow_radius > op->glow_radius) |
1264 | if (tmp->glow_radius > op->glow_radius) |
1265 | op->glow_radius = tmp->glow_radius; |
1265 | op->set_glow_radius (tmp->glow_radius); |
1266 | |
1266 | |
1267 | return 1; |
1267 | return 1; |
1268 | } |
1268 | } |
1269 | |
1269 | |
1270 | int |
1270 | int |
… | |
… | |
1907 | } |
1907 | } |
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->glow_radius = min (MAX_LIGHT_RADIUS, spell->range + SP_level_range_adjust (caster, spell)); |
1913 | min (MAX_LIGHT_RADIUS, spell->range + SP_level_range_adjust (caster, spell))); |
1913 | |
1914 | |
1914 | if (dir) |
1915 | if (dir) |
1915 | m->insert (tmp, x, y, op); |
1916 | m->insert (tmp, x, y, op); |
1916 | else |
1917 | else |
1917 | caster->outer_env ()->insert (tmp); |
1918 | caster->outer_env ()->insert (tmp); |