去除log,修改冷静期不传输
This commit is contained in:
parent
95c5f063bf
commit
2843106766
@ -1205,6 +1205,7 @@ namespace RuntimeData
|
||||
// 国家对我发起的结盟请求
|
||||
public bool IsLeagueRequest;
|
||||
// 冷静期标记
|
||||
[MemoryPackIgnore]
|
||||
public int IsCalm;
|
||||
|
||||
[MemoryPackConstructor]
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -760,7 +760,6 @@ namespace TH1Renderer
|
||||
// 随机选择一个最佳方向
|
||||
|
||||
var value = map.Net.GetRandom(map).Next(0, bestDirections.Count);
|
||||
LogSystem.LogError($"随机数: {value}");
|
||||
int selectedDirIndex = bestDirections[value];
|
||||
|
||||
// 根据选择的方向确定移动的目标位置
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user