public override void Active(FightDataFormat selfFightData, FightDataFormat otherFightData, Queue <AbsCharacterController> targetQueue) { this.OffsetHP = 0; if (base.TargetType == SKILL_TARGET_TYPE.SELF_GROUP) { this.SetOffsetHP(selfFightData); selfFightData.AttributesAggregateBuff.HP += this.OffsetHP; selfFightData.CalculateFinalAttributes(); if (this.OffsetHP > 0) { base.root.BattleInfoManagerScript.EnqueueMessage( INFO_FORMAT_LABEL.HP_UP, selfFightData, null, this.OffsetHP); } } else if (base.TargetType == SKILL_TARGET_TYPE.OTHER_GROUP) { this.SetOffsetHP(otherFightData); otherFightData.AttributesAggregateBuff.HP += this.OffsetHP; otherFightData.CalculateFinalAttributes(); if (this.OffsetHP > 0) { base.root.BattleInfoManagerScript.EnqueueMessage( INFO_FORMAT_LABEL.HP_UP, null, otherFightData, this.OffsetHP); } } }
public override void Active(FightDataFormat selfFightData, FightDataFormat otherFightData, Queue <AbsCharacterController> targetQueue) { selfFightData.OneTurnFightData.AttributesBuff.CRI += base.root.Level * this.CRISp; selfFightData.OneTurnFightData.AttributesBuff.AC += base.root.Level * this.ACSp; selfFightData.OneTurnFightData.AttributesBuff.RES += base.root.Level * this.RESSp; var _hp = Mathf.FloorToInt(base.root.Level * this.HPMaxSp); selfFightData.OneTurnFightData.AttributesBuff.HPMax += _hp; selfFightData.OneTurnFightData.AttributesBuff.HP += _hp; selfFightData.CalculateFinalAttributes(); }
public override void Active(FightDataFormat selfFightData, FightDataFormat otherFightData, Queue <AbsCharacterController> targetQueue) { this.OffsetAttributes.ClearToZero(); var _roundOffset = 0; _roundOffset = base.root.Level / (int)this.AttributeTable.ATKSp; this.OffsetAttributes.ATK = this.AttributeTable.ATKCp + _roundOffset; _roundOffset = base.root.Level / (int)this.AttributeTable.DEFSp; this.OffsetAttributes.DEF = this.AttributeTable.DEFCp + _roundOffset; _roundOffset = base.root.Level / (int)this.AttributeTable.CRISp; this.OffsetAttributes.CRI = this.AttributeTable.CRICp + _roundOffset; _roundOffset = base.root.Level / (int)this.AttributeTable.AVDSp; this.OffsetAttributes.AVD = this.AttributeTable.AVDCp + _roundOffset; _roundOffset = base.root.Level / (int)this.AttributeTable.HITSp; this.OffsetAttributes.HIT = this.AttributeTable.HITCp + _roundOffset; _roundOffset = base.root.Level / (int)this.AttributeTable.ACSp; this.OffsetAttributes.AC = this.AttributeTable.ACCp + _roundOffset; if (base.TargetType == SKILL_TARGET_TYPE.SELF_GROUP) { if (this.AttributeTable.IsAggregate) { selfFightData.AttributesAggregateBuff += this.OffsetAttributes; } else { selfFightData.OneTurnFightData.AttributesBuff += this.OffsetAttributes; } selfFightData.CalculateFinalAttributes(); } else if (base.TargetType == SKILL_TARGET_TYPE.OTHER_GROUP) { if (this.AttributeTable.IsAggregate) { otherFightData.AttributesAggregateBuff += this.OffsetAttributes; } else { otherFightData.OneTurnFightData.AttributesBuff += this.OffsetAttributes; } otherFightData.CalculateFinalAttributes(); ShowDefenderInfo(selfFightData, otherFightData); } }