diff -wur nethack-3.4.3/include/extern.h nethack-scoring/include/extern.h --- nethack-3.4.3/include/extern.h 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/include/extern.h 2009-08-17 22:25:58.000000000 +0200 @@ -583,7 +583,7 @@ /* ### exper.c ### */ E int FDECL(experience, (struct monst *,int)); -E void FDECL(more_experienced, (int,int)); +E void FDECL(more_experienced, (int,int,int)); E void FDECL(losexp, (const char *)); E void NDECL(newexplevel); E void FDECL(pluslvl, (BOOLEAN_P)); Nur in nethack-scoring/include: extern.h.orig. diff -wur nethack-3.4.3/include/you.h nethack-scoring/include/you.h --- nethack-3.4.3/include/you.h 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/include/you.h 2009-08-17 22:25:58.000000000 +0200 @@ -342,6 +342,7 @@ long umoney0; #endif long uexp, urexp; + long urscore; /* the current score */ long ucleansed; /* to record moves when player was cleansed */ long usleep; /* sleeping; monstermove you last started */ int uinvault; diff -wur nethack-3.4.3/src/botl.c nethack-scoring/src/botl.c --- nethack-3.4.3/src/botl.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/botl.c 2009-08-17 22:25:58.000000000 +0200 @@ -153,12 +153,12 @@ long ugold = u.ugold + hidden_gold(); if ((ugold -= u.ugold0) < 0L) ugold = 0L; - return ugold + u.urexp + (long)(50 * (deepest - 1)) + return ugold + u.urscore + (long)(50 * (deepest - 1)) #else long umoney = money_cnt(invent) + hidden_gold(); if ((umoney -= u.umoney0) < 0L) umoney = 0L; - return umoney + u.urexp + (long)(50 * (deepest - 1)) + return umoney + u.urscore + (long)(50 * (deepest - 1)) #endif + (long)(deepest > 30 ? 10000 : deepest > 20 ? 1000*(deepest - 20) : 0); diff -wur nethack-3.4.3/src/eat.c nethack-scoring/src/eat.c --- nethack-3.4.3/src/eat.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/eat.c 2009-08-17 22:25:58.000000000 +0200 @@ -1393,7 +1393,7 @@ "Mmm, tripe... not bad!"); else { pline("Yak - dog food!"); - more_experienced(1,0); + more_experienced(1,1,0); newexplevel(); /* not cannibalism, but we use similar criteria for deciding whether to be sickened by this meal */ diff -wur nethack-3.4.3/src/end.c nethack-scoring/src/end.c --- nethack-3.4.3/src/end.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/end.c 2009-08-17 22:25:58.000000000 +0200 @@ -513,7 +513,7 @@ value = arti_cost(otmp); /* zorkmid value */ points = value * 5 / 2; /* score value */ if (counting) { - u.urexp += points; + u.urscore += points; } else { makeknown(otmp->otyp); otmp->known = otmp->dknown = otmp->bknown = otmp->rknown = 1; @@ -716,11 +716,11 @@ tmp = 0L; if (how < PANICKED) tmp -= tmp / 10L; - u.urexp += tmp; - u.urexp += 50L * (long)(deepest - 1); + u.urscore += tmp; + u.urscore += 50L * (long)(deepest - 1); if (deepest > 20) - u.urexp += 1000L * (long)((deepest > 30) ? 10 : deepest - 20); - if (how == ASCENDED) u.urexp *= 2L; + u.urscore += 1000L * (long)((deepest > 30) ? 10 : deepest - 20); + if (how == ASCENDED) u.urscore *= 2L; } if (bones_ok) { @@ -796,7 +796,7 @@ for (val = valuables; val->list; val++) for (i = 0; i < val->size; i++) if (val->list[i].count != 0L) - u.urexp += val->list[i].count + u.urscore += val->list[i].count * (long)objects[val->list[i].typ].oc_cost; /* count the points for artifacts */ @@ -811,7 +811,7 @@ if (!done_stopprint) Sprintf(eos(pbuf), " and %s", mon_nam(mtmp)); if (mtmp->mtame) - u.urexp += mtmp->mhp; + u.urscore += mtmp->mhp; mtmp = mtmp->nmon; } if (!done_stopprint) putstr(endwin, 0, pbuf); @@ -823,7 +823,7 @@ Sprintf(eos(pbuf), "%s with %ld point%s,", how==ASCENDED ? "went to your reward" : "escaped from the dungeon", - u.urexp, plur(u.urexp)); + u.urscore, plur(u.urscore)); putstr(endwin, 0, pbuf); } @@ -877,7 +877,7 @@ } Sprintf(eos(pbuf), " with %ld point%s,", - u.urexp, plur(u.urexp)); + u.urscore, plur(u.urscore)); putstr(endwin, 0, pbuf); } diff -wur nethack-3.4.3/src/engrave.c nethack-scoring/src/engrave.c --- nethack-3.4.3/src/engrave.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/engrave.c 2009-08-17 22:25:58.000000000 +0200 @@ -837,7 +837,7 @@ /* Identify stylus */ if (doknown) { makeknown(otmp->otyp); - more_experienced(0,10); + more_experienced(0,0,10); } if (teleengr) { diff -wur nethack-3.4.3/src/exper.c nethack-scoring/src/exper.c --- nethack-3.4.3/src/exper.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/exper.c 2009-08-17 22:25:58.000000000 +0200 @@ -95,12 +95,16 @@ return(tmp); } +/* + * Adds to Experience and Scoring counter + */ void -more_experienced(exp, rexp) - register int exp, rexp; +more_experienced(exp, score, rexp) + register int exp, score, rexp; { u.uexp += exp; u.urexp += 4*exp + rexp; + u.urscore += 4*score + rexp; if(exp #ifdef SCORE_ON_BOTL || flags.showscore diff -wur nethack-3.4.3/src/fountain.c nethack-scoring/src/fountain.c --- nethack-3.4.3/src/fountain.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/fountain.c 2009-08-17 22:25:58.000000000 +0200 @@ -571,7 +571,7 @@ pline("But it quiets down."); break; case 8: pline("Yuk, this water tastes awful."); - more_experienced(1,0); + more_experienced(1,1,0); newexplevel(); break; case 9: pline("Gaggg... this tastes like sewage! You vomit."); diff -wur nethack-3.4.3/src/mon.c nethack-scoring/src/mon.c --- nethack-3.4.3/src/mon.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/mon.c 2009-08-21 21:22:07.000000000 +0200 @@ -1870,8 +1870,9 @@ } /* give experience points */ - tmp = experience(mtmp, (int)mvitals[mndx].died + 1); - more_experienced(tmp, 0); + int nr_killed = (int)mvitals[mndx].died; + tmp = experience(mtmp, nr_killed); + more_experienced(tmp, max(tmp/nr_killed,1), 0); newexplevel(); /* will decide if you go up */ /* adjust alignment points */ diff -wur nethack-3.4.3/src/potion.c nethack-scoring/src/potion.c --- nethack-3.4.3/src/potion.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/potion.c 2009-08-17 22:25:58.000000000 +0200 @@ -400,7 +400,7 @@ if(otmp->dknown && !objects[otmp->otyp].oc_name_known) { if(!unkn) { makeknown(otmp->otyp); - more_experienced(0,10); + more_experienced(0,0,10); } else if(!objects[otmp->otyp].oc_uname) docall(otmp); } diff -wur nethack-3.4.3/src/read.c nethack-scoring/src/read.c --- nethack-3.4.3/src/read.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/read.c 2009-08-17 22:25:58.000000000 +0200 @@ -141,7 +141,7 @@ if(!objects[scroll->otyp].oc_name_known) { if(known) { makeknown(scroll->otyp); - more_experienced(0,10); + more_experienced(0,0,10); } else if(!objects[scroll->otyp].oc_uname) docall(scroll); } @@ -1045,7 +1045,7 @@ /* Note: if rn2(5)==0, identify all items */ if (cval == 1 && sobj->blessed && Luck > 0) ++cval; } else cval = 1; - if(!objects[sobj->otyp].oc_name_known) more_experienced(0,10); + if(!objects[sobj->otyp].oc_name_known) more_experienced(0,0,10); useup(sobj); makeknown(SCR_IDENTIFY); id: @@ -1124,7 +1124,7 @@ * some damage under all potential cases. */ cval = bcsign(sobj); - if(!objects[sobj->otyp].oc_name_known) more_experienced(0,10); + if(!objects[sobj->otyp].oc_name_known) more_experienced(0,0,10); useup(sobj); makeknown(SCR_FIRE); if(confused) { diff -wur nethack-3.4.3/src/rumors.c nethack-scoring/src/rumors.c --- nethack-3.4.3/src/rumors.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/rumors.c 2009-08-17 22:25:58.000000000 +0200 @@ -373,7 +373,7 @@ exercise(A_WIS, !cheapskate); } if (add_xpts) { - more_experienced(add_xpts, u_pay/50); + more_experienced(add_xpts, add_xpts, u_pay/50); newexplevel(); } return 1; diff -wur nethack-3.4.3/src/topten.c nethack-scoring/src/topten.c --- nethack-3.4.3/src/topten.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/topten.c 2009-08-17 22:25:58.000000000 +0200 @@ -296,7 +296,7 @@ t0->ver_major = VERSION_MAJOR; t0->ver_minor = VERSION_MINOR; t0->patchlevel = PATCHLEVEL; - t0->points = u.urexp; + t0->points = u.urscore; t0->deathdnum = u.uz.dnum; t0->deathlev = observable_depth(&u.uz); t0->maxlvl = deepest_lev_reached(TRUE); diff -wur nethack-3.4.3/src/trap.c nethack-scoring/src/trap.c --- nethack-3.4.3/src/trap.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/trap.c 2009-08-17 22:25:58.000000000 +0200 @@ -3256,7 +3256,7 @@ You("repair the squeaky board."); /* no madeby_u */ deltrap(ttmp); newsym(u.ux + u.dx, u.uy + u.dy); - more_experienced(1, 5); + more_experienced(1, 1, 5); newexplevel(); return 1; } diff -wur nethack-3.4.3/src/zap.c nethack-scoring/src/zap.c --- nethack-3.4.3/src/zap.c 2008-05-26 19:47:02.000000000 +0200 +++ nethack-scoring/src/zap.c 2009-08-17 22:25:58.000000000 +0200 @@ -1804,7 +1804,7 @@ } if (known && !objects[obj->otyp].oc_name_known) { makeknown(obj->otyp); - more_experienced(0,10); + more_experienced(0,0,10); } } #endif /*OVL1*/ @@ -2495,7 +2495,7 @@ } if (disclose && was_unkn) { makeknown(otyp); - more_experienced(0,10); + more_experienced(0,0,10); } return; }