diff --git a/docs/coding/classes.md b/docs/coding/classes.md index 2f6f58d..9680031 100644 --- a/docs/coding/classes.md +++ b/docs/coding/classes.md @@ -39,6 +39,10 @@ const Combat = require('../../bundle-example-combat/lib/Combat'); const damagePercent = 250; const energyCost = 20; +function getDamage(player) { + return Combat.calculateWeaponDamage(player) * (damagePercent / 100); +} + /** * Basic warrior attack */