Example #1
0
        //FUNCTIONS**************************************************
        private void CalculateHash()
        {
            string data = this.ChampionClass.ToString() + this.ChampionType.ToString() + this.Experience.ToString() +
                          this.Level.ToString() + this.Vitality.ToString() + CryptoRandom.Next(0, int.MaxValue - 1).ToString();

            this.Hash = GameGlobals.CalculateIndyvidualHash(data);
        }
Example #2
0
        private void CalculateHash()
        {
            string dataInfo = this.Class.ToString() + this.Type.ToString() + this.Name + this.Icon.Index.ToString()
                              + this.Icon.Rarity.ToString() + CryptoRandom.Next(0, int.MaxValue - 1).ToString();

            for (int i = 0; i < this.Features.GetFeatures.Length; i++)
            {
                dataInfo += this.Features.GetFeatures[i].ToString();
            }
            this.Hash = GameGlobals.CalculateIndyvidualHash(dataInfo);
        }