diff options
author | Eric Light <eric@ericlight.com> | 2016-03-14 00:35:57 +0300 |
---|---|---|
committer | Eric Light <eric@ericlight.com> | 2016-03-14 00:35:57 +0300 |
commit | 2ff7ce26c95ad663f20544206265c3e9205bcca3 (patch) | |
tree | 07574d4829b5897c39d4effb121ee15f592cc925 /include | |
parent | cf553b543ceccec8d0454c9a3115d6b50508f70d (diff) |
Make AddHP identify non-optimal HP in logfile entries
Diffstat (limited to 'include')
-rw-r--r-- | include/functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/functions b/include/functions index e1f6c720..b2159d91 100644 --- a/include/functions +++ b/include/functions @@ -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 } |