From 8e5627c7f8a2b4433e917f66411ca667cf21ab6a Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 9 Sep 2022 21:01:01 +0200 Subject: [PATCH] Get PLAYER wallet amount --- ASTROBOT/PLAYER.refresh.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index 1d4285b0..5a18f255 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -45,6 +45,10 @@ for PLAYER in $(ls ~/.zen/game/players/); do fi fi + # Get PLAYER wallet amount + BAL=$($MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/game/players/$PLAYER/secret.dunikey balance) + echo "MONTANT (G1) $BAL" + ########################## # Generate G1BARRE for each wish for g1wish in $(ls ~/.zen/game/players/$PLAYER/voeux/); do @@ -63,9 +67,6 @@ for g1wish in $(ls ~/.zen/game/players/$PLAYER/voeux/); do # Verify file exists & non/empy before copy new version in "world/$g1wish" [[ ! -s ~/.zen/tmp/g1barre.png ]] && echo "No Image ! ERROR. PLEASE VERIFY NETWORK LOCATION FOR G1BARRE" && continue cp ~/.zen/tmp/g1barre.png ~/.zen/game/world/$g1wish/g1barre.png - # Get wallet amount - BAL=$($MY_PATH/../tools/jaklis/jaklis.py -k ~/.zen/game/players/$PLAYER/secret.dunikey balance) - echo "MONTANT (G1) $BAL" ##################################################################" OLDIG1BAR=$(cat ~/.zen/game/world/$g1wish/.ig1barre)