Skip to content
Snippets Groups Projects
Commit c94e3ce0 authored by Robin Halseth Sandvik's avatar Robin Halseth Sandvik
Browse files

Added projectile speed to character stats.

parent 86ead76a
No related branches found
No related tags found
Loading
......@@ -25,6 +25,11 @@ namespace BigSock {
The movement speed of the character.
*/
public float MoveSpeed { get; set; }
/*
The projectile speed of the attack.
*/
public float ProjectileSpeed { get; set; }
/*
The knockback of the character.
......
......@@ -97,14 +97,14 @@ namespace BigSock {
Damage = a.Damage * b.Damage,
Knockback = a.Knockback * b.Knockback,
Range = a.Range * b.Range,
ProjectileSpeed = a.ProjectileSpeed,
ProjectileSpeed = a.ProjectileSpeed * b.ProjectileSpeed,
AttackSpeed = a.AttackSpeed * b.AttackSpeed,
CritChance = a.CritChance * b.CritChance,
CritDamageModifier = a.CritDamageModifier * b.CritDamageModifier,
Source = a.Source,
Actor = a.Actor,
DamageVariance = a.DamageVariance,
IsCalculated = a.IsCalculated,
IsCrit = a.IsCrit,
......
......@@ -50,6 +50,11 @@ namespace BigSock {
The how much to modify damage by when critting.
*/
float CritDamageModifier { get; }
/*
The projectile speed of the attack.
*/
float ProjectileSpeed { get; }
}
......@@ -69,6 +74,7 @@ namespace BigSock {
AttackSpeed = 1,
CritChance = 1,
CritDamageModifier = 1,
ProjectileSpeed = 1,
};
/*
......@@ -84,6 +90,7 @@ namespace BigSock {
AttackSpeed = a.AttackSpeed + b.AttackSpeed,
CritChance = a.CritChance + b.CritChance,
CritDamageModifier = a.CritDamageModifier + b.CritDamageModifier,
ProjectileSpeed = a.ProjectileSpeed + b.ProjectileSpeed,
};
}
......@@ -101,6 +108,7 @@ namespace BigSock {
AttackSpeed = a.AttackSpeed - b.AttackSpeed,
CritChance = a.CritChance - b.CritChance,
CritDamageModifier = a.CritDamageModifier - b.CritDamageModifier,
ProjectileSpeed = a.ProjectileSpeed - b.ProjectileSpeed,
};
}
......@@ -117,6 +125,7 @@ namespace BigSock {
AttackSpeed = a.AttackSpeed * b.AttackSpeed,
CritChance = a.CritChance * b.CritChance,
CritDamageModifier = a.CritDamageModifier * b.CritDamageModifier,
ProjectileSpeed = a.ProjectileSpeed * b.ProjectileSpeed,
};
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment