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 : + ################################################################################ + 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 - } + } ################################################################################