public static PetDescription GetDescription(NPCCodex.NPCTypes enNPCType) { PetDescription ret = null; if (enNPCType == NPCCodex.NPCTypes.Pet_Rabby) { ret = new PetDescription(enNPCType, EnemyCodex.EnemyTypes.Rabbi); } return ret; }
public void ReadBasicInfo(NetIncomingMessage br) { this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32(); this.bySkin = br.ReadByte(); this.xDescription = PetCodex.GetDescription(this.enNPCType); }
public void CreateNew(EnemyCodex.EnemyTypes enEnemyType) { if (enEnemyType == EnemyCodex.EnemyTypes.Rabbi) { this.enNPCType = NPCCodex.NPCTypes.Pet_Rabby; this.sName = "Rabby"; } else if (enEnemyType == EnemyCodex.EnemyTypes.GreenSlime) { this.enNPCType = NPCCodex.NPCTypes.Pet_Slime; this.sName = "Slimy"; } else if (enEnemyType == EnemyCodex.EnemyTypes.Pumpkin) { this.enNPCType = NPCCodex.NPCTypes.Pet_Jumpkin; this.sName = "Jumpkin"; } this.xDescription = PetCodex.GetDescription(this.enNPCType); }
public void ReadFrom(NetIncomingMessage br) { this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32(); this.sName = br.ReadString(); this.iLevel = (int)br.ReadByte(); this.bySkin = br.ReadByte(); this.deniStatLevels[PetInfo.PetBonus.HP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.SP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Damage] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Crit] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Speed] = br.ReadUInt16(); this.xDescription = PetCodex.GetDescription(this.enNPCType); this.CalculateBonusValues(); Program.GetTheGame()._Pet_AddPetBonuses(this); }
public void ReadFrom(BinaryReader br) { this.enNPCType = (NPCCodex.NPCTypes)br.ReadInt32(); this.sName = br.ReadString(); this.iLevel = (int)br.ReadByte(); this.bySkin = br.ReadByte(); this.deniStatLevels[PetInfo.PetBonus.HP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.SP] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Damage] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Crit] = br.ReadUInt16(); this.deniStatLevels[PetInfo.PetBonus.Speed] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.HP] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.SP] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.Damage] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.Crit] = br.ReadUInt16(); this.deniStatLevelProgress[PetInfo.PetBonus.Speed] = br.ReadUInt16(); this.xDescription = PetCodex.GetDescription(this.enNPCType); this.CalculateBonusValues(); }