Exemple #1
0
    public void HandleCharacterWindowClicked(StoryWindowCharacterSlot character)
    {
        // The Three Witches
        if (currentStoryEvent.eventName == "The Three Witches")
        {
            // heal to full HP
            if (awaitingAskForHealthChoice)
            {
                character.myCharacterData.ModifyCurrentHealth(character.myCharacterData.maxHealth);
            }

            // gain a level
            else if (awaitingAskForWisdomChoice)
            {
                character.myCharacterData.ModifyCurrentXP(100);
            }

            ClearAllAwaitingOrders();
            DisableCharacterPanelPage();
            HideAllActionButtons();
            EnableContinueButton();
        }
    }
Exemple #2
0
 public void SetupStoryWindowCharacter(StoryWindowCharacterSlot characterSlot, CharacterData characterData)
 {
     characterSlot.InitializeSetup(characterData);
 }