Merge branch 'main' of http://10.27.16.144:3000/kawagiri/TH1
This commit is contained in:
commit
8c2e4ba79b
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
@ -15,6 +16,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AICalculateAction : ActionTask
|
||||
{
|
||||
public List<CalculateType> CalculateTypes;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIForeachCreate : ActionTask
|
||||
{
|
||||
public Strategy Strategy;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Logic.Action;
|
||||
using Logic.AI;
|
||||
@ -16,6 +17,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIGeneratorAction : ActionTask
|
||||
{
|
||||
public List<CommonActionType> ActionTypes;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
@ -16,6 +17,7 @@ using RuntimeData;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamAroundNoUnitCity : ActionTask
|
||||
{
|
||||
public int Offset;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
@ -16,9 +17,11 @@ using RuntimeData;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamExplore : ActionTask
|
||||
{
|
||||
public int Offset = 1;
|
||||
public int Offset = 3;
|
||||
|
||||
|
||||
protected override string info
|
||||
{
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamHealth : ActionTask
|
||||
{
|
||||
public bool GreaterThan = true;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
@ -16,6 +17,7 @@ using RuntimeData;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamSelfCityCount : ActionTask
|
||||
{
|
||||
public bool Big;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamSelfTerritory : ActionTask
|
||||
{
|
||||
public bool IsIn = true;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamSelfTerritoryResource : ActionTask
|
||||
{
|
||||
public ResourceType Resource;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamTargetCityHaveUnit : ActionTask
|
||||
{
|
||||
public bool CheckHaveUnit = true;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamTargetCityInAttackRange : ActionTask
|
||||
{
|
||||
public bool CheckInAttackRange = true;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamTechType : ActionTask
|
||||
{
|
||||
public TechType TechType;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class AIParamTrainUnitType : ActionTask
|
||||
{
|
||||
public UnitType UnitType;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AICondition")]
|
||||
[Serializable]
|
||||
public class CountryStrategyCondition : ConditionTask
|
||||
{
|
||||
public Strategy CountryStrategy;
|
||||
|
||||
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Logic.AI;
|
||||
using NodeCanvas.Framework;
|
||||
using ParadoxNotion.Design;
|
||||
@ -14,6 +15,7 @@ using ParadoxNotion.Design;
|
||||
namespace NodeCanvas.Tasks.Actions
|
||||
{
|
||||
[Category("AIAction")]
|
||||
[Serializable]
|
||||
public class MarkAction : ActionTask
|
||||
{
|
||||
public string MarkStr;
|
||||
|
||||
@ -934,7 +934,7 @@ namespace Logic.AI
|
||||
if (!Map.GetUnitDataByGid(aroundGrid.Id, out var attacker)) continue;
|
||||
if (!Table.Instance.UnitTypeDataAssets.GetUnitTypeInfo(attacker.UnitType, attacker.GiantType, out var attackInfo))
|
||||
continue;
|
||||
if (selfUnit.Contains(attacker)) score += attackInfo.Cost;
|
||||
if (!selfUnit.Contains(attacker)) score += attackInfo.Cost;
|
||||
else score -= attackInfo.Cost;
|
||||
}
|
||||
if (score > 6)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user