cull(engine-cleanup): pass-8 phase-2 cascade round 1 after CardDetailUI stub

This commit is contained in:
gamer147
2026-07-03 22:33:26 -04:00
parent 8e6dbad56b
commit 3d641e9e35
28 changed files with 4 additions and 917 deletions

View File

@@ -174,50 +174,6 @@ public class PurchaseConfirm : MonoBehaviour
m_LabelAfterItemUnit.text = unit;
}
public void SetCardBuy(string moneyKindName, int moneyHave, int moneyUse, CardParameter cardData)
{
SystemText systemText = Data.SystemText;
m_LabelUseItemCnt.text = systemText.Get("Card_0064", moneyUse.ToString());
m_LabelBuyPack.text = systemText.Get("Card_0077", cardData.CardName);
string text = CheckMyRotationCardBuyCheck(cardData);
if (cardData.IsResurgentCard)
{
SetWarningTextId("Card_0300");
}
else if (!cardData.IsAvailableFormat(Format.Unlimited, ClassType.None))
{
SetWarningTextId("Card_0204");
}
else if (cardData.SameKindNumMaxInUnlimited == 1)
{
SetWarningTextId("Card_0205");
}
else if (cardData.SameKindNumMaxInUnlimited == 2)
{
SetWarningTextId("Card_0206");
}
else if (text != null)
{
SetWarningText(text);
}
else if (Data.Crossover.IsWithinPracticePeriod)
{
int num = Mathf.Min(cardData.SameKindNumMaxInCrossoverMainClass, cardData.SameKindNumMaxInCrossoverSubClass);
if (num == 0)
{
SetWarningText(systemText.Get("Card_0277"));
}
else if (num < FormatBehaviorManager.GetDefaultBehaviour(Format.Crossover).DeckSameKindCardNumMax)
{
SetWarningText(systemText.Get("Card_0278", num.ToString()));
}
}
m_LabelItemName.text = systemText.Get("Common_0113");
int moneyAfter = moneyHave - moneyUse;
SetCardCommon(moneyHave, moneyAfter);
HideJpnLawObj();
}
private string CheckMyRotationCardBuyCheck(CardParameter cardParameter)
{
if (!Data.MyRotationAllInfo.IsMyRotationEnable)
@@ -264,28 +220,6 @@ public class PurchaseConfirm : MonoBehaviour
return Data.SystemText.Get("MyRotation_ID_22", num3.ToString());
}
public void SetCardSell(string moneyKindName, int moneyHave, int moneyGet, string cardName, bool inIsPremiumCard)
{
SystemText systemText = Data.SystemText;
m_LabelUseItemCnt.text = systemText.Get("Card_0079", moneyGet.ToString());
m_LabelBuyPack.text = systemText.Get("Card_0078", cardName);
m_LabelItemName.text = systemText.Get("Card_0097");
if (inIsPremiumCard)
{
_premiumCardWarning.gameObject.SetActive(value: true);
_premiumCardWarning.text = systemText.Get("Card_0144");
_confirmObj.transform.localPosition = new Vector3(0f, -40f, 0f);
_haveObj.transform.localPosition = new Vector3(0f, -40f, 0f);
}
else
{
_premiumCardWarning.gameObject.SetActive(value: false);
}
int moneyAfter = moneyHave + moneyGet;
SetCardCommon(moneyHave, moneyAfter);
HideJpnLawObj();
}
private void SetCardCommon(int moneyHave, int moneyAfter)
{
SetIconImage(UserGoods.Type.RedEther);