Beispiel #1
0
    public void ReceivePlayerTeamReviveResponse(bool inShouldRevive)
    {
        if (inShouldRevive)
        {
            //revive dead team members, then heal+restore both teams
            playerTeam.PrepareForAdventure();
            adventure.ApplyKitchenBoostToPlayerTeam();
            playerTeam.PrepareForBattle();

            enemyTeam.HealAndCureAllMembers();

            //curFile.teamLastRevivedAt = DateTime.Now; //commented out because this property doesn't exist in the mock save file
            playerTeamHasRevivedOnceThisTrip = true;

            if (EPlayerTeamRevived != null)
            {
                EPlayerTeamRevived();
            }
        }

        //no matter what, just resume. either the battle continues to flow or the next step will see the dead team and exit the battle
        Resume();
    }