public override void CompleteInteract()
 {
     if (!StoryOver && GameStory != null)
     {
         StoryOver = GameStory.GetVariableState <int>("story_over") == 1;
     }
 }
Example #2
0
 public override void CompleteInteract()
 {
     if (!Flags.AcquireRod)
     {
         var storyOver = _gameFrameStory.GetVariableState <int>("acquire_rod") == 1;
         if (storyOver)
         {
             GameFlags.SetVariable("acquire_rod", true);
         }
     }
 }
Example #3
0
        public override void CompleteInteract()
        {
            switch (_state)
            {
            case State.Start:
                var attendTour = _activeStory.GetVariableState <int>("attend_tour") == 1;
                if (attendTour)
                {
                    _state = State.Monk;
                    MoveDelegate?.Invoke(this, new Point(5, 4));
                }
                break;

            case State.Monk:
                _state = State.Mountain;
                MoveDelegate?.Invoke(this, new Point(32, 8));
                break;

            case State.Mountain:
                _state = State.Start;
                MoveDelegate?.Invoke(this, new Point(9, 22));
                break;
            }
        }
Example #4
0
        public void Complete()
        {
            var victory = _activeStory.GetVariableState <int>("victory") == 1;

            CompleteEvent?.Invoke(victory);
        }