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

Comparing deliantra/server/common/living.C (file contents):
Revision 1.94 by root, Tue Dec 23 00:39:48 2008 UTC vs.
Revision 1.96 by elmex, Mon Jan 12 00:17:22 2009 UTC

1134 else /* To nullify the below effect */ 1134 else /* To nullify the below effect */
1135 ac += tmp->stats.ac + tmp->magic; 1135 ac += tmp->stats.ac + tmp->magic;
1136 } 1136 }
1137 1137
1138 if (tmp->stats.wc) 1138 if (tmp->stats.wc)
1139 wc -= (tmp->stats.wc + tmp->magic); 1139 wc -= tmp->stats.wc + tmp->magic;
1140 1140
1141 if (tmp->stats.ac) 1141 if (tmp->stats.ac)
1142 ac -= (tmp->stats.ac + tmp->magic); 1142 ac -= tmp->stats.ac + tmp->magic;
1143 1143
1144 if (ARMOUR_SPEED (tmp)) 1144 if (ARMOUR_SPEED (tmp))
1145 max_speed = min (max_speed, ARMOUR_SPEED (tmp) / 10.f); 1145 max_speed = min (max_speed, ARMOUR_SPEED (tmp) / 10.f);
1146 1146
1147 break; 1147 break;
1416 } 1416 }
1417 1417
1418 // update the mapspace, if we are on a map 1418 // update the mapspace, if we are on a map
1419 if (!flag [FLAG_REMOVED] && map) 1419 if (!flag [FLAG_REMOVED] && map)
1420 map->at (x, y).flags_ = 0; 1420 map->at (x, y).flags_ = 0;
1421}
1422
1423void
1424object::set_glow_radius (sint8 rad)
1425{
1426 glow_radius = rad;
1427
1428 if (is_on_map ())
1429 update_all_los (map, x, y);
1430 else if (object *env = outer_env ())
1431 {
1432 env->update_stats ();
1433
1434 if (env->is_on_map ())
1435 update_all_los (env->map, env->x, env->y);
1436 }
1421} 1437}
1422 1438
1423/* 1439/*
1424 * Returns true if the given player is a legal class. 1440 * Returns true if the given player is a legal class.
1425 * The function to add and remove class-bonuses to the stats doesn't 1441 * The function to add and remove class-bonuses to the stats doesn't

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines