Posted by
| Nick Gammon
Australia (23,158 posts) Bio
Forum Administrator |
Message
| For a start, I would look in fight.c, function new_dam_message:
Change:
if ( dt == TYPE_HIT )
{
sprintf( buf1, "$n %s $N%c", vp, punct );
sprintf( buf2, "You %s $N%c", vs, punct );
sprintf( buf3, "$n %s you%c", vp, punct );
}
to:
if ( dt == TYPE_HIT )
{
sprintf( buf1, "$n %s $N%c [%i]", vp, punct, dam );
sprintf( buf2, "You %s $N%c [%i]", vs, punct, dam );
sprintf( buf3, "$n %s you%c [%i]", vp, punct, dam );
}
And a bit further down, change ..
sprintf( buf1, "$n's %s %s $N%c", attack, vp, punct);
sprintf( buf2, "Your %s %s $N%c", attack, vp, punct);
sprintf( buf3, "$n's %s %s you%c", attack, vp, punct);
to:
sprintf( buf1, "$n's %s %s $N%c [%i]", attack, vp, punct, dam);
sprintf( buf2, "Your %s %s $N%c [%i]", attack, vp, punct, dam );
sprintf( buf3, "$n's %s %s you%c [%i]", attack, vp, punct, dam );
You probably also want to change the nearby part for poisoned weapons too.
Once you have done that, it should look like this:
<840hp 100m 102mv>
You scratch the guard. [5]
You dodge the guard's attack.
The guard's slash cuts you! [31]
The guard's slash hits you! [37]
You dodge the guard's attack.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|