]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/c_forest.cpp
Changed configscript.cpp to a smaller shell script
[irc/gameservirc.git] / gameserv / c_forest.cpp
index d354786e7239c4b6df45cd346dda0476cae59a1a..ea73aac879fd784102c575d77151c9e62534dea7 100644 (file)
@@ -58,21 +58,22 @@ void do_forest(char *u)
     }
     else 
     {
+       updateTS(source->stats);
         if (p->forest_fights <= 0)
         {
             notice(s_GameServ, u, "You are out of forest fights for the day. Wait "\
                 "till tomorrow!");
             return;
         }
-        else if (!is_fighting(u))
+        else if (!is_fighting(source))
         {
            int eventnum = rand() % 100;
            p->forest_fights--;
 
            notice(s_GameServ, u, "You search the forest for something to kill...");
 
-           // 85% of forest searching turns up a monster
-           if (eventnum >= 15)
+           // 88% of forest searching turns up a monster
+           if (eventnum >= 12)
            {
                p->fight = new Monster(monsters[p->level - 1][num]);
                notice(s_GameServ, u, "You have found \ 2%s\ 2!", p->fight->name);
@@ -83,11 +84,10 @@ void do_forest(char *u)
                p->master = NULL; // Just to make sure
                display_monster(u);
            }
-           else if (eventnum < 15 && eventnum >= 5) // 10% for the fountain
+           else if (eventnum < 12 && eventnum >= 5) // 7% for the fountain
            {
                notice(s_GameServ, u, "In your path lies a beautiful fountain from which flows the crystal waters of life.");
                notice(s_GameServ, u, "You wet your lips on the cool blue waters and feel rejuvenated");
-               p->forest_fights += 10;
                p->hp = p->maxhp;
            }
            else if (eventnum < 5) // 5 % for the wishing well