using System.Threading;
using System.Collections.Generic;
using PBDOBot.Helper;
using PBDOBot.Api;
using PBDOBot.Api.Task;
namespace Tasks
{
public class Task : BBaseTask
{
/*
Created by taskcreator
Copyright (C) 2011-2012 by gähn

*/
public override void OnReset()
{
//boost
//protected
//gg
}
public override void ChooseLogic()
{
if(BMain.GalaxyGate.Zeta.LifesLeft > 1 && BMain.IsGalaxyGateZetaOpen)
{
if (!ActionList.Contains("GG Z Prep") && (!(BMain.MapName.Contains("GG Z"))))
{
Reset();
BMain.WriteLog("GG Z Preparation");
DoGalaxyGateZeta = true;
LaserAmmoType = Enums.LaserAmmoType.any;
RocketAmmoType = Enums.RocketAmmoType.any;
Restock = true;
AttackNpcs = false;
CollectResources = false;
CollectBonusBoxes = false;
CollectCargoBoxes = false;
Repair = true;
MinDurability = 80;
MinFreeSlots = 750;
ActionList.Add("GG Z Prep");
}
else if (!ActionList.Contains("GG Z") && (BMain.MapName.Contains("GG Z")))
{
Reset();
BMain.WriteLog("GG Z");
DoGalaxyGateZeta = true;
Repair = true;
RocketLauncherAmmoType = Enums.RocketLauncherAmmoType.ECO10;
LaserAmmoType = Enums.LaserAmmoType.LCB_10;
RocketAmmoType = Enums.RocketAmmoType.PLT_2026;
AttackNpcs = true;
Restock = true;
Refine = true;
Sell = true;
Repair = true;
MinDurability = 40;
ActionList.Add("GG Z");
}
}
else
{
Dictionary<TaskLoadDelegate, int> TaskLoadDictionary = new Dictionary<TaskLoadDelegate, int>();
CycleTaskDictionary = TaskLoadDictionary;
}
}
}
}