Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: a patch for luck.
Negative luck will go back to -l by itself.
But it won't go back to 0.
But if it is a bug, the following patch is useful.
*** common.org/living.c Sun Jun 22 14:52:33 1997
--- common/living.c Sun Aug 17 22:30:56 1997
***************
*** 805,811 ****
LOG(llevDebug, "Internal error in change_luck().\n");
return;
}
! if (RANDOM()%(FABS(tmp->stats.luck)) > RANDOM()%30)
tmp->stats.luck += tmp->stats.luck>0?-1:1;
}
}
--- 805,811 ----
LOG(llevDebug, "Internal error in change_luck().\n");
return;
}
! if (RANDOM()%(FABS(tmp->stats.luck)) >= RANDOM()%30)
tmp->stats.luck += tmp->stats.luck>0?-1:1;
}
}
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]