|
@@ -265,7 +265,7 @@ namespace GFGGame
|
|
{
|
|
{
|
|
if (_dressUpData.actionId > 0)
|
|
if (_dressUpData.actionId > 0)
|
|
{
|
|
{
|
|
- bool replaceableByAction = SuitCfgArray.Instance.CheckItemReaplaceableByAction(itemId, _dressUpData.actionId);
|
|
|
|
|
|
+ bool replaceableByAction = SuitCfgArray.Instance.CheckItemReaplaceableOnAction(itemId, _dressUpData.actionId);
|
|
if (!replaceableByAction)
|
|
if (!replaceableByAction)
|
|
{
|
|
{
|
|
CancelAction();
|
|
CancelAction();
|
|
@@ -314,8 +314,8 @@ namespace GFGGame
|
|
if (!CheckOwn || DressUpMenuItemDataManager.CheckHasItem(itemId))
|
|
if (!CheckOwn || DressUpMenuItemDataManager.CheckHasItem(itemId))
|
|
{
|
|
{
|
|
subType = ItemUtilCS.GetItemSubType(itemId);
|
|
subType = ItemUtilCS.GetItemSubType(itemId);
|
|
- bool replaceableByAction = SuitCfgArray.Instance.CheckItemReaplaceableByAction(itemId, suitId);
|
|
|
|
- if (!IsAction || replaceableByAction)
|
|
|
|
|
|
+ bool notInAction = SuitCfgArray.Instance.CheckItemNotInAction(itemId);
|
|
|
|
+ if (!IsAction || notInAction)
|
|
{
|
|
{
|
|
if (excludeType == null || Array.IndexOf(excludeType, subType) < 0)
|
|
if (excludeType == null || Array.IndexOf(excludeType, subType) < 0)
|
|
{
|
|
{
|
|
@@ -336,8 +336,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
foreach (int itemId in itemList)
|
|
foreach (int itemId in itemList)
|
|
{
|
|
{
|
|
- bool replaceableByAction = SuitCfgArray.Instance.CheckItemReaplaceableByAction(itemId, _dressUpData.actionId);
|
|
|
|
- if (!replaceableByAction)
|
|
|
|
|
|
+ bool notInAction = SuitCfgArray.Instance.CheckItemNotInAction(itemId);
|
|
|
|
+ if (!notInAction)
|
|
{
|
|
{
|
|
AddOrRemove(itemId, false, false, true);
|
|
AddOrRemove(itemId, false, false, true);
|
|
}
|
|
}
|
|
@@ -371,8 +371,8 @@ namespace GFGGame
|
|
{
|
|
{
|
|
if (DressUpMenuItemDataManager.CheckHasItem(itemId))
|
|
if (DressUpMenuItemDataManager.CheckHasItem(itemId))
|
|
{
|
|
{
|
|
- bool replaceableByAction = SuitCfgArray.Instance.CheckItemReaplaceableByAction(itemId, tempActionId);
|
|
|
|
- if (!replaceableByAction)
|
|
|
|
|
|
+ bool notInAction = SuitCfgArray.Instance.CheckItemNotInAction(itemId);
|
|
|
|
+ if (!notInAction)
|
|
{
|
|
{
|
|
AddOrRemove(itemId, false, true);
|
|
AddOrRemove(itemId, false, true);
|
|
}
|
|
}
|