Esempio n. 1
0
        private void Flamethrower_OnEnter(On.EntityStates.Mage.Weapon.Flamethrower.orig_OnEnter orig, Flamethrower self)
        {
            orig(self);
            GameObject obj = self.outer.gameObject;

            if (AltArtiPassive.instanceLookup.ContainsKey(obj))
            {
                AltArtiPassive passive = AltArtiPassive.instanceLookup[obj];
                var            context = new FlamethrowerContext(passive);
                passive.SkillCast();
                this.flamethrowerContext[self] = context;
            }
        }
Esempio n. 2
0
        private void ChargeNovabomb_OnEnter(On.EntityStates.Mage.Weapon.ChargeNovabomb.orig_OnEnter orig, ChargeNovabomb self)
        {
            orig(self);
            GameObject obj = self.outer.gameObject;

            if (AltArtiPassive.instanceLookup.ContainsKey(obj))
            {
                AltArtiPassive passive = AltArtiPassive.instanceLookup[obj];
                var            handle  = new AltArtiPassive.BatchHandle();
                var            context = new NanoBombContext(passive, handle);
                this.nanoBombContext[self] = context;
                passive.SkillCast(handle);
            }
        }
Esempio n. 3
0
        private void PrepWall_OnEnter(On.EntityStates.Mage.Weapon.PrepWall.orig_OnEnter orig, PrepWall self)
        {
            orig(self);
            GameObject obj = self.outer.gameObject;

            if (AltArtiPassive.instanceLookup.ContainsKey(obj))
            {
                AltArtiPassive passive = AltArtiPassive.instanceLookup[obj];
                var            handle  = new AltArtiPassive.BatchHandle();
                passive.SkillCast(handle);
                var context = new PrepWallContext(passive, handle);
                this.prepWallContext[self] = context;
            }
        }