… | |
… | |
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 | |
|
|
2152 | int |
2151 | int |
2153 | cast_change_map_lightlevel (object *op, object *caster, object *spell) |
2152 | cast_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, |