You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
625 B
27 lines
625 B
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|