Fix for luabind not compiling (jumbers), bunch of api upgrades for lua, changed where spells and items load quests from, removed some old code. etc etc.

This commit is contained in:
KimLS committed 2013-06-22 01:32:41 -07:00
1 parent 7af04798fb
commit 2529a7700e
42 files changed
+426 -859

No files matched your search

+3 -4
View File
@@ -1343,12 +1343,11 @@ ItemInst* SharedDatabase::CreateBaseItem(const Item_Struct* item, int16 charges)
if (charges == 0 && item->MaxCharges == -1)
charges = 1;
inst = new ItemInst(item, charges);
if(item->CharmFileID != 0 || (item->LoreGroup >= 1000 && item->LoreGroup != -1)) {
inst = new EvoItemInst(item, charges);
((EvoItemInst*)inst)->Initialize(this);
inst->Initialize(this);
}
else
inst = new ItemInst(item, charges);
}
return inst;
}