????????写?????藟??????小????
???????????? ???????[ 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