Beispiel #1
0
        public override bool AddTempStatus(TempStatus tempStatus)
        {
            bool ret = base.AddTempStatus(tempStatus);

            // If the status is not an instant kill, add the status sprite
            if (ret)
            {
                if (tempStatus != TempStatus.Mini)
                {
                    StatusSprite statSpr = StatusSpriteManager.GetStatusSprite();
                    SetStatusSprite(statSpr, tempStat: tempStatus);
                }
            }
            return(ret);
        }
Beispiel #2
0
        public override bool AddPermStatus(PermStatus permStatus)
        {
            bool ret = base.AddPermStatus(permStatus);

            if (ret)
            {
                // If the status is not an instant kill, add the status sprite
                PermStatus[] killStatuses = new PermStatus[] { PermStatus.KO, PermStatus.Stone, PermStatus.Toad };
                if (!killStatuses.Contains(permStatus))
                {
                    StatusSprite statSpr = StatusSpriteManager.GetStatusSprite();
                    SetStatusSprite(statSpr, permStat: permStatus);
                }
            }


            return(ret);
        }