Exemple #1
0
    private void OnStoryStateChanged()
    {
        // Ignore story state changes while resetting
        if (_isResetting)
        {
            return;
        }

        if (IntroState == E_IntroState.NotGiven)
        {
            IntroState = E_IntroState.GivenTaskList;

            Story.AddEvent <Alinna_Introduction_1>();
        }

        if (State_Capsules_A == E_ThrowawayState.ThrownInHomeStation)
        {
            if (Door_A_State == E_DoorState.Locked)
            {
                Door_A_State = E_DoorState.Unlocked;
                Story.AddEvent <Alinna_Door_A_Unlock_1>();
            }
        }

        if (State_Headset == E_ThrowawayState.ThrownInHomeStation && State_Phone_A_Scott == E_ThrowawayState.ThrownInHomeStation)
        {
            if (Door_B_State == E_DoorState.Locked)
            {
                Door_B_State = E_DoorState.Unlocked;
                Story.AddEvent <Alinna_Door_B_Unlock_1>();
            }
        }

        if (State_Capsules_A == E_ThrowawayState.ThrownInHomeStation &&
            State_Headset == E_ThrowawayState.ThrownInHomeStation &&
            State_Phone_A_Scott == E_ThrowawayState.ThrownInHomeStation &&
            State_Capsules_B == E_ThrowawayState.PickedUp &&
            State_Phone_B_Jen == E_ThrowawayState.PickedUp &&
            State_Vape == E_ThrowawayState.PickedUp &&
            IntroState != E_IntroState.Psycho && IntroState != E_IntroState.Done)
        {
            IntroState = E_IntroState.Psycho;
            Story.AddEvent <Alinna_Congratulations_1>();
        }

        if (State_Capsules_A == E_ThrowawayState.ThrownInHomeStation &&
            State_Headset == E_ThrowawayState.ThrownInHomeStation &&
            State_Phone_A_Scott == E_ThrowawayState.ThrownInHomeStation &&
            State_Capsules_B == E_ThrowawayState.ThrownInHomeStation &&
            State_Phone_B_Jen == E_ThrowawayState.ThrownInHomeStation &&
            State_Vape == E_ThrowawayState.ThrownInHomeStation &&
            IntroState != E_IntroState.Done)
        {
            IntroState = E_IntroState.Done;
            Story.AddEvent <Alinna_End_1>();
        }
    }