cull(engine-cleanup): pass-8 phase-2 cascade round 2 after CardDetailUI stub
This commit is contained in:
@@ -258,11 +258,6 @@ public static class CardBasePrm
|
||||
return type == CharaType.NORMAL;
|
||||
}
|
||||
|
||||
public static bool IsSpellCard(CharaType type)
|
||||
{
|
||||
return type == CharaType.SPELL;
|
||||
}
|
||||
|
||||
public static string GetCardTypeName(CharaType type)
|
||||
{
|
||||
string result = string.Empty;
|
||||
|
||||
@@ -21,14 +21,6 @@ public class CardMake : MonoBehaviour
|
||||
|
||||
private Action _onFinishCardDestruct;
|
||||
|
||||
private void DestructCard()
|
||||
{
|
||||
// Pre-Phase-5b: fired CardDestructTask via NetworkManager. Headless has no wire
|
||||
// task service; short-circuit straight to the success callback so the UI event
|
||||
// chain (OnRequestFinishDestruct → TriggerUpdateUserDeck → OnClose) still fires.
|
||||
OnRequestFinishDestruct(default(NetworkTask.ResultCode));
|
||||
}
|
||||
|
||||
private void OnRequestFinishDestruct(NetworkTask.ResultCode error)
|
||||
{
|
||||
TriggerUpdateUserDeck();
|
||||
|
||||
@@ -100,12 +100,8 @@ public class CardParameter
|
||||
|
||||
private string _descriptionId = string.Empty;
|
||||
|
||||
private string _description;
|
||||
|
||||
private string _evoDescriptionId = string.Empty;
|
||||
|
||||
private string _evoDescription;
|
||||
|
||||
private string _cardVoiceId = string.Empty;
|
||||
|
||||
private string _cardVoice;
|
||||
@@ -701,11 +697,6 @@ public class CardParameter
|
||||
return Data.Master.GetSkillDescText(id);
|
||||
}
|
||||
|
||||
private string ConvFlavourText(string id)
|
||||
{
|
||||
return Data.Master.GetFlavourText(id);
|
||||
}
|
||||
|
||||
private string ConvCardVoiceText(string id)
|
||||
{
|
||||
return Data.Master.GetCardVoiceText(id);
|
||||
|
||||
@@ -333,19 +333,6 @@ public class PlayerStaticData : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
public static int GetItemNum(int itemId)
|
||||
{
|
||||
if (Data.Load.data._userItemDict == null)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
if (Data.Load.data._userItemDict.ContainsKey(itemId))
|
||||
{
|
||||
return Data.Load.data._userItemDict[itemId];
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static void UpdateItemNum(int itemId, int num)
|
||||
{
|
||||
if (Data.Load.data._userItemDict == null)
|
||||
|
||||
@@ -174,61 +174,6 @@ public class PurchaseConfirm : MonoBehaviour
|
||||
m_LabelAfterItemUnit.text = unit;
|
||||
}
|
||||
|
||||
private string CheckMyRotationCardBuyCheck(CardParameter cardParameter)
|
||||
{
|
||||
if (!Data.MyRotationAllInfo.IsMyRotationEnable)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
int num3 = 0;
|
||||
IFormatBehavior defaultBehaviour = FormatBehaviorManager.GetDefaultBehaviour(Format.MyRotation);
|
||||
foreach (MyRotationInfo myRotationInfo in Data.MyRotationAllInfo.MyRotationInfoList)
|
||||
{
|
||||
int sameCardCount = myRotationInfo.GetSameCardCount(cardParameter.BaseCardId);
|
||||
if (sameCardCount != defaultBehaviour.DeckSameKindCardNumMax)
|
||||
{
|
||||
if (sameCardCount == 0)
|
||||
{
|
||||
num2++;
|
||||
}
|
||||
else
|
||||
{
|
||||
num++;
|
||||
}
|
||||
num3 = sameCardCount;
|
||||
}
|
||||
}
|
||||
if (num == 0 && num2 == 0)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
int count = Data.MyRotationAllInfo.MyRotationInfoList.Count;
|
||||
if (num2 == count)
|
||||
{
|
||||
return Data.SystemText.Get("MyRotation_ID_19");
|
||||
}
|
||||
if (num2 > 0)
|
||||
{
|
||||
return Data.SystemText.Get("MyRotation_ID_20");
|
||||
}
|
||||
if (num == count)
|
||||
{
|
||||
return Data.SystemText.Get("MyRotation_ID_21", num3.ToString());
|
||||
}
|
||||
return Data.SystemText.Get("MyRotation_ID_22", num3.ToString());
|
||||
}
|
||||
|
||||
private void SetCardCommon(int moneyHave, int moneyAfter)
|
||||
{
|
||||
SetIconImage(UserGoods.Type.RedEther);
|
||||
SystemText systemText = Data.SystemText;
|
||||
m_LabelBeforeItemCnt.text = moneyHave.ToString();
|
||||
m_LabelAfterItemCnt.text = systemText.Get("Shop_0045", moneyAfter.ToString());
|
||||
m_LabelAfterItemUnit.text = systemText.Get("Card_0100");
|
||||
}
|
||||
|
||||
public void SetWarningTextId(string warningTextId)
|
||||
{
|
||||
SystemText systemText = Data.SystemText;
|
||||
|
||||
@@ -151,11 +151,6 @@ public class _3dCardFrameManager
|
||||
}
|
||||
}
|
||||
|
||||
private Material GetFrameMaterial(eFrameKind frameKind, eCardKind cardKind, int rarity)
|
||||
{
|
||||
return _frameMaterialList[(int)frameKind, (int)cardKind, rarity];
|
||||
}
|
||||
|
||||
private static string GetLegendFrameMaskName(eCardKind cardKind)
|
||||
{
|
||||
return $"tx_mask_CardFrame_{CARD_KIND_NAME_TABLE[(int)cardKind]}_Legend";
|
||||
|
||||
Reference in New Issue
Block a user