This commit is contained in:
Putoo
2026-07-04 18:07:37 +08:00
parent ea32e7046e
commit fa00fc5d66
26 changed files with 871 additions and 69 deletions

View File

@@ -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;

View 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;
}
}