From be9e4bb16be7f38e373b4f9bbbd4379c959f42c5 Mon Sep 17 00:00:00 2001 From: mamontow Date: Wed, 1 Sep 2021 00:37:24 +0300 Subject: [PATCH] Added new CapMechanic --- Assets/Scenes/Level_1.unity | 567 +++++++++----------------- Assets/Scripts/CaptureController.cs | 16 +- Assets/Scripts/Global/DeathChecker.cs | 4 +- Assets/Scripts/TileInfo.cs | 2 +- Assets/Scripts/TileManagment.cs | 63 ++- 5 files changed, 264 insertions(+), 388 deletions(-) diff --git a/Assets/Scenes/Level_1.unity b/Assets/Scenes/Level_1.unity index 07f45601..f939cbbc 100644 --- a/Assets/Scenes/Level_1.unity +++ b/Assets/Scenes/Level_1.unity @@ -156,8 +156,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -345,8 +344,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -752,8 +750,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -791,8 +788,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -1182,8 +1178,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -1296,8 +1291,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -1417,8 +1411,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -1456,8 +1449,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -1645,8 +1637,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -1684,8 +1675,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2088,8 +2078,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2202,8 +2191,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2316,8 +2304,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2430,8 +2417,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2544,8 +2530,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2583,8 +2568,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2854,8 +2838,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2893,8 +2876,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -2932,8 +2914,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3046,8 +3027,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3085,8 +3065,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3199,8 +3178,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3238,8 +3216,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3277,8 +3254,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3316,8 +3292,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3828,8 +3803,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -3867,8 +3841,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -4056,8 +4029,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -4095,8 +4067,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -4218,8 +4189,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -4482,8 +4452,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -4746,8 +4715,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5095,8 +5063,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5134,8 +5101,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5173,8 +5139,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5317,8 +5282,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5431,8 +5395,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5470,8 +5433,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -5584,8 +5546,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6019,8 +5980,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6058,8 +6018,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6131,8 +6090,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6260,8 +6218,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6299,8 +6256,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6563,8 +6519,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6831,8 +6786,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6870,8 +6824,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6909,8 +6862,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -6948,8 +6900,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -7212,8 +7163,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -7251,8 +7201,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -7467,8 +7416,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -7506,8 +7454,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -7545,8 +7492,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -7659,8 +7605,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -8091,8 +8036,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -8205,8 +8149,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -8319,8 +8262,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -8798,8 +8740,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -8991,8 +8932,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -9030,8 +8970,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -9217,8 +9156,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -9481,8 +9419,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -9595,8 +9532,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -9934,8 +9870,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -10066,8 +10001,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -10105,8 +10039,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -10144,8 +10077,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -10289,8 +10221,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -10328,8 +10259,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -10367,8 +10297,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11054,8 +10983,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11396,8 +11324,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11660,8 +11587,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11699,8 +11625,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11817,8 +11742,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11856,8 +11780,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -11970,8 +11893,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -12234,8 +12156,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -12348,8 +12269,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -12387,8 +12307,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -12501,8 +12420,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -12997,8 +12915,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -13111,8 +13028,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -13150,8 +13066,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -13264,7 +13179,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1102420987} - m_Enabled: 0 + m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 0c0fdad2e1568414581fe4f48a238b8e, type: 3} m_Name: @@ -13292,7 +13207,7 @@ MonoBehaviour: m_PrefabInstance: {fileID: 0} m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1102420987} - m_Enabled: 0 + m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 11500000, guid: 7bdb1f3013038a142b6409f33a96c7b4, type: 3} m_Name: @@ -13542,8 +13457,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -13972,8 +13886,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14312,8 +14225,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14484,8 +14396,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14523,8 +14434,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14562,8 +14472,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14676,8 +14585,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14790,8 +14698,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14829,8 +14736,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -14943,8 +14849,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15415,8 +15320,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15454,8 +15358,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15493,8 +15396,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15532,8 +15434,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15646,8 +15547,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15685,8 +15585,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15724,8 +15623,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15763,8 +15661,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -15958,8 +15855,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16307,8 +16203,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16346,8 +16241,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16385,8 +16279,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16499,8 +16392,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16538,8 +16430,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16746,8 +16637,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16785,8 +16675,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -16974,8 +16863,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -17013,8 +16901,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -17435,8 +17322,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -17699,8 +17585,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -18012,8 +17897,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -18051,8 +17935,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -18392,8 +18275,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -18756,7 +18638,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 5182c2cb5eef6d849b560f764c4a0ed6, type: 3} m_Name: m_EditorClassIdentifier: - startHealth: 120 + startHealth: 250 currentHealth: 0 playerImpactVFX: {fileID: 2957420090356197408, guid: 5d1244f7b80cadd428a70173a01ce889, type: 3} @@ -19160,8 +19042,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -19199,8 +19080,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -19313,8 +19193,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -19427,8 +19306,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -19691,8 +19569,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -19880,8 +19757,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -19994,8 +19870,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20108,8 +19983,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20147,8 +20021,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20322,8 +20195,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20526,8 +20398,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20640,8 +20511,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20679,8 +20549,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20793,8 +20662,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -20982,8 +20850,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21021,8 +20888,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21054,8 +20920,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21348,8 +21213,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21387,8 +21251,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21501,8 +21364,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21615,8 +21477,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21654,8 +21515,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -21693,8 +21553,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22165,8 +22024,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22204,8 +22062,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22375,8 +22232,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22414,8 +22270,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22586,8 +22441,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22806,8 +22660,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -22884,8 +22737,8 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 4b3c4882af86905429c1c42aabf068c1, type: 3} m_Name: m_EditorClassIdentifier: - neutralCaptureTime: 0.2 - enemyCaptureTime: 0.4 + neutralCaptureTime: 1 + enemyCaptureTime: 2 capVFX: {fileID: 442387583353148024, guid: 53959bc898e9a644daad0282881d596a, type: 3} --- !u!114 &1801060025 MonoBehaviour: @@ -22938,7 +22791,7 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 5182c2cb5eef6d849b560f764c4a0ed6, type: 3} m_Name: m_EditorClassIdentifier: - startHealth: 10000 + startHealth: 510 currentHealth: 0 playerImpactVFX: {fileID: 2957420090356197408, guid: 5d1244f7b80cadd428a70173a01ce889, type: 3} @@ -23241,8 +23094,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -23280,8 +23132,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -23394,8 +23245,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -23433,8 +23283,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -23939,8 +23788,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -23978,8 +23826,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24017,8 +23864,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24056,8 +23902,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24095,8 +23940,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24209,8 +24053,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24248,8 +24091,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24287,8 +24129,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24326,8 +24167,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -24665,8 +24505,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -25238,8 +25077,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -25502,8 +25340,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -25689,8 +25526,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -25803,8 +25639,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26098,8 +25933,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26137,8 +25971,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26176,8 +26009,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26215,8 +26047,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26341,8 +26172,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26530,8 +26360,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26599,8 +26428,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26719,8 +26547,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26833,8 +26660,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -26947,8 +26773,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -27250,8 +27075,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -27289,8 +27113,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -27328,8 +27151,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -27517,8 +27339,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -27706,8 +27527,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -27820,8 +27640,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -28084,8 +27903,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -28285,8 +28103,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -28324,8 +28141,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 0 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 @@ -28363,8 +28179,7 @@ MonoBehaviour: easyCaptureFor: checkedFor: isBorderTile: 1 - isChecked: 0 - isLocked: 0 + easyCaptureForAll: 0 gCost: 0 hCost: 0 fCost: 0 diff --git a/Assets/Scripts/CaptureController.cs b/Assets/Scripts/CaptureController.cs index 76a5b16b..7a927bae 100644 --- a/Assets/Scripts/CaptureController.cs +++ b/Assets/Scripts/CaptureController.cs @@ -49,14 +49,14 @@ public class CaptureController : MonoBehaviour private void TryToCaptureTile() { TileInfo tile = _playerState.currentTile; - + if (_playerState.ownerIndex != tile.tileOwnerIndex) - { + { _playerState.SetNewState(CharacterState.Capture); - - if (tile.easyCaptureFor.Contains(_playerState.ownerIndex) || tile.isLocked) + + if (tile.easyCaptureFor.Contains(_playerState.ownerIndex) || tile.easyCaptureForAll) { - CaptureTile(tile); + CaptureTile(tile); } else { @@ -71,8 +71,12 @@ public class CaptureController : MonoBehaviour StartCoroutine(_currentCoroutine); } } - + + } + else + { + TileManagment.SetPlayerTilesCapState(_playerState); } } diff --git a/Assets/Scripts/Global/DeathChecker.cs b/Assets/Scripts/Global/DeathChecker.cs index bdd187e3..ab6811d6 100644 --- a/Assets/Scripts/Global/DeathChecker.cs +++ b/Assets/Scripts/Global/DeathChecker.cs @@ -156,7 +156,7 @@ public class DeathChecker : MonoBehaviour private void PlayerDeadActions(PlayerState player) { List playerTiles = TileManagment.GetCharacterTiles(player); - TileManagment.LockTiles(playerTiles, true); + TileManagment.SetEasyCapState(playerTiles, true); player.SetDead(); Debug.Log("player " + player.name + " dead"); @@ -174,7 +174,7 @@ public class DeathChecker : MonoBehaviour TileInfo resTile = GetAvailableResTile(player, playerTiles); if (resTile) { - TileManagment.LockTiles(playerTiles, false); + TileManagment.SetEasyCapState(playerTiles, false); player.SetAlive(resTile.tilePosition); diff --git a/Assets/Scripts/TileInfo.cs b/Assets/Scripts/TileInfo.cs index 3670b742..666a484f 100644 --- a/Assets/Scripts/TileInfo.cs +++ b/Assets/Scripts/TileInfo.cs @@ -18,7 +18,7 @@ public class TileInfo : MonoBehaviour public bool isBorderTile = false; - public bool isLocked = false; + public bool easyCaptureForAll = false; #region Pathfinding values [Header("Pathfinding Settings")] diff --git a/Assets/Scripts/TileManagment.cs b/Assets/Scripts/TileManagment.cs index caeb2ded..1aa6b331 100644 --- a/Assets/Scripts/TileManagment.cs +++ b/Assets/Scripts/TileManagment.cs @@ -86,7 +86,7 @@ public class TileManagment : MonoBehaviour public static void ChangeTileOwner(TileInfo tile, PlayerState newPlayer) { - tile.isLocked = false; + tile.easyCaptureForAll = false; TileOwner newOwner = newPlayer.ownerIndex; TileOwner oldOwner = tile.tileOwnerIndex; tile.tileOwnerIndex = newOwner; @@ -98,6 +98,7 @@ public class TileManagment : MonoBehaviour OnAnyTileCaptured?.Invoke(newPlayer); CheckSurroundedTiles(levelTiles, newOwner, oldOwner); + SetAllPLayersTilesCapState(GameManager.activePlayers); } @@ -245,11 +246,11 @@ public class TileManagment : MonoBehaviour return playerTiles; } - public static void LockTiles(List tiles, bool lockState) + public static void SetEasyCapState(List tiles, bool capState) { foreach (TileInfo tile in tiles) { - tile.isLocked = lockState; + tile.easyCaptureForAll = capState; } } @@ -344,6 +345,62 @@ public class TileManagment : MonoBehaviour } + public static void SetPlayerTilesCapState(PlayerState player) + { + List playerTiles = charTiles[(int)player.ownerIndex]; + foreach (TileInfo tile in playerTiles) + { + tile.easyCaptureForAll = true; + } + List playerConnectedTiles = GetConnectedTiles(levelTiles, player.ownerIndex, player.currentTile); + foreach (TileInfo tile in playerConnectedTiles) + { + tile.easyCaptureForAll = false; + } + } + + public static void SetAllPLayersTilesCapState(List activePlayers) + { + foreach (PlayerState player in activePlayers) + { + SetPlayerTilesCapState(player); + } + } + + public static List GetConnectedTiles(List allTiles, TileOwner ownerIndex, TileInfo startTile) + { + List connectedTiles = new List(); + var q = new Queue(allTiles.Count); + q.Enqueue(startTile); + int iterations = 0; + + while (q.Count > 0) + { + var tile = q.Dequeue(); + if (q.Count > allTiles.Count) + { + throw new Exception("The algorithm is probably looping. Queue size: " + q.Count); + } + + if (connectedTiles.Contains(tile)) + { + continue; + } + + connectedTiles.Add(tile); + var myAdjacentTiles = GetOwnerAdjacentTiles(tile, ownerIndex); + + foreach (TileInfo newTile in myAdjacentTiles) + { + q.Enqueue(newTile); + } + + iterations++; + } + + return connectedTiles; + } + public static void CheckIfSurroundedByOwner(List tiles, TileOwner ownerIndex, TileInfo startTile) { List connectedTiles = new List();