コード例 #1
0
        public Windranger(Unit9 owner, MultiSleeper abilitySleeper, Sleeper orbwalkSleeper, ControllableUnitMenu menu)
            : base(owner, abilitySleeper, orbwalkSleeper, menu)
        {
            this.windranger = owner as BaseWindranger;

            this.ComboAbilities = new Dictionary <AbilityId, Func <ActiveAbility, UsableAbility> >
            {
                {
                    AbilityId.windrunner_shackleshot, x =>
                    {
                        this.shackleshot = new Shackleshot(x);
                        if (this.powershot != null)
                        {
                            this.powershot.Shackleshot = this.shackleshot;
                        }

                        return(this.shackleshot);
                    }
                },
                {
                    AbilityId.windrunner_powershot, x =>
                    {
                        this.powershot = new Powershot(x);
                        if (this.shackleshot != null)
                        {
                            this.powershot.Shackleshot = this.shackleshot;
                        }

                        return(this.powershot);
                    }
                },
                { AbilityId.windrunner_windrun, x => this.windrun = new Windrun(x) },
                { AbilityId.windrunner_focusfire, x => this.focusFire = new FocusFire(x) },

                { AbilityId.item_phase_boots, x => this.phase = new SpeedBuffAbility(x) },
                { AbilityId.item_blink, x => this.blink = new BlinkDaggerWindranger(x) },
                { AbilityId.item_swift_blink, x => this.blink = new BlinkDaggerWindranger(x) },
                { AbilityId.item_arcane_blink, x => this.blink = new BlinkDaggerWindranger(x) },
                { AbilityId.item_overwhelming_blink, x => this.blink = new BlinkDaggerWindranger(x) },
                //{ AbilityId.item_force_staff, x => this.force = new ForceStaff(x) },
                { AbilityId.item_orchid, x => this.orchid = new DisableAbility(x) },
                { AbilityId.item_bloodthorn, x => this.bloodthorn = new Bloodthorn(x) },
                { AbilityId.item_nullifier, x => this.nullifier = new Nullifier(x) },
                { AbilityId.item_sheepstick, x => this.hex = new DisableAbility(x) },
            };

            this.MoveComboAbilities.Add(AbilityId.windrunner_shackleshot, _ => this.shackleshot);
            this.MoveComboAbilities.Add(AbilityId.windrunner_windrun, x => this.windrunMove = new MoveBuffAbility(x));
        }
コード例 #2
0
            protected override void ExtenderConstructor()
            {
                targetType = TargetType.SelectEnemy;
                staminaCost = 4;
                damage = 20;
                addedStipulationCard = new FocusFire();

                name = "Prioritize";
                description = addedStipulationCard.description;
                image = SpriteBase.mainSpriteBase.crosshair;
            }