p->master = NULL; // Just to make sure
display_monster(u);
}
+ /*
else if (eventnum < 12 && eventnum >= 10) // 2% for finding potions
{
notice(s_GameServ, u, "Fortune smiles upon thee!");
break;
}
}
+ */
else if (eventnum < 10 && eventnum >= 5) // 5% for the fountain
{
if (p->hp < p->maxhp)
}
else if (eventnum < 3)
{
- newstats = (rand() % 1000) * (p->level + (rand() % 10));
+ newstats = levels[p->level - 1].getStrength().random();
notice(s_GameServ, u, "A SACK WITH %ld GOLD!", newstats);
p->gold += newstats;
}
else
{
- newstats = (rand() % 100) * (p->level + rand() % 10);
+ newstats = levels[p->level - 1].getExp().random();
notice(s_GameServ, u, "Time seems to stand still for a moment.");
notice(s_GameServ, u, " %ld EXTRA EXPERIENCE POINTS", newstats);
p->exp += newstats;