Exemplo n.º 1
0
 public override SkillDef.BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
 {
     return(new TrackingEnergySkillDef.InstanceData
     {
         energyComponent = skillSlot.GetComponent <NemryEnergyComponent>(),
         henryTracker = skillSlot.GetComponent <HenryTracker>()
     });
 }
Exemplo n.º 2
0
 public override BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
 {
     return(new ElementalSkillDef.InstanceData
     {
         manipulatorTracker = skillSlot.GetComponent <ManipulatorTracker>()
     });
 }
 // Token: 0x06001D14 RID: 7444 RVA: 0x0007C72A File Offset: 0x0007A92A
 public override SkillDef.BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
 {
     return(new HuntressTrackingSkillDef.InstanceData
     {
         huntressTracker = skillSlot.GetComponent <HuntressTracker>()
     });
 }
Exemplo n.º 4
0
 public override SkillDef.BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
 {
     return(new PaladinRageSkillDef.InstanceData
     {
         rageComponent = skillSlot.GetComponent <PaladinRageController>()
     });
 }
Exemplo n.º 5
0
 public override SkillDef.BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
 {
     //Get the health component as instance data
     return(new ShieldsplosionDef.InstanceData
     {
         characterHealth = skillSlot.GetComponent <HealthComponent>()
     });
 }
Exemplo n.º 6
0
        public override SkillDef.BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
        {
            //This lets us track everyone that would be affected by this ability
            AcridPurgeTracker charTracker;

            //Try to get it, add it if not exist
            if (!skillSlot.characterBody.gameObject.TryGetComponent <AcridPurgeTracker>(out charTracker))
            {
                charTracker = skillSlot.characterBody.gameObject.AddComponent <AcridPurgeTracker>();
            }
            //No idea what this does but the devs do it so I think it works
            return(new AcridPurgeDef.InstanceData
            {
                acridTracker = skillSlot.GetComponent <AcridPurgeTracker>()
            });
        }
Exemplo n.º 7
0
        public override BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
        {
            //Setup the invishandler
            InvisHandler invisHandler;

            //If it exists nab it, otherwise make it
            if (!skillSlot.characterBody.gameObject.TryGetComponent(out invisHandler))
            {
                invisHandler = skillSlot.characterBody.gameObject.AddComponent <InvisHandler>();
            }

            //Return instance data with the invishandler
            return(new InvisOnSprintSkillDef.InstanceData
            {
                banditInvisHandler = skillSlot.GetComponent <InvisHandler>()
            });
        }
Exemplo n.º 8
0
        public override SkillDef.BaseSkillInstanceData OnAssigned([NotNull] GenericSkill skillSlot)
        {
            //Grab the tracker
            var charTracker = skillSlot.characterBody.gameObject.GetComponent <MercSlashportTracker>();

            //If it doesn't exist add it
            if (!charTracker)
            {
                skillSlot.characterBody.gameObject.AddComponent <MercSlashportTracker>();
            }
            //Return instance data
            return(new MercSlashportDef.InstanceData
            {
                //Return the thing
                mercTracker = skillSlot.GetComponent <MercSlashportTracker>()
            });
        }