public void ParsePlayer(BinaryReader reader, byte index) { levelplusModPlayer copy = Main.player[index].GetModPlayer <levelplusModPlayer>(); copy.level = reader.ReadUInt16(); copy.constitution = reader.ReadUInt16(); copy.strength = reader.ReadUInt16(); copy.intelligence = reader.ReadUInt16(); copy.charisma = reader.ReadUInt16(); copy.dexterity = reader.ReadUInt16(); copy.mysticism = reader.ReadUInt16(); copy.mobility = reader.ReadUInt16(); copy.animalia = reader.ReadUInt16(); copy.luck = reader.ReadUInt16(); copy.excavation = reader.ReadUInt16(); }
public override void clientClone(ModPlayer clientClone) { base.clientClone(clientClone); levelplusModPlayer clone = clientClone as levelplusModPlayer; clone.level = level; clone.constitution = constitution; clone.strength = strength; clone.intelligence = intelligence; clone.charisma = charisma; clone.dexterity = dexterity; clone.mysticism = mysticism; clone.mobility = mobility; clone.animalia = animalia; clone.luck = luck; clone.excavation = excavation; }
public bool StatsMatch(levelplusModPlayer compare) //returns true if stats match { if (compare.level != level || compare.constitution != constitution || compare.strength != strength || compare.intelligence != intelligence || compare.charisma != charisma || compare.dexterity != dexterity || compare.mysticism != mysticism || compare.mobility != mobility || compare.animalia != animalia || compare.luck != luck || compare.excavation != excavation) { return(false); } else { return(true); } }