Fixed bug in property reflection code. If array had 2 or more digit index, would truncate to 1 digit.

This commit is contained in:
Filip Maj 2016-01-12 01:20:09 -05:00
parent e47904dc30
commit 2bf532a6db
2 changed files with 11 additions and 13 deletions

View File

@ -85,7 +85,15 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
charaWork.command[15] = 0xA0F00000 | 22015; charaWork.command[15] = 0xA0F00000 | 22015;
charaWork.command[32] = 0xA0F00000 | 27155; charaWork.command[32] = 0xA0F00000 | 27155;
charaWork.command[33] = 0xA0F00000 | 27150;
charaWork.command[34] = 0xA0F00000 | 27300;
charaWork.command[61] = 0xA0F00000 | 27300;
charaWork.command[36] = 0xA0F00000 | 27300;
//charaWork.command[35] = 0xA0F00000 | 27300;
//charaWork.command[35] = 0xA0F00000 | 27300;
/*
charaWork.additionalCommandAcquired[0] = true; charaWork.additionalCommandAcquired[0] = true;
charaWork.additionalCommandAcquired[12] = true; charaWork.additionalCommandAcquired[12] = true;
charaWork.additionalCommandAcquired[22] = true; charaWork.additionalCommandAcquired[22] = true;
@ -95,24 +103,13 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
charaWork.commandCategory[0] = 1; charaWork.commandCategory[0] = 1;
charaWork.commandCategory[1] = 1; charaWork.commandCategory[1] = 1;
*/
charaWork.battleTemp.generalParameter[3] = 1; charaWork.battleTemp.generalParameter[3] = 1;
charaWork.eventSave.bazaarTax = 5; charaWork.eventSave.bazaarTax = 5;
charaWork.battleSave.potencial = 6.6f; charaWork.battleSave.potencial = 6.6f;
for (int i = 32; i < 49; i++)
charaWork.commandCategory[i] = 1;
charaWork.commandCategory[0] = 1;
charaWork.commandCategory[1] = 1;
charaWork.commandCategory[51] = 1;
for (int i = 0; i <= 12; i++)
charaWork.parameterSave.commandSlot_compatibility[i] = true;
for (int i = 0; i < 30; i++)
charaWork.parameterSave.commandSlot_recastTime[i] = 0x50E0230C;
charaWork.commandBorder = 0x20; charaWork.commandBorder = 0x20;
Database.loadPlayerCharacter(this); Database.loadPlayerCharacter(this);
@ -242,6 +239,7 @@ namespace FFXIVClassic_Map_Server.dataobjects.chara
propPacketUtil.addProperty(String.Format("charaWork.parameterSave.commandSlot_recastTime[{0}]", i)); propPacketUtil.addProperty(String.Format("charaWork.parameterSave.commandSlot_recastTime[{0}]", i));
} }
*/ */
//System //System
propPacketUtil.addProperty("charaWork.parameterTemp.forceControl_float_forClientSelf[0]"); propPacketUtil.addProperty("charaWork.parameterTemp.forceControl_float_forClientSelf[0]");
propPacketUtil.addProperty("charaWork.parameterTemp.forceControl_float_forClientSelf[1]"); propPacketUtil.addProperty("charaWork.parameterTemp.forceControl_float_forClientSelf[1]");

View File

@ -110,7 +110,7 @@ namespace FFXIVClassic_Map_Server.packets.send.actor
if (split[i].LastIndexOf(']') - split[i].IndexOf('[') <= 0) if (split[i].LastIndexOf(']') - split[i].IndexOf('[') <= 0)
return false; return false;
arrayIndex = Convert.ToInt32(split[i].Substring(split[i].IndexOf('[') + 1, split[i].Length - split[i].LastIndexOf(']'))); arrayIndex = Convert.ToInt32(split[i].Substring(split[i].IndexOf('[') + 1, split[i].LastIndexOf(']') - split[i].LastIndexOf('[')-1));
split[i] = split[i].Substring(0, split[i].IndexOf('[')); split[i] = split[i].Substring(0, split[i].IndexOf('['));
} }