- 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;
+ notice(s_GameServ, u, "Fortune smiles upon thee!");
+
+ eventnum = 1 + rand() % 4;
+ switch(eventnum)
+ {
+ case 1:
+ notice(s_GameServ, u,
+ "You have found an HP Potion!");
+ p->inventory.incHP();
+ break;
+ case 2:
+ notice(s_GameServ, u,
+ "You have found a Strength Potion!");
+ p->inventory.incStrength();
+ break;
+ case 3:
+ notice(s_GameServ, u,
+ "You have found a Defense Potion!");
+ p->inventory.incDefense();
+ break;
+ case 4:
+ notice(s_GameServ, u,
+ "You have found a Healing Potion!");
+ p->inventory.incHealing();
+ break;
+ }
+ }
+ else if (eventnum < 10 && eventnum >= 5) // 5% for the fountain
+ {
+ 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++;
+ }