using Google.Protobuf.WellKnownTypes; using Newtonsoft.Json.Linq; using StackExchange.Redis; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; partial class GemDesc { public void GetRandomAttr(string key, Random rand, out string prop, out long value, long lucky = 0) { prop = ""; value = 0; EquipAttrDesc equipAttrDesc = EquipAttrDescMgr.Instance.GetConfig(key); value = equipAttrDesc.GetPropValue(rand, lucky, out _); prop = equipAttrDesc.mainAttr; return; } }