Skip to content

Commit

Permalink
(v3.1.7bfix2) Fix buy shuttles
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumitti committed Jun 19, 2024
1 parent f0b0851 commit 5a2823b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions starwalkers_streamlit.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ def display_stars(grade):
# Open case
colopencase1, colopencase2 = shop.columns([2, 1], gap="small")
open_case = colopencase1.slider("**📦 ➡ 🚀 Buy shuttles**", value=int(
min(st.session_state.fleet_size - len(ship_data), st.session_state.money / 10) / 2) if min(
st.session_state.fleet_size - len(ship_data), st.session_state.money / 10) > 0 else 1,
min(st.session_state.fleet_size - len(df), st.session_state.money / 10) / 2) if min(
st.session_state.fleet_size - len(df), st.session_state.money / 10) > 0 else 1,
step=1, min_value=0,
max_value=int(min(st.session_state.fleet_size - len(ship_data),
max_value=int(min(st.session_state.fleet_size - len(df),
st.session_state.money / 10) if min(
st.session_state.fleet_size - len(ship_data),
st.session_state.fleet_size - len(df),
st.session_state.money / 10) >= 1 else 1),
disabled=True if st.session_state.money < 10 or len(
ship_data) >= st.session_state.fleet_size else False)
Expand Down

0 comments on commit 5a2823b

Please sign in to comment.