12121
This commit is contained in:
@@ -227,11 +227,6 @@ public class GameAttrTool
|
||||
decimal radio = item.count * 0.04M;
|
||||
temp.defense = Convert.ToInt32(temp.defense * (1.0M - radio));
|
||||
}
|
||||
else if (item.code == nameof(GameEnum.AttrCode.PalsyAtk))
|
||||
{
|
||||
decimal radio = item.count * 0.1M;
|
||||
temp.Atk_Next -= radio;
|
||||
}
|
||||
}
|
||||
|
||||
return temp;
|
||||
|
||||
11
Service/Application.Domain/Tool/Base/UserStateTool.cs
Normal file
11
Service/Application.Domain/Tool/Base/UserStateTool.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Application.Domain;
|
||||
|
||||
public static class UserStateTool
|
||||
{
|
||||
public static async Task<bool> CheckUserFight(string userId)
|
||||
{
|
||||
var fightService = App.GetService<IGameFightService>();
|
||||
var myFight = await fightService.GetUserFight(userId);
|
||||
return myFight.Count > 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user