|
|
@ -119,22 +119,28 @@ public class DestructionManager : Singleton<DestructionManager> |
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{*/ |
|
|
{*/ |
|
|
/* if (canAdv) |
|
|
/* if (canAdv) |
|
|
{ |
|
|
{ |
|
|
int trueCost = cardOriginalData.Cost; |
|
|
int trueCost = cardOriginalData.Cost; |
|
|
string reduceCost; |
|
|
string reduceCost; |
|
|
if (cardOriginalData.AdvantageFunctionVal.TryGetValue(CardFunction.reduceCost, out reduceCost)) |
|
|
if (cardOriginalData.AdvantageFunctionVal.TryGetValue(CardFunction.reduceCost, out reduceCost)) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
trueCost -= int.Parse(reduceCost); |
|
|
trueCost -= int.Parse(reduceCost); |
|
|
MathTool.keepNature(trueCost); |
|
|
MathTool.keepNature(trueCost); |
|
|
} |
|
|
} |
|
|
GameManager.Instance.playerState.currentCost -= trueCost; |
|
|
GameManager.Instance.playerState.currentCost -= trueCost; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{*/ |
|
|
{*/ |
|
|
GameManager.Instance.playerState.currentCost -= cardOriginalData.Cost; |
|
|
int trueCost = cardOriginalData.Cost; |
|
|
|
|
|
//»ÒÉ«µØ¿éЧ¹û
|
|
|
|
|
|
if (MapUnityManager.Instance.isPlayerOn(Name.NodeColor.Black)) |
|
|
|
|
|
{ |
|
|
|
|
|
trueCost++; |
|
|
|
|
|
} |
|
|
|
|
|
GameManager.Instance.playerState.currentCost -= trueCost; |
|
|
//}
|
|
|
//}
|
|
|
|
|
|
|
|
|
yield return StartCoroutine(settleStage2(cardOriginalData, influencePreviewPool, cardIndex, leftCost, targetNode)); |
|
|
yield return StartCoroutine(settleStage2(cardOriginalData, influencePreviewPool, cardIndex, leftCost, targetNode)); |
|
|
|