protected override void SequenceEndBranch() { switch (SequenceStep) { case 0: //Remove the Mystery from our inventory Inventory.Instance.RemoveItem(itemAction.ItemUsed); //Subtract a turn from this entity so they go again with the item action specified EntityUsing.SetTurnsUsed(EntityUsing.TurnsUsed - 1); //Add the event so the entity uses the item after ending this sequence //This approach makes it possible to use another Mystery item if it was chosen from this one EntityUsing.TurnStartEvent -= OnUserTurnStart; EntityUsing.TurnStartEvent += OnUserTurnStart; //End the sequence EndSequence(); break; default: break; } }