去除log,修改冷静期不传输

This commit is contained in:
wuwenbo 2025-11-02 15:38:01 +08:00
parent 95c5f063bf
commit 2843106766
3 changed files with 1 additions and 2 deletions

View File

@ -1205,6 +1205,7 @@ namespace RuntimeData
// 国家对我发起的结盟请求
public bool IsLeagueRequest;
// 冷静期标记
[MemoryPackIgnore]
public int IsCalm;
[MemoryPackConstructor]

View File

@ -236,7 +236,6 @@ namespace Logic.Action
gridData.Resource = ResourceType.None;
gridData.Renderer(actionParams.MapData)?.InstantUpdateGrid(true);
var value = actionParams.MapData.Net.GetRandom(actionParams.MapData).Next(0, 100);
LogSystem.LogError($"随机数: {value}");
if (value < 50)
{
actionParams.PlayerData.PlayerWealth += 10;

View File

@ -760,7 +760,6 @@ namespace TH1Renderer
// 随机选择一个最佳方向
var value = map.Net.GetRandom(map).Next(0, bestDirections.Count);
LogSystem.LogError($"随机数: {value}");
int selectedDirIndex = bestDirections[value];
// 根据选择的方向确定移动的目标位置