battle, ship boom boom

This commit is contained in:
rfi
2024-02-26 11:03:56 +07:00
parent 3046a7d20e
commit a6f4897c29
8 changed files with 424 additions and 4 deletions

View File

@@ -205,7 +205,7 @@ namespace BLHX.Server.Common.Database
}
if (num < 0)
res.Num = (uint)Math.Max(res.Num - num, 0);
res.Num = (uint)Math.Max(res.Num + num, 0);
else
res.Num = Math.Min(res.Num + (uint)num, uint.MaxValue);
}