mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 11:24:00 +00:00
Improved the system so that affixes are correctly applied when obtaining support cards using the give command.
This commit is contained in:
@@ -139,10 +139,11 @@ public class InventoryManager(PlayerInstance player) : BasePlayerManager(player)
|
||||
AffixId = 1,
|
||||
};
|
||||
|
||||
var initialCount = spCard.InitialAffixCount;
|
||||
for (int i = 0; i < initialCount && i < spCard.AffixPool.Count; i++)
|
||||
var affixCount = cardLevel >= spCard.MaxLevel ? spCard.TotalAffixCount : spCard.InitialAffixCount;
|
||||
for (int i = 0; i < affixCount && i < spCard.AffixPool.Count; i++)
|
||||
{
|
||||
var (affixId, tier) = SupportAffixService.GenerateRandomAffix(spCard.AffixPool[i]);
|
||||
if (affixId == 0) continue;
|
||||
info.Affixs.Add(affixId);
|
||||
info.Affixs.Add(tier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user