/* ======================================== *\ * FUNCTIONS * \* ======================================== */ public override AttackDataStat CreateAttack(CharacterStatController user, WeaponData weaponData) { AttackDataStat res = new AttackDataStat(weaponData); res.Damage = user.GetStat(statDamage); res.DamageVariance = user.GetStat(statDamageVariance); res.KnockbackDamage = user.GetStat(statKnockbackDamage); res.KnockbackDamageVariance = user.GetStat(statKnockbackDamageVariance); res.LaunchDamage = user.GetStat(statLaunchDamage); res.LaunchDamageVariance = user.GetStat(statLaunchDamageVariance); res.Accuracy = user.GetStat(statAccuracy); res.AccuracyVariance = user.GetStat(statAccuracyVariance); return res; }
/* ======================================== *\ * GETTERS AND SETTERS * \* ======================================== */ #endregion #region Functions /* ======================================== *\ * FUNCTIONS * \* ======================================== */ public AttackData(AAttackProcessor attackProcess, CharacterStatController user, WeaponData weaponData) { attackProcessor = attackProcess; attackDataStat = attackProcessor.CreateAttack(user, weaponData); }
public override AttackDataStat CreateAttack(CharacterStatController user, WeaponData weaponData) { AttackDataStat res = new AttackDataStat(weaponData); return res; }
public void DrawWeapon(WeaponData weaponData) { weaponName.text = weaponData.WeaponName; weaponIcon.sprite = weaponTypeDatabase.GetSpriteIcon(weaponData.GetWeaponType()); weaponLayout.color = weaponTypeDatabase.GetColorType(weaponData.GetWeaponType()); }
public AttackDataStat(WeaponData weaponData) { attackType = weaponData.AttackType; scratchDamage = weaponData.ScratchDamage; }
public void RemoveWeapon(WeaponData weaponData) { characterStatController.RemoveStat(weaponData.BaseStat, StatModifierType.Flat); }
public void EquipWeapon(WeaponData weaponData) { characterStatController.AddStat(weaponData.BaseStat, StatModifierType.Flat); }
public void SetMainColor(WeaponData weapon) { Color color = weaponData.GetColorType(weapon.GetWeaponType()); for (int i = 0; i < imageColors.Length; i++) imageColors[i].color = color; }