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

Comparing deliantra/server/server/attack.C (file contents):
Revision 1.100 by root, Thu Nov 20 12:51:08 2008 UTC vs.
Revision 1.101 by root, Fri Dec 26 13:33:22 2008 UTC

2266 { 2266 {
2267 /* target is unseen */ 2267 /* target is unseen */
2268 if (target->invisible || QUERY_FLAG (attacker, FLAG_BLIND)) 2268 if (target->invisible || QUERY_FLAG (attacker, FLAG_BLIND))
2269 adjust -= 10; 2269 adjust -= 10;
2270 /* dark map penalty for the hitter (lacks infravision if we got here). */ 2270 /* dark map penalty for the hitter (lacks infravision if we got here). */
2271 else if (target->map && target->map->darkness > 0 && !stand_in_light (target)) 2271 else if (target->map && target->map->darklevel () > 0 && !stand_in_light (target))
2272 adjust -= target->map->darkness; 2272 adjust -= target->map->darklevel ();
2273 } 2273 }
2274 2274
2275 if (QUERY_FLAG (attacker, FLAG_SCARED)) 2275 if (QUERY_FLAG (attacker, FLAG_SCARED))
2276 adjust -= 3; 2276 adjust -= 3;
2277 2277

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines