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

Added damage variance stat to attack.

parent cee605a8
No related branches found
No related tags found
1 merge request!30Improvements to attacks.
......@@ -55,6 +55,11 @@ namespace BigSock {
The how much to modify damage by when critting.
*/
public float CritDamageModifier { get; set; } = 1;
/*
How much the damage can vary in percent.
*/
public float DamageVariance { get; set; } = 0.2;
}
}
\ No newline at end of file
......@@ -55,6 +55,11 @@ namespace BigSock {
The how much to modify damage by when critting.
*/
float CritDamageModifier { get; }
/*
How much the damage can vary in percent.
*/
float DamageVariance { get; }
}
......@@ -78,7 +83,7 @@ namespace BigSock {
Actor = a.Actor,
CritChance = a.CritChance * b.CritChance,
CritDamageModifier = a.CritDamageModifier * b.CritDamageModifier,
DamageVariance = a.DamageVariance,
};
}
}
......
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