1212
This commit is contained in:
@@ -423,8 +423,8 @@ public static class GameBus
|
||||
{
|
||||
var _randomInstance = new Random();
|
||||
List<RandomData> result = new List<RandomData>();
|
||||
int empty = random.empty - Convert.ToInt32(luck * 100);
|
||||
if (_randomInstance.Next(0, 100) < empty)
|
||||
double empty = random.empty * (1.0 + (double)luck) / 100;
|
||||
if (_randomInstance.NextDouble() > empty)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
@@ -454,8 +454,8 @@ public static class GameBus
|
||||
{
|
||||
var _randomInstance = new Random();
|
||||
List<RandomData> result = new List<RandomData>();
|
||||
int empty = random.empty;
|
||||
if (_randomInstance.Next(0, 100) < empty)
|
||||
double empty = (random.empty / 100);
|
||||
if (_randomInstance.NextDouble() > empty)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -8,4 +8,10 @@ public static class UserStateTool
|
||||
var myFight = await fightService.GetUserFight(userId);
|
||||
return myFight.Count > 0;
|
||||
}
|
||||
|
||||
public static async Task SetUserMapDefault(string userId)
|
||||
{
|
||||
var mapService = App.GetService<IGameMapService>();
|
||||
await mapService.SetUserMapDefault(userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user