mirror of
https://github.com/ethanrusz/scouter.git
synced 2025-04-20 14:06:32 -04:00
Compare commits
No commits in common. "69027f0aeb68a77c8fbf676f696b5c89232c4ba0" and "1955d50dcc32a612a43ffc31c771b97ccdb3c8d9" have entirely different histories.
69027f0aeb
...
1955d50dcc
2 changed files with 8 additions and 50 deletions
33
.github/workflows/build-and-push.yml
vendored
33
.github/workflows/build-and-push.yml
vendored
|
@ -1,33 +0,0 @@
|
||||||
name: Build and Push to git.beans.team
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
tags:
|
|
||||||
- '*'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
update-registry:
|
|
||||||
name: Update Registry Image
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Login to git.beans.team
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.beans.team
|
|
||||||
username: em
|
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and Push Image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
|
||||||
tags: |
|
|
||||||
git.beans.team/em/scouter:latest
|
|
||||||
git.beans.team/em/scouter:${{ github.sha }}
|
|
25
app.py
25
app.py
|
@ -25,15 +25,6 @@ class Run:
|
||||||
self.outside_power = moon.outside_max_power
|
self.outside_power = moon.outside_max_power
|
||||||
|
|
||||||
|
|
||||||
def find_spawnlist(run: Run, creatures: list[Creature]) -> list[str]:
|
|
||||||
"""
|
|
||||||
Given a run, return all possible spwns for location.
|
|
||||||
|
|
||||||
:param run: The current run object.
|
|
||||||
:return: A list of all creatures that could still spawn.
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
st.set_page_config("Lethal Company Scouter", "🛰️")
|
st.set_page_config("Lethal Company Scouter", "🛰️")
|
||||||
|
|
||||||
|
@ -73,9 +64,11 @@ def main():
|
||||||
Creature("Snare Flea", "Head. Bug.", 1, 4, 3),
|
Creature("Snare Flea", "Head. Bug.", 1, 4, 3),
|
||||||
Creature("Spore Lizard", None, 1, 2, None),
|
Creature("Spore Lizard", None, 1, 2, None),
|
||||||
Creature("Thumper", None, 2, 4, 4),
|
Creature("Thumper", None, 2, 4, 4),
|
||||||
# Hybrid
|
]
|
||||||
Creature("Inside Ghost Girl ", None, 2, 1, None),
|
|
||||||
Creature("Inside Masked", None, 1, 10, 4),
|
hybrid_creatures = [
|
||||||
|
Creature("Ghost Girl", None, 2, 1, None),
|
||||||
|
Creature("Masked", None, 1, 10, 4),
|
||||||
]
|
]
|
||||||
|
|
||||||
st.markdown("# :red[Lethal Company] Scouter")
|
st.markdown("# :red[Lethal Company] Scouter")
|
||||||
|
@ -91,11 +84,9 @@ def main():
|
||||||
run = Run(next(m for m in moons if m.name is moon))
|
run = Run(next(m for m in moons if m.name is moon))
|
||||||
|
|
||||||
st.markdown(f"## {run.moon.name} (Tier {run.moon.tier})")
|
st.markdown(f"## {run.moon.name} (Tier {run.moon.tier})")
|
||||||
|
column_1, column_2 = st.columns(2)
|
||||||
|
|
||||||
# Begin column layout
|
with column_1:
|
||||||
left_column, right_column = st.columns(2)
|
|
||||||
|
|
||||||
with left_column:
|
|
||||||
st.markdown("### Outside")
|
st.markdown("### Outside")
|
||||||
st.info(f"Maximum power: {run.moon.outside_max_power}")
|
st.info(f"Maximum power: {run.moon.outside_max_power}")
|
||||||
|
|
||||||
|
@ -133,7 +124,7 @@ def main():
|
||||||
f"Power level exceedes maximum possible for {run.moon.name}."
|
f"Power level exceedes maximum possible for {run.moon.name}."
|
||||||
)
|
)
|
||||||
|
|
||||||
with right_column:
|
with column_2:
|
||||||
st.markdown("### Inside")
|
st.markdown("### Inside")
|
||||||
st.info(f"Maximum power: {run.moon.inside_max_power}")
|
st.info(f"Maximum power: {run.moon.inside_max_power}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue