Guida [FIX]Parser Act7

Exco

Utente Gold
8 Agosto 2013
461
53
74
224
Opennos.Data -> NpcMonsterDTO:

Cambia:

C#:
public sbyte DarkResistance {get; set; }

public sbyte FireResistance {get; set; }

public sbyte LightResistance {get; set; }

public sbyte WaterResistance {get; set; }

Con:
C#:
public short DarkResistance {get; set; }

public short FireResistance {get; set; }

public short LightResistance {get; set; }

public short WaterResistance {get; set; }

ImportFactory:
Cambia:

C#:
npc.FireResistance = Convert.ToSByte (currentLine [4]);
npc.WaterResistance = Convert.ToSByte (currentLine [5]);
npc.LightResistance = Convert.ToSByte (currentLine [6]);
npc.DarkResistance = Convert.ToSByte (currentLine [7]);

Con:
C#:
npc.FireResistance = Convert.ToInt16 (currentLine [4]);
npc.WaterResistance = Convert.ToInt16 (currentLine [5]);
npc.LightResistance = Convert.ToInt16 (currentLine [6]);
npc.DarkResistance = Convert.ToInt16 (currentLine [7]);

SEARCH: ImportNpcMonsters() in import factory
Cambia:

C#:
 int[] basicHp = new int[100];
            int[] basicMp = new int[100];
            int[] basicXp = new int[100];
            int[] basicJXp = new int[100];

Con:
C#:
 int[] basicHp = new int[101];
            int[] basicMp = new int[101];
            int[] basicXp = new int[101];
            int[] basicJXp = new int[101];
 
Indietro
Top Bottom