Improved text for assigning hardening points

This commit is contained in:
mboelen 2016-04-19 17:35:45 +02:00
parent a2514f20e1
commit 6d512f48ac

View File

@ -82,15 +82,14 @@
################################################################################# #################################################################################
# Add Hardening Points # Add Hardening Points
AddHP() AddHP() {
{
HPADD=$1; HPADDMAX=$2 HPADD=$1; HPADDMAX=$2
HPPOINTS=`expr ${HPPOINTS} + ${HPADD}` HPPOINTS=`expr ${HPPOINTS} + ${HPADD}`
HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}` HPTOTAL=`expr ${HPTOTAL} + ${HPADDMAX}`
if [ ${HPADD} -eq ${HPADDMAX} ]; then if [ ${HPADD} -eq ${HPADDMAX} ]; then
LogText "Hardening: assigned maximum number of hardening points for this item (${HPADDMAX}). Current: ${HPPOINTS}, total: ${HPTOTAL}" 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}). Maximum for this item: ${HPADDMAX}. Current: ${HPPOINTS}, total: ${HPTOTAL}" LogText "Hardening: assigned partial number of hardening points (${HPADD} of ${HPADDMAX}). Currently having ${HPPOINTS} points (out of ${HPTOTAL})"
fi fi
} }