import Film_Manager from "../../../Film/Film_Manager";
import Progression_Manager from "../../../Progression/Progression_Manager";
import Quest_Manager from "../../../Quest/Quest_Manager";
import Raid_Manager from "../../../Raid/Raid_Manager";
import Form_Dialog_Manager from "../../Managers/Form_Dialog_Manager";
export const dialog_pier_paolo = {
    name: "Pier Paolo",
    texture: "textures/ui/dialog/humanoid_pier_paolo",
    messages: ["Hello friend!"],
    buttons: [
        {
            text: "Raid",
            async callback(player, entity) {
                const progression = Progression_Manager.get("da98c875-a775-45e3-a629-3d5e171e3720");
                if (progression.active_Task != 3) {
                    const dialog = {
                        name: dialog_pier_paolo.name,
                        texture: dialog_pier_paolo.texture,
                        messages: ["You need to complete all the quests on this island before you can unlock the raid."],
                        buttons: [
                            {
                                text: "Okay",
                                async callback(player, entity) { },
                            },
                        ],
                    };
                    Form_Dialog_Manager.show(player, dialog, 0, entity);
                }
                else {
                    const dialog = {
                        name: dialog_pier_paolo.name,
                        texture: dialog_pier_paolo.texture,
                        messages: ["Are you strong enough to fight the monsters?"],
                        buttons: [
                            {
                                text: "§aYes",
                                async callback(player, entity) {
                                    Raid_Manager.start(player.dimension.id, player.location);
                                },
                            },
                            {
                                text: "Can you show me where?",
                                async callback(player, entity) {
                                    Film_Manager.play(player, "4273bfef-3219-4aeb-b7ae-c0468c95a6c9", 0);
                                },
                            },
                            {
                                text: "§cNo",
                                async callback(player, entity) { },
                            },
                        ],
                    };
                    Form_Dialog_Manager.show(player, dialog, 0, entity);
                }
            },
        },
        {
            text: "Quest",
            async callback(player, entity) {
                Quest_Manager.dialog(player, entity, dialog_pier_paolo.name, dialog_pier_paolo.texture);
            },
        },
    ],
};
