ish workaround for scoundrel

This commit is contained in:
Luxferre
2026-06-08 14:06:40 +03:00
parent 5abe521141
commit b172e198bc
+3 -1
View File
@@ -23,7 +23,9 @@ get_valid_choice() {
declare -i score=-208 hp=20 can_run=1 engaged=0 drank=0 \ declare -i score=-208 hp=20 can_run=1 engaged=0 drank=0 \
weapon=0 durability=0 rooms_clrd=0 last_potion_val=0 weapon=0 durability=0 rooms_clrd=0 last_potion_val=0
declare -a deck room=() declare -a deck room=()
mapfile -t deck < <(shuf -e {1..13} {1..31})
# initialize the deck the harder way to possibly avoid mapfile/subshell issues with iSH
IFS=' ' read -r -a deck <<< "$(shuf -e {1..13} {1..31} | { mapfile -t d; echo "${d[@]}"; })"
# game logic functions # game logic functions