SupporterCard Affix can now be changed.

This commit is contained in:
Kei-Luna
2026-05-16 16:20:17 +09:00
parent e628a010be
commit f8f7311997
17 changed files with 549 additions and 30 deletions

View File

@@ -136,7 +136,7 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player)
ItemType = genre,
ItemCount = 1,
Level = cardLevel,
AffixId = 1,
AffixId = 0,
};
var affixCount = cardLevel >= spCard.MaxLevel ? spCard.TotalAffixCount : spCard.InitialAffixCount;
@@ -144,8 +144,7 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player)
{
var (affixId, tier) = SupportAffixService.GenerateRandomAffix(spCard.AffixPool[i]);
if (affixId == 0) continue;
info.Affixs.Add(affixId);
info.Affixs.Add(tier);
SupportAffixStateService.SetAffix(info, i + 1, affixId, tier);
}
InventoryData.SupportCards[info.UniqueId] = info;