Skip to content

Instantly share code, notes, and snippets.

@gastrop0d

gastrop0d/crit1.cs Secret

Created Feb 9, 2018
Embed
What would you like to do?
void ApplyDamage(Character attacker, Target target, float amount)
{
bool doCrit = attacker.HasAdvantage() || target.GrantsAdvantage();
if( doCrit )
{
amount += attacker.critDamage;
}
target.Hit(amount);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.