mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-18 20:48:26 +00:00
Partial work on loot tables (non-compiling)
This commit is contained in:
+16
-4
@@ -25,6 +25,7 @@
|
||||
#include "../common/rulesys.h"
|
||||
#include "../common/eqemu_exception.h"
|
||||
#include "items.h"
|
||||
#include "loot.h"
|
||||
#include "skill_caps.h"
|
||||
#include "spells.h"
|
||||
|
||||
@@ -52,10 +53,11 @@ int main(int argc, char **argv) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
bool load_all = true;
|
||||
bool load_items = true;
|
||||
bool load_skill_caps = true;
|
||||
bool load_spells = true;
|
||||
bool load_all = false;
|
||||
bool load_items = false;
|
||||
bool load_loot = true;
|
||||
bool load_skill_caps = false;
|
||||
bool load_spells = false;
|
||||
if(load_all || load_items) {
|
||||
LogFile->write(EQEMuLog::Status, "Loading items...");
|
||||
try {
|
||||
@@ -66,6 +68,16 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
}
|
||||
|
||||
if(load_all || load_loot) {
|
||||
LogFile->write(EQEMuLog::Status, "Loading loot...");
|
||||
try {
|
||||
LoadLoot(&database);
|
||||
} catch(std::exception &ex) {
|
||||
LogFile->write(EQEMuLog::Error, "%s", ex.what());
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if(load_all || load_skill_caps) {
|
||||
LogFile->write(EQEMuLog::Status, "Loading skill caps...");
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user