]> jfr.im git - irc/gameservirc.git/blobdiff - gameserv/c_forest.cpp
Added a parameter to the list command that only lists those playing
[irc/gameservirc.git] / gameserv / c_forest.cpp
index ea73aac879fd784102c575d77151c9e62534dea7..58d29dc60685f83b15f315881f2c518ea20f23da 100644 (file)
@@ -86,9 +86,18 @@ void do_forest(char *u)
            }
            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->hp = p->maxhp;
+               if (p->hp < p->maxhp)
+               {
+                   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->hp = p->maxhp;
+               }
+               else
+               {
+                   notice(s_GameServ, u, "In your path lies a beautiful fountain from which flows the crystal waters of life.");
+                   notice(s_GameServ, u, "You are not thirsty, though, and you don't need healing. Best to leave this for the next warrior");
+                   p->forest_fights++;
+               }
            }
            else if (eventnum < 5) // 5 % for the wishing well
            {