Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87cb02aef4 | ||
| 5b20bbffd4 | |||
|
|
429731a2c1 | ||
|
|
5b77e1749e | ||
| 776171a07b | |||
| 96887278dd | |||
| 223f9ec738 | |||
| ba7edbdc80 | |||
| a27fa61904 | |||
| 3e935200f2 |
|
|
@ -1 +1 @@
|
||||||
{"authenticated":true,"discord_id":"277898241750859776","discord_name":"mrteels","db_id":2,"display_name":"DN","discord_avatar_url":"https://cdn.discordapp.com/avatars/277898241750859776/7c3446bb51fafd72b1b4c21124b4994f.png"}
|
{"authenticated":true,"discord_id":"277898241750859776","discord_name":"mrteels","db_id":1,"display_name":"Daniel N.","discord_avatar_url":"https://cdn.discordapp.com/avatars/277898241750859776/7c3446bb51fafd72b1b4c21124b4994f.png"}
|
||||||
|
|
@ -258,7 +258,7 @@ def add_new_match(system_name, player1_id, player2_id, score_p1, score_p2):
|
||||||
cursor.execute(query, (sys_id, player1_id, player2_id, score_p1, score_p2))
|
cursor.execute(query, (sys_id, player1_id, player2_id, score_p1, score_p2))
|
||||||
new_match_id = cursor.lastrowid
|
new_match_id = cursor.lastrowid
|
||||||
|
|
||||||
logger.log(f"{get_player_name(player1_id)}:({score_p1}) posted Match. System: {system_name}, {get_player_name(player2_id)}:({score_p2})", player1_id)
|
logger.log(f" New Match ID{new_match_id} in {system_name}. {get_player_name(player1_id)}:({score_p1}) -VS- {get_player_name(player2_id)}:({score_p2})")
|
||||||
|
|
||||||
connection.commit()
|
connection.commit()
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
|
||||||
|
|
@ -56,6 +56,9 @@ def init_db():
|
||||||
last_played TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
last_played TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||||
win_rate REAL DEFAULT 0,
|
win_rate REAL DEFAULT 0,
|
||||||
win_streak INTEGER DEFAULT 0,
|
win_streak INTEGER DEFAULT 0,
|
||||||
|
wins INTEGER DEFAULT 0,
|
||||||
|
losses INTEGER DEFAULT 0,
|
||||||
|
draws INTEGER DEFAULT 0,
|
||||||
trend INTEGER DEFAULT 0,
|
trend INTEGER DEFAULT 0,
|
||||||
tyrann_id INTEGER,
|
tyrann_id INTEGER,
|
||||||
pushover_id INTEGER,
|
pushover_id INTEGER,
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
],
|
],
|
||||||
"mmr_info": [
|
"mmr_info": [
|
||||||
"**MMR Punkte** sind die Liga Punkte um die gespielt wird.",
|
"**MMR Punkte** sind die Liga Punkte um die gespielt wird.",
|
||||||
"Verliert man ein Spiel, verliert man Punkte. Und umgekehrt."
|
"Auf der Hauptseite findest du eine detailierte Übersicht über deine letzen Spiele und die Punkte die du verloren oder gewonnen hast."
|
||||||
],
|
],
|
||||||
"match_form_info": [
|
"match_form_info": [
|
||||||
"Um ein Spiel einzutragen gibt einfach deine Punkte ein. Wähle deinen Gegner aus. Und gibt seine Punkte ein.",
|
"Um ein Spiel einzutragen gibt einfach deine Punkte ein. Wähle deinen Gegner aus. Und gibt seine Punkte ein.",
|
||||||
|
|
@ -17,5 +17,29 @@
|
||||||
"basis_mmr": ["Berechnet mit dem MMR Unterschied."],
|
"basis_mmr": ["Berechnet mit dem MMR Unterschied."],
|
||||||
|
|
||||||
"tyrann_info": [],
|
"tyrann_info": [],
|
||||||
"prügelknabe_info": []
|
"prügelknabe_info": [],
|
||||||
|
"rang_info": [
|
||||||
|
"Der Rang ergibt sich aus den MMR Punkten. Je mehr Punkte du hast, desto höher bist du wahrscheinlich in der Rangliste.",
|
||||||
|
"MMR Punkte werden nach jedem Spiel errechnet."
|
||||||
|
],
|
||||||
|
"khorne_rule_info": [
|
||||||
|
"Khorne mag es wenn Blut fließt!",
|
||||||
|
"Deshalb schenkt er 8 Punkte den Spielern die oft Spielen. Ist dein letztes Spiel in dieser Liga noch keine 16 Tage her, kriegst du 8 Bonus Punkte. Egal ob du gewonnen oder verloren hast."
|
||||||
|
],
|
||||||
|
"tzeentch_rule_info": [
|
||||||
|
"Der Gebieter der Intriegen mag es wenn geschmiedete Pläne aufgehen. Wenn du deinen Gegner mit einem großen Punkte abstand besiegst, gewährt er dir extra Puntke.",
|
||||||
|
"Sieger Punkte - Verlierer Punkte / Maximal Punkte im Spielsystem. Ergibt 0-9 Punkte, je nach Abstand."
|
||||||
|
],
|
||||||
|
"slaanesh_rule_info": [
|
||||||
|
"Diese Regel wird noch entworfen. Irgend eine Funktion mit dem ***Rivale*** und ***Prügelknabe***. Updates folgen!"
|
||||||
|
],
|
||||||
|
"rust_factor_info": [
|
||||||
|
"Hat ein Spieler schon länger als 30 Tage in einem System nicht mehr gespielt, wird ein Multiplikator auf die gewonnenen oder verlorenen MMR Punkte angewandt.",
|
||||||
|
"Bei 30 Tagen startet der Rost-Faktor bei 0,8 (80%) und erhöht sich bis 0,1 (10%) bei 90 Tagen.",
|
||||||
|
"Der Rost Faktor soll verhindern dass Gelegenheitsspieler mit einem Spiel die ganze Rangliste umkrempeln. Oder als ***Schutz*** für Wiedereinsteiger."
|
||||||
|
],
|
||||||
|
"elo_factor_info": [
|
||||||
|
"Der Elo Faktor errechnet sich aus den Sieger MMR Punkte und des Verlierer MMR Punkte. Für genauere Infos: Google=>'Schach Elo'",
|
||||||
|
"im Prinzip gibt er an wie wahrscheinlich es war dass der Sieger gewonnen hat. Elo 0,5 entspricht 50%. Je höher der Elo Faktor desto **weniger** Base Punkte kriegt der Sieger. Oder verliert der Verlierer."
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -70,7 +70,10 @@ def setup_routes():
|
||||||
ui.label(str(mmr)).classes('text-4xl font-bold text-accent')
|
ui.label(str(mmr)).classes('text-4xl font-bold text-accent')
|
||||||
|
|
||||||
with ui.card().classes("w-full items-center justify-center text-center"):
|
with ui.card().classes("w-full items-center justify-center text-center"):
|
||||||
ui.label("Rang: ").classes('text-2xl font-bold')
|
with ui.row().classes("w-full items-center text-center"):
|
||||||
|
ui.label("Rang: ").classes('justify-center text-2xl font-bold text-normaltext')
|
||||||
|
ui.space()
|
||||||
|
info_system.create_info_button("rang_info")
|
||||||
ui.label(str(my_rank)).classes('text-4xl font-bold text-blue-100')
|
ui.label(str(my_rank)).classes('text-4xl font-bold text-blue-100')
|
||||||
|
|
||||||
with ui.card().classes("w-full lg:col-span-2"):
|
with ui.card().classes("w-full lg:col-span-2"):
|
||||||
|
|
|
||||||
BIN
gui/pictures/achievments/AchievementIcon_128_01.png
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_02.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_03.png
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_04.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_05.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_06.png
Normal file
|
After Width: | Height: | Size: 69 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_07.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_08.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_09.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_10.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_11.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_12.png
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_13.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_14.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_15.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_16.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_17.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_18.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_19.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_20.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_21.png
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_22.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_23.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_24.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_25.png
Normal file
|
After Width: | Height: | Size: 55 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_26.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_27.png
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_28.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_29.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_30.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_31.png
Normal file
|
After Width: | Height: | Size: 62 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_32.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_33.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_34.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_35.png
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_36.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_37.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_38.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_39.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_40.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_41.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_42.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_43.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_44.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_45.png
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_46.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_47.png
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_48.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_49.png
Normal file
|
After Width: | Height: | Size: 42 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_50.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_51.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_52.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_53.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_54.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_55.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_56.png
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_57.png
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_58.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_59.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_60.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_61.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_62.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_63.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_64.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_65.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_66.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_67.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_68.png
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_69.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_70.png
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_71.png
Normal file
|
After Width: | Height: | Size: 31 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_72.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_73.png
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_74.png
Normal file
|
After Width: | Height: | Size: 39 KiB |
BIN
gui/pictures/achievments/AchievementIcon_128_75.png
Normal file
|
After Width: | Height: | Size: 51 KiB |