… | |
… | |
1747 | |
1747 | |
1748 | op->duration--; |
1748 | op->duration--; |
1749 | |
1749 | |
1750 | int basedir = op->direction; |
1750 | int basedir = op->direction; |
1751 | if (!basedir) |
1751 | if (!basedir) |
|
|
1752 | { |
1752 | /* spray in all directions! 8) */ |
1753 | /* spray in all directions! 8) */ |
1753 | basedir = (op->facing += op->state) % 8 + 1; |
1754 | op->facing = (op->facing + op->state) & 7; |
|
|
1755 | basedir = op->facing + 1; |
|
|
1756 | } |
1754 | |
1757 | |
1755 | #if 0 |
1758 | #if 0 |
1756 | // this is bogus: it causes wrong places to be checked below |
1759 | // this is bogus: it causes wrong places to be checked below |
1757 | // (a wall 2 cells away will block the effect...) and |
1760 | // (a wall 2 cells away will block the effect...) and |
1758 | // doesn't work for SP_BULLET anyhow, so again tests the wrong |
1761 | // doesn't work for SP_BULLET anyhow, so again tests the wrong |
… | |
… | |
1840 | { |
1843 | { |
1841 | if (!spell->other_arch) |
1844 | if (!spell->other_arch) |
1842 | return 0; |
1845 | return 0; |
1843 | |
1846 | |
1844 | object *tmp = archetype::get (SWARM_SPELL); |
1847 | object *tmp = archetype::get (SWARM_SPELL); |
|
|
1848 | |
1845 | set_spell_skill (op, caster, spell, tmp); |
1849 | set_spell_skill (op, caster, spell, tmp); |
1846 | tmp->level = caster_level (caster, spell); /* needed later, to get level dep. right. */ |
1850 | tmp->level = caster_level (caster, spell); /* needed later, to get level dep. right. */ |
1847 | tmp->spell = spell->other_arch->instance (); |
1851 | tmp->spell = spell->other_arch->instance (); |
1848 | tmp->attacktype = tmp->spell->attacktype; |
1852 | tmp->attacktype = tmp->spell->attacktype; |
1849 | |
1853 | |