1 | /* |
1 | /* |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
2 | * This file is part of Deliantra, the Roguelike Realtime MMORPG. |
3 | * |
3 | * |
4 | * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
4 | * Copyright (©) 2005,2006,2007,2008,2009,2010 Marc Alexander Lehmann / Robin Redeker / the Deliantra team |
5 | * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
5 | * Copyright (©) 2002 Mark Wedel & Crossfire Development Team |
6 | * Copyright (©) 1992,2007 Frank Tore Johansen |
6 | * Copyright (©) 1992 Frank Tore Johansen |
7 | * |
7 | * |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
8 | * Deliantra is free software: you can redistribute it and/or modify it under |
9 | * the terms of the Affero GNU General Public License as published by the |
9 | * the terms of the Affero GNU General Public License as published by the |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
10 | * Free Software Foundation, either version 3 of the License, or (at your |
11 | * option) any later version. |
11 | * option) any later version. |
… | |
… | |
1545 | range = spell->range + SP_level_range_adjust (caster, spell); |
1545 | range = spell->range + SP_level_range_adjust (caster, spell); |
1546 | |
1546 | |
1547 | if (!skill) |
1547 | if (!skill) |
1548 | skill = caster; |
1548 | skill = caster; |
1549 | |
1549 | |
|
|
1550 | dynbuf buf; |
1550 | unordered_mapwalk (op, -range, -range, range, range) |
1551 | unordered_mapwalk (buf, op, -range, -range, range, range) |
1551 | { |
1552 | { |
1552 | /* For most of the detections, we only detect objects above the |
1553 | /* For most of the detections, we only detect objects above the |
1553 | * floor. But this is not true for show invisible. |
1554 | * floor. But this is not true for show invisible. |
1554 | * Basically, we just go and find the top object and work |
1555 | * Basically, we just go and find the top object and work |
1555 | * down - that is easier than working up. |
1556 | * down - that is easier than working up. |