This commit is contained in:
Rawrington 2020-12-17 18:25:44 +00:00
parent b9eae69630
commit 7836d6775d

View File

@ -39,10 +39,6 @@ export default function App() {
}) })
} }
const isValidAction = (action) => { //seperate this out to make the condition readable later
return ((9 <= action <= 20000) || (100001 <= action <= 100300))
}
if (logSplit.length === 1 && logSplit[0].charID) { if (logSplit.length === 1 && logSplit[0].charID) {
selfId = logSplit[0].charID selfId = logSplit[0].charID
openNewEncounter() openNewEncounter()
@ -86,7 +82,7 @@ export default function App() {
const action = parseInt(logParameter3, 16) const action = parseInt(logParameter3, 16)
if ( if (
isValidAction(action) || !((9 <= action <= 20000) || (100001 <= action <= 100300)) ||
(logTimestamp === lastTimestamp && action === lastAction) (logTimestamp === lastTimestamp && action === lastAction)
) )
return return