????????д?????ˉ??????С????
???????????? ???????[ 2014/7/24 10:50:03 ] ????????
????????????????????????????о???????????????????????????????????????????????????????????????????????о????????
????????????????ˉ??????25?е???Ч?????棬????????????????????2?????????2??????????3/2???????????0/1?????С??????????25?????3????????????????Ρ?????
?????????·??ui??winform???????helper??????????BoomRequest?????а???????????key??????????????????????????????????????????value??int????????????????????????helper???????????????????????????????????????????????????????????????????response????ui?????????
????????????????????κ??????????????????????????????Σ????Σ?ˉ???25?е?????????3?????ui???????????helper?е?????????
public static BoomResponse Boom(BoomRequest request)
{
Random random = new Random(System.DateTime.Now.Millisecond);
StringBuilder sb = new StringBuilder();
int boomIndex = 0;
string boomObject = string.Empty;
BoomResponse response = new BoomResponse();
Dictionary<int?? string> dic = new Dictionary<int?? string>();
int i = 1;
foreach (KeyValuePair<string?? int> key in request.RequsetData)
{
if (key.Value > 0)
{
dic.Add(i?? key.Key);
i++;
}
}
boomIndex = random.Next(1?? dic.Count+1);
boomObject = dic[boomIndex];
request.RequsetData[boomObject] = request.RequsetData[boomObject] - 1;
sb.Append(string.Format("{0} ??????????? {1}?????????????"?? "25??"?? boomObject));
response.BattleLog = sb;
response.ResponseData = request.RequsetData;
return response;
}
??????????????????????????в??????????????????
???????1?????????????????????????1w??????д?????60???????
???????2????????????2000??????
???????3??????????2000??????
???????4?????????????????????????????????????????????300???????????????1???
???????5????????????????5000??Σ?????????????????????????????????????????
???????????????????????
??????????????Σ??????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11