#include "sockhelp.h"
#include "item.h"
#include "script.h"
+#include "toplist.h"
#include <algorithm>
#include <cctype>
list<item*> Items; // The master list of items
list<tavernItem> tavern; // The list of items available at the tavern
list<item*> store; // The list of items available at the store
+toplist myToplist; // List of the top 10 players
// Database functions
int save_gs_dbase();
// Add the player to the list
players[hv].push_back(user->stats);
+
+ // Attempt to add the player to the top list
+ // The class takes care of pruning the user out if they don't deserve to be in the list
+ myToplist.insertPlayer(user->stats);
}
else
{