X-Git-Url: https://jfr.im/git/irc/gameservirc.git/blobdiff_plain/9181f3e5ae5b80a10b2477c2a2e7fb6b5f04c8d2..42106907f7ad612248bbcb1bf7515effe29e04c5:/gameserv/c_forest.cpp diff --git a/gameserv/c_forest.cpp b/gameserv/c_forest.cpp index 68a9a37..7ab179f 100644 --- a/gameserv/c_forest.cpp +++ b/gameserv/c_forest.cpp @@ -36,9 +36,6 @@ void do_forest(char *u) { aClient *source; - int num = rand() % 12; - - if (!(source = find(u))) { notice(s_GameServ, u, "Fatal Error in do_forest. Contact a %S admin for help."); @@ -75,7 +72,7 @@ void do_forest(char *u) // 88% of forest searching turns up a monster if (eventnum >= 12) { - p->fight = new Monster(monsters[p->level - 1][num]); + p->fight = new Monster(levels[p->level - 1].monsters.random()); notice(s_GameServ, u, "You have found %s!", p->fight->name); if (p->fight->hp < p->fight->maxhp) p->fight->hp = p->fight->maxhp;