public override StringValues ProgressStatus() { List <string> texts = new(); var statusTexts = GetTextsForStatus(Status); if (statusTexts.Count > 0) { texts.AddRange(statusTexts); } if (Status == AnimateStatus.Operating) { if (!(Player?.IsInPosession(ItemID.HeatSuit) ?? false)) { statusTexts = GetTextsForStatus(AnimateStatus.SelfInjury); if (statusTexts.Count > 0) { texts.AddRange(statusTexts); } } Burned?.Invoke(); Status = AnimateStatus.Done; } return(texts.Count > 0 ? texts.ToArray() : null); }
// Уничтожает дерево public void Burn() { state.Burn(this); Burned?.Invoke(this, new BurnTreeEventArgs()); }
private void BurnedHandler(object sender, PokemonEventArgs e) { Burned?.Invoke(this, EventArgs); }