ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/spell_effect.C
(Generate patch)

Comparing deliantra/server/server/spell_effect.C (file contents):
Revision 1.91 by root, Mon Sep 29 10:32:51 2008 UTC vs.
Revision 1.92 by root, Wed Dec 24 01:37:24 2008 UTC

2146/* cast_daylight() - changes the map darkness level *lower* */ 2146/* cast_daylight() - changes the map darkness level *lower* */
2147 2147
2148/* cast_change_map_lightlevel: Was cast_daylight/nightfall. 2148/* cast_change_map_lightlevel: Was cast_daylight/nightfall.
2149 * This changes the light level for the entire map. 2149 * This changes the light level for the entire map.
2150 */ 2150 */
2151
2152int 2151int
2153cast_change_map_lightlevel (object *op, object *caster, object *spell) 2152cast_change_map_lightlevel (object *op, object *caster, object *spell)
2154{ 2153{
2155 int success; 2154 int success;
2156 2155
2164 if (spell->stats.dam < 0) 2163 if (spell->stats.dam < 0)
2165 new_draw_info (NDI_UNIQUE, 0, op, "It can be no brighter here."); 2164 new_draw_info (NDI_UNIQUE, 0, op, "It can be no brighter here.");
2166 else 2165 else
2167 new_draw_info (NDI_UNIQUE, 0, op, "It can be no darker here."); 2166 new_draw_info (NDI_UNIQUE, 0, op, "It can be no darker here.");
2168 } 2167 }
2168
2169 return success; 2169 return success;
2170} 2170}
2171 2171
2172/* create an aura spell object and put it in the player's inventory. 2172/* create an aura spell object and put it in the player's inventory.
2173 * as usual, op is player, caster is the object casting the spell, 2173 * as usual, op is player, caster is the object casting the spell,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines