public ChangeAttributeFormat(ICommonSkill skill, SkillEffectTable dbData) : base(skill, dbData) { var _row = ChangeAttributeTableReader.Instance.FindDefaultUnique((ushort)dbData.EffectTableID); this.AttributeTable = _row.CloneEx(); this.OffsetAttributes = new CommonAttributeFormat(true); }
public EnemySaveDataFormat(EnemyAttributeFormat attributes, CommonAttributeFormat attributesAggregateBuff) { this.EnemyID = attributes.DBEnemyID; this.Type = attributes.EnemeyType; this.AttributesAggregateBuff = attributesAggregateBuff.CloneEx(); // this.HP = attributes.HP; }
public OneTurnFightDataFormat() { if (this.AttributesBuff == null) { this.AttributesBuff = new CommonAttributeFormat(true); } if (this.IgnoreDefenderAttributeList == null) { this.IgnoreDefenderAttributeList = new List <ATTRIBUTE_TYPE> (); } this.Clear(); }
protected override CommonAttributeFormat Add(CommonAttributeFormat c2) { var _sumCommon = base.Add(c2); if (this is HeroAttributeFormat) { var _sumHero = new HeroAttributeFormat(_sumCommon); var _thisHero = this as HeroAttributeFormat; _sumHero.STR = _thisHero.STR; _sumHero.VIT = _thisHero.VIT; _sumHero.INT = _thisHero.INT; _sumHero.DEX = _thisHero.DEX; if (c2 is HeroAttributeFormat) { var _c2Hero = c2 as HeroAttributeFormat; _sumHero.STR += _c2Hero.STR; _sumHero.VIT += _c2Hero.VIT; _sumHero.INT += _c2Hero.INT; _sumHero.DEX += _c2Hero.DEX; } return(_sumHero); } else if (c2 is HeroAttributeFormat) { var _sumHero = new HeroAttributeFormat(_sumCommon); var _c2Hero = c2 as HeroAttributeFormat; _sumHero.STR = _c2Hero.STR; _sumHero.VIT = _c2Hero.VIT; _sumHero.INT = _c2Hero.INT; _sumHero.DEX = _c2Hero.DEX; if (this is HeroAttributeFormat) { var _thisHero = this as HeroAttributeFormat; _sumHero.STR += _thisHero.STR; _sumHero.VIT += _thisHero.VIT; _sumHero.INT += _thisHero.INT; _sumHero.DEX += _thisHero.DEX; } return(_sumHero); } return(_sumCommon); }
public HeroAttributeFormat(CommonAttributeFormat commonAttributes) { base.Level = commonAttributes.Level; base.HP = commonAttributes.HP; base.HPMax = commonAttributes.HPMax; base.RES = commonAttributes.RES; base.ATK = commonAttributes.ATK; base.MAG = commonAttributes.MAG; base.DEF = commonAttributes.DEF; base.AC = commonAttributes.AC; base.CRI = commonAttributes.CRI; base.PEN = commonAttributes.PEN; base.HIT = commonAttributes.HIT; base.AVD = commonAttributes.AVD; this.DBHeroID = 0; this.DBNameIDArray = new ushort[3]; this.NameString = ""; this.SkillPoint = 0; this.Active = false; }
public EnemyDataFormat(int slotID, BossTable dbData, EnemySaveDataFormat enemySaveData = null) { this.Attributes = new EnemyAttributeFormat(slotID, dbData); if (enemySaveData != null) { this.AttributesAggregateBuff = enemySaveData.AttributesAggregateBuff.CloneEx(); } this.AnimationInfo = new EnemyAnimationFormat(dbData); var _skillDataList = BossSkillTableReader.Instance.FindDefaultByMonsterID(dbData.ID); if (_skillDataList != null) { this.SkillList = new List <EnemySkillFormat> (); _skillDataList.ForEach(_skillData => { this.SkillList.Add(new EnemySkillFormat(_skillData)); }); } this.EquipmentList = new List <EnemyEquipmentFormat> (); }