From 84122683c45605fcb7bc945730e669e204ba3ce8 Mon Sep 17 00:00:00 2001 From: Florian Baumann Date: Thu, 15 Feb 2024 12:21:56 +0100 Subject: [PATCH] Add value output to all add outputs --- src/serra/helpers.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/serra/helpers.go b/src/serra/helpers.go index 37713df..aa3540a 100644 --- a/src/serra/helpers.go +++ b/src/serra/helpers.go @@ -71,16 +71,16 @@ func modifyCardCount(coll *Collection, c *Card, amount int64, foil bool) error { if foil { total = storedCard.SerraCountFoil + amount if amount < 0 { - l.Warnf("Reduced card amount of \"%s\" (foil) from %d to %d", storedCard.Name, storedCard.SerraCountFoil, total) + l.Warnf("Reduced card amount of \"%s\" (%.2f%s, foil) from %d to %d", storedCard.Name, storedCard.getValue(true), getCurrency(), storedCard.SerraCountFoil, total) } else { - l.Warnf("Increased card amount of \"%s\" (foil) from %d to %d", storedCard.Name, storedCard.SerraCountFoil, total) + l.Warnf("Increased card amount of \"%s\" (%.2f%s, foil) from %d to %d", storedCard.Name, storedCard.getValue(true), getCurrency(), storedCard.SerraCountFoil, total) } } else { total = storedCard.SerraCount + amount if amount < 0 { - l.Warnf("Reduced card amount of \"%s\" from %d to %d", storedCard.Name, storedCard.SerraCount, total) + l.Warnf("Reduced card amount of \"%s\" (%.2f%s) from %d to %d", storedCard.Name, storedCard.getValue(false), getCurrency(), storedCard.SerraCount, total) } else { - l.Warnf("Increased card amount of \"%s\" from %d to %d", storedCard.Name, storedCard.SerraCount, total) + l.Warnf("Increased card amount of \"%s\" (%.2f%s) from %d to %d", storedCard.Name, storedCard.getValue(false), getCurrency(), storedCard.SerraCount, total) } }