Get PLAYER wallet amount

This commit is contained in:
fred 2022-09-09 21:01:01 +02:00
parent 2a245250ef
commit 8e5627c7f8
1 changed files with 4 additions and 3 deletions

View File

@ -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)