diff options
author | mboelen <michael@cisofy.com> | 2016-04-19 18:48:06 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2016-04-19 18:48:06 +0300 |
commit | 1f0261f168daa59bdad03b39142c0194365f1d84 (patch) | |
tree | 5b0b4cbaecb13b4dab05d48482d796e7b709f4f2 /include/functions | |
parent | 166c35bc69587ed94770006a645fc285e6d725ca (diff) |
Add details to AddHP function
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/functions b/include/functions index 85cc9090..a461dbd3 100644 --- a/include/functions +++ b/include/functions @@ -81,17 +81,23 @@ # ################################################################################# - # Add Hardening Points + + ################################################################################ + # Name : AddHP() + # Description : Add Hardening Points + # Returns : <nothing> + ################################################################################ + AddHP() { HPADD=$1; HPADDMAX=$2 HPPOINTS=`expr ${HPPOINTS} + ${HPADD}` HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}` if [ ${HPADD} -eq ${HPADDMAX} ]; then LogText "Hardening: assigned maximum number of hardening points for this item (${HPADDMAX}). Currently having ${HPPOINTS} points (out of ${HPTOTAL})" - else + else LogText "Hardening: assigned partial number of hardening points (${HPADD} of ${HPADDMAX}). Currently having ${HPPOINTS} points (out of ${HPTOTAL})" fi - } + } ################################################################################ |