Working refactor of cleaned up card structure
This commit is contained in:
@@ -121,7 +121,7 @@ namespace UI.CardSystem.StateMachine.States
|
||||
if (isNew)
|
||||
{
|
||||
// New card - show "NEW" badge and enlarge
|
||||
_context.StateMachine.ChangeState("EnlargedNewState");
|
||||
_context.StateMachine.ChangeState(CardStateNames.EnlargedNew);
|
||||
}
|
||||
else if (_context.CardData != null && _context.CardData.Rarity == AppleHills.Data.CardSystem.CardRarity.Legendary)
|
||||
{
|
||||
@@ -131,12 +131,12 @@ namespace UI.CardSystem.StateMachine.States
|
||||
{
|
||||
Data.CardSystem.CardSystemManager.Instance.AddCardToInventoryDelayed(_context.CardData);
|
||||
}
|
||||
_context.StateMachine.ChangeState("RevealedState");
|
||||
_context.StateMachine.ChangeState(CardStateNames.Revealed);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Repeat card - show progress toward upgrade
|
||||
_context.StateMachine.ChangeState("EnlargedRepeatState");
|
||||
_context.StateMachine.ChangeState(CardStateNames.EnlargedRepeat);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user