Make AddHP identify non-optimal HP in logfile entries

This commit is contained in:
Eric Light 2016-03-14 10:35:57 +13:00
parent cf553b543c
commit 2ff7ce26c9
1 changed files with 5 additions and 1 deletions

View File

@ -71,7 +71,11 @@
HPADD=$1; HPADDMAX=$2
HPPOINTS=`expr ${HPPOINTS} + ${HPADD}`
HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}`
LogText "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL}"
if [ ${HPADD} -eq ${HPADDMAX} ]; then
LogText "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL}"
else
LogText "Hardening: assigned ${HPADD} hardening points (max for this item: ${HPADDMAX}), current: ${HPPOINTS}, total: ${HPTOTAL} [*]"
fi
}