Return blank string values for string entries that return back null

This commit is contained in:
Akkadius
2020-04-04 04:48:46 -05:00
parent 15c9b64120
commit fe7e850a04
97 changed files with 788 additions and 790 deletions
+84 -84
View File
@@ -978,7 +978,7 @@ public:
entry.id = atoi(row[0]);
entry.minstatus = atoi(row[1]);
entry.Name = row[2];
entry.Name = row[2] ? row[2] : "";
entry.aagi = atoi(row[3]);
entry.ac = atoi(row[4]);
entry.accuracy = atoi(row[5]);
@@ -1018,11 +1018,11 @@ public:
entry.book = atoi(row[39]);
entry.casttime = atoi(row[40]);
entry.casttime_ = atoi(row[41]);
entry.charmfile = row[42];
entry.charmfileid = row[43];
entry.charmfile = row[42] ? row[42] : "";
entry.charmfileid = row[43] ? row[43] : "";
entry.classes = atoi(row[44]);
entry.color = atoi(row[45]);
entry.combateffects = row[46];
entry.combateffects = row[46] ? row[46] : "";
entry.extradmgskill = atoi(row[47]);
entry.extradmgamt = atoi(row[48]);
entry.price = atoi(row[49]);
@@ -1047,7 +1047,7 @@ public:
entry.factionmod2 = atoi(row[68]);
entry.factionmod3 = atoi(row[69]);
entry.factionmod4 = atoi(row[70]);
entry.filename = row[71];
entry.filename = row[71] ? row[71] : "";
entry.focuseffect = atoi(row[72]);
entry.fr = atoi(row[73]);
entry.fvnodrop = atoi(row[74]);
@@ -1056,14 +1056,14 @@ public:
entry.hp = atoi(row[77]);
entry.regen = atoi(row[78]);
entry.icon = atoi(row[79]);
entry.idfile = row[80];
entry.idfile = row[80] ? row[80] : "";
entry.itemclass = atoi(row[81]);
entry.itemtype = atoi(row[82]);
entry.ldonprice = atoi(row[83]);
entry.ldontheme = atoi(row[84]);
entry.ldonsold = atoi(row[85]);
entry.light = atoi(row[86]);
entry.lore = row[87];
entry.lore = row[87] ? row[87] : "";
entry.loregroup = atoi(row[88]);
entry.magic = atoi(row[89]);
entry.mana = atoi(row[90]);
@@ -1110,8 +1110,8 @@ public:
entry.UNK124 = atoi(row[131]);
entry.attuneable = atoi(row[132]);
entry.nopet = atoi(row[133]);
entry.updated = row[134];
entry.comment = row[135];
entry.updated = row[134] ? row[134] : "";
entry.comment = row[135] ? row[135] : "";
entry.UNK127 = atoi(row[136]);
entry.pointtype = atoi(row[137]);
entry.potionbelt = atoi(row[138]);
@@ -1119,7 +1119,7 @@ public:
entry.stacksize = atoi(row[140]);
entry.notransfer = atoi(row[141]);
entry.stackable = atoi(row[142]);
entry.UNK134 = row[143];
entry.UNK134 = row[143] ? row[143] : "";
entry.UNK137 = atoi(row[144]);
entry.proceffect = atoi(row[145]);
entry.proctype = atoi(row[146]);
@@ -1140,12 +1140,12 @@ public:
entry.scrolllevel2 = atoi(row[161]);
entry.scrolllevel = atoi(row[162]);
entry.UNK157 = atoi(row[163]);
entry.serialized = row[164];
entry.verified = row[165];
entry.serialization = row[166];
entry.source = row[167];
entry.serialized = row[164] ? row[164] : "";
entry.verified = row[165] ? row[165] : "";
entry.serialization = row[166] ? row[166] : "";
entry.source = row[167] ? row[167] : "";
entry.UNK033 = atoi(row[168]);
entry.lorefile = row[169];
entry.lorefile = row[169] ? row[169] : "";
entry.UNK014 = atoi(row[170]);
entry.svcorruption = atoi(row[171]);
entry.skillmodmax = atoi(row[172]);
@@ -1159,36 +1159,36 @@ public:
entry.UNK120 = atoi(row[180]);
entry.UNK121 = atoi(row[181]);
entry.questitemflag = atoi(row[182]);
entry.UNK132 = row[183];
entry.UNK132 = row[183] ? row[183] : "";
entry.clickunk5 = atoi(row[184]);
entry.clickunk6 = row[185];
entry.clickunk6 = row[185] ? row[185] : "";
entry.clickunk7 = atoi(row[186]);
entry.procunk1 = atoi(row[187]);
entry.procunk2 = atoi(row[188]);
entry.procunk3 = atoi(row[189]);
entry.procunk4 = atoi(row[190]);
entry.procunk6 = row[191];
entry.procunk6 = row[191] ? row[191] : "";
entry.procunk7 = atoi(row[192]);
entry.wornunk1 = atoi(row[193]);
entry.wornunk2 = atoi(row[194]);
entry.wornunk3 = atoi(row[195]);
entry.wornunk4 = atoi(row[196]);
entry.wornunk5 = atoi(row[197]);
entry.wornunk6 = row[198];
entry.wornunk6 = row[198] ? row[198] : "";
entry.wornunk7 = atoi(row[199]);
entry.focusunk1 = atoi(row[200]);
entry.focusunk2 = atoi(row[201]);
entry.focusunk3 = atoi(row[202]);
entry.focusunk4 = atoi(row[203]);
entry.focusunk5 = atoi(row[204]);
entry.focusunk6 = row[205];
entry.focusunk6 = row[205] ? row[205] : "";
entry.focusunk7 = atoi(row[206]);
entry.scrollunk1 = atoi(row[207]);
entry.scrollunk2 = atoi(row[208]);
entry.scrollunk3 = atoi(row[209]);
entry.scrollunk4 = atoi(row[210]);
entry.scrollunk5 = atoi(row[211]);
entry.scrollunk6 = row[212];
entry.scrollunk6 = row[212] ? row[212] : "";
entry.scrollunk7 = atoi(row[213]);
entry.UNK193 = atoi(row[214]);
entry.purity = atoi(row[215]);
@@ -1196,11 +1196,11 @@ public:
entry.evoid = atoi(row[217]);
entry.evolvinglevel = atoi(row[218]);
entry.evomax = atoi(row[219]);
entry.clickname = row[220];
entry.procname = row[221];
entry.wornname = row[222];
entry.focusname = row[223];
entry.scrollname = row[224];
entry.clickname = row[220] ? row[220] : "";
entry.procname = row[221] ? row[221] : "";
entry.wornname = row[222] ? row[222] : "";
entry.focusname = row[223] ? row[223] : "";
entry.scrollname = row[224] ? row[224] : "";
entry.dsmitigation = atoi(row[225]);
entry.heroic_str = atoi(row[226]);
entry.heroic_int = atoi(row[227]);
@@ -1219,7 +1219,7 @@ public:
entry.spelldmg = atoi(row[240]);
entry.clairvoyance = atoi(row[241]);
entry.backstabdmg = atoi(row[242]);
entry.created = row[243];
entry.created = row[243] ? row[243] : "";
entry.elitematerial = atoi(row[244]);
entry.ldonsellbackrate = atoi(row[245]);
entry.scriptfileid = atoi(row[246]);
@@ -1234,7 +1234,7 @@ public:
entry.bardunk3 = atoi(row[255]);
entry.bardunk4 = atoi(row[256]);
entry.bardunk5 = atoi(row[257]);
entry.bardname = row[258];
entry.bardname = row[258] ? row[258] : "";
entry.bardunk7 = atoi(row[259]);
entry.UNK214 = atoi(row[260]);
entry.UNK219 = atoi(row[261]);
@@ -2227,7 +2227,7 @@ public:
entry.id = atoi(row[0]);
entry.minstatus = atoi(row[1]);
entry.Name = row[2];
entry.Name = row[2] ? row[2] : "";
entry.aagi = atoi(row[3]);
entry.ac = atoi(row[4]);
entry.accuracy = atoi(row[5]);
@@ -2267,11 +2267,11 @@ public:
entry.book = atoi(row[39]);
entry.casttime = atoi(row[40]);
entry.casttime_ = atoi(row[41]);
entry.charmfile = row[42];
entry.charmfileid = row[43];
entry.charmfile = row[42] ? row[42] : "";
entry.charmfileid = row[43] ? row[43] : "";
entry.classes = atoi(row[44]);
entry.color = atoi(row[45]);
entry.combateffects = row[46];
entry.combateffects = row[46] ? row[46] : "";
entry.extradmgskill = atoi(row[47]);
entry.extradmgamt = atoi(row[48]);
entry.price = atoi(row[49]);
@@ -2296,7 +2296,7 @@ public:
entry.factionmod2 = atoi(row[68]);
entry.factionmod3 = atoi(row[69]);
entry.factionmod4 = atoi(row[70]);
entry.filename = row[71];
entry.filename = row[71] ? row[71] : "";
entry.focuseffect = atoi(row[72]);
entry.fr = atoi(row[73]);
entry.fvnodrop = atoi(row[74]);
@@ -2305,14 +2305,14 @@ public:
entry.hp = atoi(row[77]);
entry.regen = atoi(row[78]);
entry.icon = atoi(row[79]);
entry.idfile = row[80];
entry.idfile = row[80] ? row[80] : "";
entry.itemclass = atoi(row[81]);
entry.itemtype = atoi(row[82]);
entry.ldonprice = atoi(row[83]);
entry.ldontheme = atoi(row[84]);
entry.ldonsold = atoi(row[85]);
entry.light = atoi(row[86]);
entry.lore = row[87];
entry.lore = row[87] ? row[87] : "";
entry.loregroup = atoi(row[88]);
entry.magic = atoi(row[89]);
entry.mana = atoi(row[90]);
@@ -2359,8 +2359,8 @@ public:
entry.UNK124 = atoi(row[131]);
entry.attuneable = atoi(row[132]);
entry.nopet = atoi(row[133]);
entry.updated = row[134];
entry.comment = row[135];
entry.updated = row[134] ? row[134] : "";
entry.comment = row[135] ? row[135] : "";
entry.UNK127 = atoi(row[136]);
entry.pointtype = atoi(row[137]);
entry.potionbelt = atoi(row[138]);
@@ -2368,7 +2368,7 @@ public:
entry.stacksize = atoi(row[140]);
entry.notransfer = atoi(row[141]);
entry.stackable = atoi(row[142]);
entry.UNK134 = row[143];
entry.UNK134 = row[143] ? row[143] : "";
entry.UNK137 = atoi(row[144]);
entry.proceffect = atoi(row[145]);
entry.proctype = atoi(row[146]);
@@ -2389,12 +2389,12 @@ public:
entry.scrolllevel2 = atoi(row[161]);
entry.scrolllevel = atoi(row[162]);
entry.UNK157 = atoi(row[163]);
entry.serialized = row[164];
entry.verified = row[165];
entry.serialization = row[166];
entry.source = row[167];
entry.serialized = row[164] ? row[164] : "";
entry.verified = row[165] ? row[165] : "";
entry.serialization = row[166] ? row[166] : "";
entry.source = row[167] ? row[167] : "";
entry.UNK033 = atoi(row[168]);
entry.lorefile = row[169];
entry.lorefile = row[169] ? row[169] : "";
entry.UNK014 = atoi(row[170]);
entry.svcorruption = atoi(row[171]);
entry.skillmodmax = atoi(row[172]);
@@ -2408,36 +2408,36 @@ public:
entry.UNK120 = atoi(row[180]);
entry.UNK121 = atoi(row[181]);
entry.questitemflag = atoi(row[182]);
entry.UNK132 = row[183];
entry.UNK132 = row[183] ? row[183] : "";
entry.clickunk5 = atoi(row[184]);
entry.clickunk6 = row[185];
entry.clickunk6 = row[185] ? row[185] : "";
entry.clickunk7 = atoi(row[186]);
entry.procunk1 = atoi(row[187]);
entry.procunk2 = atoi(row[188]);
entry.procunk3 = atoi(row[189]);
entry.procunk4 = atoi(row[190]);
entry.procunk6 = row[191];
entry.procunk6 = row[191] ? row[191] : "";
entry.procunk7 = atoi(row[192]);
entry.wornunk1 = atoi(row[193]);
entry.wornunk2 = atoi(row[194]);
entry.wornunk3 = atoi(row[195]);
entry.wornunk4 = atoi(row[196]);
entry.wornunk5 = atoi(row[197]);
entry.wornunk6 = row[198];
entry.wornunk6 = row[198] ? row[198] : "";
entry.wornunk7 = atoi(row[199]);
entry.focusunk1 = atoi(row[200]);
entry.focusunk2 = atoi(row[201]);
entry.focusunk3 = atoi(row[202]);
entry.focusunk4 = atoi(row[203]);
entry.focusunk5 = atoi(row[204]);
entry.focusunk6 = row[205];
entry.focusunk6 = row[205] ? row[205] : "";
entry.focusunk7 = atoi(row[206]);
entry.scrollunk1 = atoi(row[207]);
entry.scrollunk2 = atoi(row[208]);
entry.scrollunk3 = atoi(row[209]);
entry.scrollunk4 = atoi(row[210]);
entry.scrollunk5 = atoi(row[211]);
entry.scrollunk6 = row[212];
entry.scrollunk6 = row[212] ? row[212] : "";
entry.scrollunk7 = atoi(row[213]);
entry.UNK193 = atoi(row[214]);
entry.purity = atoi(row[215]);
@@ -2445,11 +2445,11 @@ public:
entry.evoid = atoi(row[217]);
entry.evolvinglevel = atoi(row[218]);
entry.evomax = atoi(row[219]);
entry.clickname = row[220];
entry.procname = row[221];
entry.wornname = row[222];
entry.focusname = row[223];
entry.scrollname = row[224];
entry.clickname = row[220] ? row[220] : "";
entry.procname = row[221] ? row[221] : "";
entry.wornname = row[222] ? row[222] : "";
entry.focusname = row[223] ? row[223] : "";
entry.scrollname = row[224] ? row[224] : "";
entry.dsmitigation = atoi(row[225]);
entry.heroic_str = atoi(row[226]);
entry.heroic_int = atoi(row[227]);
@@ -2468,7 +2468,7 @@ public:
entry.spelldmg = atoi(row[240]);
entry.clairvoyance = atoi(row[241]);
entry.backstabdmg = atoi(row[242]);
entry.created = row[243];
entry.created = row[243] ? row[243] : "";
entry.elitematerial = atoi(row[244]);
entry.ldonsellbackrate = atoi(row[245]);
entry.scriptfileid = atoi(row[246]);
@@ -2483,7 +2483,7 @@ public:
entry.bardunk3 = atoi(row[255]);
entry.bardunk4 = atoi(row[256]);
entry.bardunk5 = atoi(row[257]);
entry.bardname = row[258];
entry.bardname = row[258] ? row[258] : "";
entry.bardunk7 = atoi(row[259]);
entry.UNK214 = atoi(row[260]);
entry.UNK219 = atoi(row[261]);
@@ -2536,7 +2536,7 @@ public:
entry.id = atoi(row[0]);
entry.minstatus = atoi(row[1]);
entry.Name = row[2];
entry.Name = row[2] ? row[2] : "";
entry.aagi = atoi(row[3]);
entry.ac = atoi(row[4]);
entry.accuracy = atoi(row[5]);
@@ -2576,11 +2576,11 @@ public:
entry.book = atoi(row[39]);
entry.casttime = atoi(row[40]);
entry.casttime_ = atoi(row[41]);
entry.charmfile = row[42];
entry.charmfileid = row[43];
entry.charmfile = row[42] ? row[42] : "";
entry.charmfileid = row[43] ? row[43] : "";
entry.classes = atoi(row[44]);
entry.color = atoi(row[45]);
entry.combateffects = row[46];
entry.combateffects = row[46] ? row[46] : "";
entry.extradmgskill = atoi(row[47]);
entry.extradmgamt = atoi(row[48]);
entry.price = atoi(row[49]);
@@ -2605,7 +2605,7 @@ public:
entry.factionmod2 = atoi(row[68]);
entry.factionmod3 = atoi(row[69]);
entry.factionmod4 = atoi(row[70]);
entry.filename = row[71];
entry.filename = row[71] ? row[71] : "";
entry.focuseffect = atoi(row[72]);
entry.fr = atoi(row[73]);
entry.fvnodrop = atoi(row[74]);
@@ -2614,14 +2614,14 @@ public:
entry.hp = atoi(row[77]);
entry.regen = atoi(row[78]);
entry.icon = atoi(row[79]);
entry.idfile = row[80];
entry.idfile = row[80] ? row[80] : "";
entry.itemclass = atoi(row[81]);
entry.itemtype = atoi(row[82]);
entry.ldonprice = atoi(row[83]);
entry.ldontheme = atoi(row[84]);
entry.ldonsold = atoi(row[85]);
entry.light = atoi(row[86]);
entry.lore = row[87];
entry.lore = row[87] ? row[87] : "";
entry.loregroup = atoi(row[88]);
entry.magic = atoi(row[89]);
entry.mana = atoi(row[90]);
@@ -2668,8 +2668,8 @@ public:
entry.UNK124 = atoi(row[131]);
entry.attuneable = atoi(row[132]);
entry.nopet = atoi(row[133]);
entry.updated = row[134];
entry.comment = row[135];
entry.updated = row[134] ? row[134] : "";
entry.comment = row[135] ? row[135] : "";
entry.UNK127 = atoi(row[136]);
entry.pointtype = atoi(row[137]);
entry.potionbelt = atoi(row[138]);
@@ -2677,7 +2677,7 @@ public:
entry.stacksize = atoi(row[140]);
entry.notransfer = atoi(row[141]);
entry.stackable = atoi(row[142]);
entry.UNK134 = row[143];
entry.UNK134 = row[143] ? row[143] : "";
entry.UNK137 = atoi(row[144]);
entry.proceffect = atoi(row[145]);
entry.proctype = atoi(row[146]);
@@ -2698,12 +2698,12 @@ public:
entry.scrolllevel2 = atoi(row[161]);
entry.scrolllevel = atoi(row[162]);
entry.UNK157 = atoi(row[163]);
entry.serialized = row[164];
entry.verified = row[165];
entry.serialization = row[166];
entry.source = row[167];
entry.serialized = row[164] ? row[164] : "";
entry.verified = row[165] ? row[165] : "";
entry.serialization = row[166] ? row[166] : "";
entry.source = row[167] ? row[167] : "";
entry.UNK033 = atoi(row[168]);
entry.lorefile = row[169];
entry.lorefile = row[169] ? row[169] : "";
entry.UNK014 = atoi(row[170]);
entry.svcorruption = atoi(row[171]);
entry.skillmodmax = atoi(row[172]);
@@ -2717,36 +2717,36 @@ public:
entry.UNK120 = atoi(row[180]);
entry.UNK121 = atoi(row[181]);
entry.questitemflag = atoi(row[182]);
entry.UNK132 = row[183];
entry.UNK132 = row[183] ? row[183] : "";
entry.clickunk5 = atoi(row[184]);
entry.clickunk6 = row[185];
entry.clickunk6 = row[185] ? row[185] : "";
entry.clickunk7 = atoi(row[186]);
entry.procunk1 = atoi(row[187]);
entry.procunk2 = atoi(row[188]);
entry.procunk3 = atoi(row[189]);
entry.procunk4 = atoi(row[190]);
entry.procunk6 = row[191];
entry.procunk6 = row[191] ? row[191] : "";
entry.procunk7 = atoi(row[192]);
entry.wornunk1 = atoi(row[193]);
entry.wornunk2 = atoi(row[194]);
entry.wornunk3 = atoi(row[195]);
entry.wornunk4 = atoi(row[196]);
entry.wornunk5 = atoi(row[197]);
entry.wornunk6 = row[198];
entry.wornunk6 = row[198] ? row[198] : "";
entry.wornunk7 = atoi(row[199]);
entry.focusunk1 = atoi(row[200]);
entry.focusunk2 = atoi(row[201]);
entry.focusunk3 = atoi(row[202]);
entry.focusunk4 = atoi(row[203]);
entry.focusunk5 = atoi(row[204]);
entry.focusunk6 = row[205];
entry.focusunk6 = row[205] ? row[205] : "";
entry.focusunk7 = atoi(row[206]);
entry.scrollunk1 = atoi(row[207]);
entry.scrollunk2 = atoi(row[208]);
entry.scrollunk3 = atoi(row[209]);
entry.scrollunk4 = atoi(row[210]);
entry.scrollunk5 = atoi(row[211]);
entry.scrollunk6 = row[212];
entry.scrollunk6 = row[212] ? row[212] : "";
entry.scrollunk7 = atoi(row[213]);
entry.UNK193 = atoi(row[214]);
entry.purity = atoi(row[215]);
@@ -2754,11 +2754,11 @@ public:
entry.evoid = atoi(row[217]);
entry.evolvinglevel = atoi(row[218]);
entry.evomax = atoi(row[219]);
entry.clickname = row[220];
entry.procname = row[221];
entry.wornname = row[222];
entry.focusname = row[223];
entry.scrollname = row[224];
entry.clickname = row[220] ? row[220] : "";
entry.procname = row[221] ? row[221] : "";
entry.wornname = row[222] ? row[222] : "";
entry.focusname = row[223] ? row[223] : "";
entry.scrollname = row[224] ? row[224] : "";
entry.dsmitigation = atoi(row[225]);
entry.heroic_str = atoi(row[226]);
entry.heroic_int = atoi(row[227]);
@@ -2777,7 +2777,7 @@ public:
entry.spelldmg = atoi(row[240]);
entry.clairvoyance = atoi(row[241]);
entry.backstabdmg = atoi(row[242]);
entry.created = row[243];
entry.created = row[243] ? row[243] : "";
entry.elitematerial = atoi(row[244]);
entry.ldonsellbackrate = atoi(row[245]);
entry.scriptfileid = atoi(row[246]);
@@ -2792,7 +2792,7 @@ public:
entry.bardunk3 = atoi(row[255]);
entry.bardunk4 = atoi(row[256]);
entry.bardunk5 = atoi(row[257]);
entry.bardname = row[258];
entry.bardname = row[258] ? row[258] : "";
entry.bardunk7 = atoi(row[259]);
entry.UNK214 = atoi(row[260]);
entry.UNK219 = atoi(row[261]);