diff options
Diffstat (limited to 'games/hack/hack.steal.c')
-rw-r--r-- | games/hack/hack.steal.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/games/hack/hack.steal.c b/games/hack/hack.steal.c index 232863d..e6a2a1a 100644 --- a/games/hack/hack.steal.c +++ b/games/hack/hack.steal.c @@ -10,9 +10,9 @@ somegold(){ (u.ugold > 10000) ? rnd(10000) : rnd((int) u.ugold) ); } -stealgold(mtmp) register struct monst *mtmp; { -register struct gold *gold = g_at(u.ux, u.uy); -register long tmp; +stealgold(mtmp) struct monst *mtmp; { +struct gold *gold = g_at(u.ux, u.uy); +long tmp; if(gold && ( !u.ugold || gold->amount > u.ugold || !rn2(5))) { mtmp->mgold += gold->amount; freegold(gold); @@ -37,8 +37,8 @@ register long tmp; unsigned stealoid; /* object to be stolen */ unsigned stealmid; /* monster doing the stealing */ stealarm(){ - register struct monst *mtmp; - register struct obj *otmp; + struct monst *mtmp; + struct obj *otmp; for(otmp = invent; otmp; otmp = otmp->nobj) if(otmp->o_id == stealoid) { @@ -64,9 +64,9 @@ stealarm(){ steal(mtmp) struct monst *mtmp; { - register struct obj *otmp; - register tmp; - register named = 0; + struct obj *otmp; + tmp; + named = 0; if(!invent){ if(Blind) @@ -150,17 +150,17 @@ struct monst *mtmp; } mpickobj(mtmp,otmp) -register struct monst *mtmp; -register struct obj *otmp; +struct monst *mtmp; +struct obj *otmp; { otmp->nobj = mtmp->minvent; mtmp->minvent = otmp; } stealamulet(mtmp) -register struct monst *mtmp; +struct monst *mtmp; { - register struct obj *otmp; + struct obj *otmp; for(otmp = invent; otmp; otmp = otmp->nobj) { if(otmp->olet == AMULET_SYM) { @@ -177,10 +177,10 @@ register struct monst *mtmp; /* release the objects the killed animal has stolen */ relobj(mtmp,show) -register struct monst *mtmp; -register show; +struct monst *mtmp; +show; { - register struct obj *otmp, *otmp2; + struct obj *otmp, *otmp2; for(otmp = mtmp->minvent; otmp; otmp = otmp2){ otmp->ox = mtmp->mx; @@ -194,7 +194,7 @@ register show; } mtmp->minvent = (struct obj *) 0; if(mtmp->mgold || mtmp->data->mlet == 'L') { - register long tmp; + long tmp; tmp = (mtmp->mgold > 10000) ? 10000 : mtmp->mgold; mkgold((long)(tmp + d(dlevel,30)), mtmp->mx, mtmp->my); |