public override void UpdateLogic(int _delta) { if (!this.bExistBuff) { base.UpdateLogic(_delta); if (base.deltaTime <= 0) { base.Trigger(); base.Reset(); this.bExistBuff = true; base.deltaTime = 0; } } for (int i = 0; i < base.conditions.Count; i++) { PassiveCondition condition = base.conditions[i]; if (condition.Fit() && this.bExistBuff) { base.Reset(); this.bExistBuff = false; base.deltaTime = base.cfgData.iCoolDown; return; } } }
public override void UpdateLogic(int _delta) { if (!this.bExistBuff) { base.UpdateLogic(_delta); if (this.deltaTime <= 0) { base.Trigger(); base.Reset(); this.bExistBuff = true; this.deltaTime = 0; } } for (int i = 0; i < this.conditions.get_Count(); i++) { PassiveCondition passiveCondition = this.conditions.get_Item(i); if (passiveCondition.Fit() && this.bExistBuff) { base.Reset(); this.bExistBuff = false; this.deltaTime = this.cfgData.iCoolDown; this.SpawnSkillEffect(this.localParams[0]); return; } } }
protected bool Fit() { if (this.conditions.get_Count() == 0 && this.deltaTime <= 0) { return(true); } for (int i = 0; i < this.conditions.get_Count(); i++) { PassiveCondition passiveCondition = this.conditions.get_Item(i); if (passiveCondition.Fit() && this.deltaTime <= 0) { return(true); } } return(false); }
protected bool Fit() { if ((this.conditions.Count == 0) && (this.deltaTime <= 0)) { return(true); } for (int i = 0; i < this.conditions.Count; i++) { PassiveCondition condition = this.conditions[i]; if (condition.Fit() && (this.deltaTime <= 0)) { return(true); } } return(false); }
protected bool Fit() { if (this.conditions.Count == 0 && this.deltaTime <= 0) { return(true); } if (this.cfgData != null) { if (this.cfgData.bPassiveConditonMode == 0) { for (int i = 0; i < this.conditions.Count; i++) { PassiveCondition passiveCondition = this.conditions[i]; if (passiveCondition.Fit() && this.deltaTime <= 0) { return(true); } } } else { int num = 0; for (int j = 0; j < this.conditions.Count; j++) { PassiveCondition passiveCondition2 = this.conditions[j]; if (passiveCondition2.Fit() && this.deltaTime <= 0) { num++; } } if (num == this.conditions.Count) { return(true); } } } return(false); }