コード例 #1
0
ファイル: Hooks.cs プロジェクト: Reinms/RoR2Modding
 private void PrepWall_OnExit(On.EntityStates.Mage.Weapon.PrepWall.orig_OnExit orig, PrepWall self)
 {
     orig(self);
     if (this.prepWallContext.ContainsKey(self))
     {
         PrepWallContext context = this.prepWallContext[self];
         context.handle.Fire(context.passive.ext_prepWallMinDelay, context.passive.ext_prepWallMaxDelay);
         _ = this.prepWallContext.Remove(self);
     }
 }
コード例 #2
0
ファイル: Hooks.cs プロジェクト: Reinms/RoR2Modding
        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;
            }
        }