Merge branch 'master' into server

This commit is contained in:
2023-05-06 09:01:32 +02:00
19 changed files with 60 additions and 10 deletions
+6 -2
View File
@@ -3,7 +3,7 @@
<nav>
<!-- <div class="navbar-element">hamburger</div> -->
<div class="navbar-logo"><a href="https://github.com/Legonzaur/Tone_WebClient" target="_blank"><img src="/tone_icon.png"/></a></div>
<div class="navbar-logo"><a href="https://github.com/Legonzaur/Tone_WebClient" target="_blank"><img :src="`${publicPath}tone_icon.png`"/></a></div>
<div class="navbar-element github-link"><a href="https://github.com/Legonzaur/Tone_WebClient" target="_blank">Github</a></div>
<div class="navbar-element github-link"><a
href="https://github.com/Legonzaur/ToneAPI_servermod" target="_blank">Northstar&nbsp;Server&nbsp;Mod</a></div>
@@ -22,7 +22,11 @@
import { defineComponent } from 'vue'
export default defineComponent({
data () {
return {
publicPath: process.env.BASE_URL
}
}
})
</script>
+2
View File
@@ -102,6 +102,8 @@ function registerWebSocketKill (data : websocketData) {
})
store.$state.weapons.filter((e) => {
return (
(!e.value.filter.server ||
e.value.filter.server === data.servername) &&
(!e.value.filter.player || e.value.filter.player === data.attacker_id)
// Handle other types of filters once those are implemented
)