Hey Everyone,
I modified the out of range message to:
Target out of range by 5 squares. Fire anyway?
It's very handy.
The code is trivial, looks something like:
if ((dir == 5) && target_okay())
{
int taim;
char msg[80]
target_get(&tx, &ty);
taim = distance(y, x, ty, tx);
if (taim > tdis)
{
sprintf (msg, "Target out of range by %d squares. Fire anyway? ",taim-tdis);
if (!get_check(msg))
return;
}
}
I always hated doing: 'fire, abort, step, fire, abort, step, ........ ' till a monster gets in range.
- Frank
I modified the out of range message to:
Target out of range by 5 squares. Fire anyway?
It's very handy.
The code is trivial, looks something like:
if ((dir == 5) && target_okay())
{
int taim;
char msg[80]
target_get(&tx, &ty);
taim = distance(y, x, ty, tx);
if (taim > tdis)
{
sprintf (msg, "Target out of range by %d squares. Fire anyway? ",taim-tdis);
if (!get_check(msg))
return;
}
}
I always hated doing: 'fire, abort, step, fire, abort, step, ........ ' till a monster gets in range.
- Frank
Comment