Update all character database tables to use lowercase column names.

Now there is a consistent naming style. Previously some tables were mixing up to 3 different styles. Also cleaned up unused tables and fields.
This commit is contained in:
ratkosrb
2021-06-09 07:33:19 +03:00
parent 55741f4ce1
commit 290980c8e5
63 changed files with 1817 additions and 1613 deletions
+5 -5
View File
@@ -439,12 +439,12 @@ void ScriptMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)
case SCRIPT_COMMAND_REMOVE_ITEM:
case SCRIPT_COMMAND_CREATE_ITEM:
{
if (!ObjectMgr::GetItemPrototype(tmp.createItem.itemEntry))
if (!ObjectMgr::GetItemPrototype(tmp.createItem.itemId))
{
if (!sObjectMgr.IsExistingItemId(tmp.createItem.itemEntry))
if (!sObjectMgr.IsExistingItemId(tmp.createItem.itemId))
{
sLog.outErrorDb("Table `%s` has nonexistent item (entry: %u) in SCRIPT_COMMAND_*_ITEM for script id %u",
tablename, tmp.createItem.itemEntry, tmp.id);
tablename, tmp.createItem.itemId, tmp.id);
continue;
}
else
@@ -473,7 +473,7 @@ void ScriptMgr::LoadScripts(ScriptMapMap& scripts, char const* tablename)
{
if (!ObjectMgr::GetItemPrototype(tmp.setEquipment.slot[i]))
{
if (!sObjectMgr.IsExistingItemId(tmp.createItem.itemEntry))
if (!sObjectMgr.IsExistingItemId(tmp.createItem.itemId))
{
sLog.outErrorDb("Table `%s` has nonexistent item (dataint%i: %u) in SCRIPT_COMMAND_SET_EQUIPMENT for script id %u",
tablename, i, tmp.setEquipment.slot[i], tmp.id);
@@ -2495,7 +2495,7 @@ void ScriptMgr::CollectPossibleEventIds(std::set<uint32>& eventIds)
SpellEntry const* spell = sSpellMgr.GetSpellEntry(i);
if (spell)
{
for (int j = 0; j < MAX_EFFECT_INDEX; ++j)
for (uint8 j = 0; j < MAX_EFFECT_INDEX; ++j)
{
if (spell->Effect[j] == SPELL_EFFECT_SEND_EVENT)
{