[ 1612032 ] undead slayer/necromancer inconsistency

View: New views
1 Messages — Rating Filter:   Alert me  

[ 1612032 ] undead slayer/necromancer inconsistency

by likeyou dontknow :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm pretty sure this works the way I expect it. I'm not sure if the hero gets the nutrition from whatever it was if it was rotten. Anyways, it was suggested that those who are sick resistant should not take any negative effects from food, then it was suggested that, maybe they should take the effects of rotten food for tainted food and nothing for rotten food. The code below will do that. Below that will negate all food (rotten or tainted).  In either case if this patch is used, I think that the printed message should be changed, as I don't expect that most people have a grandmother who says 9 year old mayonase is ok to eat.

--- src/eat.c   2007-04-26 16:34:49.000000000 -0700
+++ ../../slashem_unchanged/slashem-0.0.8E0F1/src/eat.c 2006-12-30 05:04:53.000000000 -0800
@@ -1435,9 +1435,7 @@
 rottenfood(obj)
 struct obj *obj;
 {
-       if (!Sick_resistance) {
-               pline("Blecch!  Rotten %s!", foodword(obj));
-       }
+       pline("Blecch!  Rotten %s!", foodword(obj));
        if(!rn2(4)) {
                if (Hallucination) You_feel("rather trippy.");
                else You_feel("rather %s.", body_part(LIGHT_HEADED));
@@ -1550,7 +1548,6 @@
                      cannibal ? ", cannibal" : "");
                if (Sick_resistance) {
                        pline("It doesn't seem at all sickening, though...");
-                       rottenfood(otmp);
                } else {
                        char buf[BUFSZ];
                        long sick_time;
@@ -1600,11 +1597,7 @@

        if (!tp && mnum != PM_LIZARD && mnum != PM_LICHEN &&
                        (otmp->orotten || !rn2(7))) {
-           if (Sick_resistance) {
-               pline("This is rotten, though it somehow reminds you of your grandmother's cooking...so you eat it anyways.");
-               return(2);
-           }
-           else if (rottenfood(otmp)) {
+           if (rottenfood(otmp)) {
                otmp->orotten = TRUE;
                (void)touchfood(otmp);
                retcode = 1;



and for just removing effects of rotten food:

--- src/eat.c   2007-04-26 16:41:17.000000000 -0700
+++ ../../slashem_unchanged/slashem-0.0.8E0F1/src/eat.c 2006-12-30 05:04:53.000000000 -0800
@@ -1597,11 +1597,7 @@

        if (!tp && mnum != PM_LIZARD && mnum != PM_LICHEN &&
                        (otmp->orotten || !rn2(7))) {
-           if (Sick_resistance) {
-               pline("This is rotten, though it somehow reminds you of your grandmother's cooking...so you eat it anyways.");
-               return(2);
-           }
-           else if (rottenfood(otmp)) {
+           if (rottenfood(otmp)) {
                otmp->orotten = TRUE;
                (void)touchfood(otmp);
                retcode = 1;


Cheers,
Michael


Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Slashem-devel mailing list
Slashem-devel@...
https://lists.sourceforge.net/lists/listinfo/slashem-devel