case 1:
if ( number_range(1,2) == 1 ) obj = get_eq_char(victim,WEAR_FINGER_L);
else obj = get_eq_char(victim,WEAR_FINGER_R);
loc = number_range(1,2) == 1 ? "left hand fingers" : "right hand fingers";
if (IS_SET(obj->spectype2, XITEM_LIGHTPLATE)) dam *= 0.5;
break;
Im trying to have a light plate item. I want it to be able to be forged into a piece of eq. when that hit_loc is hit, if it has a light plate it only gives the ch half damage..
this is the problem line.. thats crashing it.
if (IS_SET(obj->spectype2, XITEM_LIGHTPLATE)) dam *= 0.5;
anyone see anything wrong with it?
xrakisis