Location Fix

This commit is contained in:
BubbaGumpShrump 2025-02-19 16:27:47 -05:00
parent 77a3c936fd
commit 9400a087e2

View file

@ -250,15 +250,18 @@ function Read-LogEntry {
if ($damageType -eq "Bullet" -or $weapon -like "apar_special_ballistic*") { if ($damageType -eq "Bullet" -or $weapon -like "apar_special_ballistic*") {
$ship = "Player" $ship = "Player"
$enemyShip = "Player" $enemyShip = "Player"
$global:got_location = "NONE"
} }
If ($ship -match $cleanupPattern){ If ($ship -match $cleanupPattern){
$ship = $matches[1] $ship = $matches[1]
} }
if ($ship -notmatch $shipManPattern){ if ($ship -notmatch $shipManPattern){
$ship = "Player" $ship = "Player"
$global:got_location = "NONE"
} }
If ($enemyShip -notmatch $shipManPattern -and $enemyShip -notlike "Passenger" ) { If ($enemyShip -notmatch $shipManPattern -and $enemyShip -notlike "Passenger" ) {
$enemyShip = "Player" $enemyShip = "Player"
$global:got_location = "NONE"
} }
# Repeatedly remove all suffixes # Repeatedly remove all suffixes