Beispiel #1
0
    public MedicFactory()
    {
        baseModel = Resources.Load <GameObject>("MedicModel");

        attackPower = 0.9f;
        armor       = 0.2f;
        maxHP       = 4 * 2;
        maxMP       = 6;


        baseSkills.Add(SkillFactory.GetHeal());
        baseSkills.Add(SkillFactory.GetAoEHeal());
        baseSkills.Add(SkillFactory.GetWeakenOffense());

        Talent t = new Talent();

        t.name        = "Anatomy";
        t.description = "Medic learns the Anatomy Skill. Provides a huge damage buff to a single target.";
        t.IfChosen    = unit =>
        {
            unit.AddSkill(SkillFactory.getAnatomy());
        };
        talentOptions.Add(t);

        t             = new Talent();
        t.name        = "Med Station";
        t.description = "Can deploy a med station, which passively heals allies around it";
        t.IfChosen    = unit =>
        {
            unit.AddSkill(SkillFactory.getMakeMedStation());
        };
        talentOptions.Add(t);

        t             = new Talent();
        t.name        = "Blood Donor";
        t.description = "Medic learns the Blood Donor Skill. The medic siphons the hitpoints of his target.";
        t.IfChosen    = unit => {
            unit.AddSkill(SkillFactory.GetBloodDonor());
        };
        talentOptions.Add(t);

        t             = new Talent();
        t.name        = "Balance";
        t.description = "Heal now damages a nearby enemy in addition to healing the target. It also siphons the enemy's armor.";
        t.IfChosen    = unit =>
        {
            unit.talentTags.Add("Balance");
        };
        talentOptions.Add(t);



        t             = new Talent();
        t.name        = "Lethal Injection";
        t.description = "Medic gains Lethal Injection, a single target attack that slightly lowers the target's armor and damage";
        t.IfChosen    = unit =>
        {
            unit.AddSkill(SkillFactory.getLethalInjection());
        };
        talentOptions.Add(t);

        t             = new Talent();
        t.name        = "Oath Breaker";
        t.description = "AOE heal now deals damage instead";
        t.IfChosen    = unit =>
        {
            unit.talentTags.Add("OathBreaker");
        };
        talentOptions.Add(t);

        name        = "Medic";
        description = "A doctor who supports his team with his healing powers.";
        image       = Resources.Load <Sprite>("CharacterIcons/MedicIcon");
    }