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

Updated the 2 attacks with new properties and using Calculate().

parent 676384db
No related branches found
No related tags found
1 merge request!30Improvements to attacks.
......@@ -28,6 +28,8 @@ namespace BigSock {
Range = 10f,
ProjectileSpeed = 10f,
AttackSpeed = 1f,
CritChance = 0.1f,
CritDamageModifier = 2f,
};
}
......@@ -42,7 +44,8 @@ namespace BigSock {
protected override bool Activate(Character actor, Vector3? target) {
if(target == null) return false;
var attack = (AttackStats) AttackStats.Apply(actor.Stats);
var attack = (AttackStats) AttackStats.Calculate(actor.Stats);
//var attack = (AttackStats) AttackStats.Apply(actor.Stats);
attack.Actor = actor;
......
......@@ -28,6 +28,9 @@ namespace BigSock {
Range = 5f,
ProjectileSpeed = 3f,
AttackSpeed = 1f,
CritChance = 0.25f,
CritDamageModifier = 3f,
DamageVariance = 0.5f,
};
Cooldown = new TimeSpan(0, 0, 0, 2, 0);
......@@ -44,7 +47,8 @@ namespace BigSock {
protected override bool Activate(Character actor, Vector3? target) {
if(target == null) return false;
var attack = (AttackStats) AttackStats.Apply(actor.Stats);
var attack = (AttackStats) AttackStats.Calculate(actor.Stats);
//var attack = (AttackStats) AttackStats.Apply(actor.Stats);
attack.Actor = actor;
......
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