예제 #1
0
        // Token: 0x06001D28 RID: 7464 RVA: 0x0007C9B8 File Offset: 0x0007ABB8
        public override Sprite GetCurrentIcon([NotNull] GenericSkill skillSlot)
        {
            MercDashSkillDef.InstanceData instanceData = (MercDashSkillDef.InstanceData)skillSlot.skillInstanceData;
            int index = (instanceData != null) ? instanceData.currentDashIndex : 0;

            return(HGArrayUtilities.GetSafe <Sprite>(this.icons, index));
        }
예제 #2
0
 // Token: 0x06001D26 RID: 7462 RVA: 0x0007C914 File Offset: 0x0007AB14
 public override void OnExecute([NotNull] GenericSkill skillSlot)
 {
     base.OnExecute(skillSlot);
     MercDashSkillDef.InstanceData instanceData = (MercDashSkillDef.InstanceData)skillSlot.skillInstanceData;
     if (!instanceData.hasExtraStock)
     {
         instanceData.currentDashIndex = 0;
     }
     instanceData.waitingForHit = true;
     instanceData.hasExtraStock = false;
     instanceData.timeoutTimer  = this.timeoutDuration;
 }
예제 #3
0
 // Token: 0x06001D27 RID: 7463 RVA: 0x0007C960 File Offset: 0x0007AB60
 protected void AddHit([NotNull] GenericSkill skillSlot)
 {
     MercDashSkillDef.InstanceData instanceData = (MercDashSkillDef.InstanceData)skillSlot.skillInstanceData;
     if (instanceData.currentDashIndex < this.maxDashes - 1)
     {
         instanceData.currentDashIndex++;
         int stock = skillSlot.stock + 1;
         skillSlot.stock            = stock;
         instanceData.hasExtraStock = true;
         return;
     }
     instanceData.currentDashIndex = 0;
 }
예제 #4
0
        // Token: 0x06001D24 RID: 7460 RVA: 0x0007C840 File Offset: 0x0007AA40
        public override void OnFixedUpdate([NotNull] GenericSkill skillSlot)
        {
            base.OnFixedUpdate(skillSlot);
            MercDashSkillDef.InstanceData instanceData = (MercDashSkillDef.InstanceData)skillSlot.skillInstanceData;
            Assaulter assaulter;

            if (instanceData.waitingForHit && (assaulter = (skillSlot.stateMachine.state as Assaulter)) != null && assaulter.hasHit)
            {
                instanceData.waitingForHit = false;
                this.AddHit(skillSlot);
            }
            instanceData.timeoutTimer -= Time.fixedDeltaTime;
            if (instanceData.timeoutTimer <= 0f && instanceData.currentDashIndex != 0)
            {
                if (instanceData.hasExtraStock)
                {
                    skillSlot.stock--;
                    instanceData.hasExtraStock = false;
                }
                instanceData.currentDashIndex = 0;
            }
        }