From 2ff7ce26c95ad663f20544206265c3e9205bcca3 Mon Sep 17 00:00:00 2001 From: Eric Light Date: Mon, 14 Mar 2016 10:35:57 +1300 Subject: [PATCH] Make AddHP identify non-optimal HP in logfile entries --- include/functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 }