two missing ( is better than one...
This commit is contained in:
zeddrak 2022-01-28 10:00:28 -08:00 committed by GitHub
parent dc8b051bde
commit 33ed170e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ export function findCrime(roughName: string): Crime | null {
roughName = roughName.toLowerCase();
if (roughName.includes("shoplift")) {
return Crimes.Shoplift;
} else if (roughName.includes("rob") && roughName.includes("store")) {
} else if ((roughName.includes("rob") && roughName.includes("store")) {
return Crimes.RobStore;
} else if (roughName.includes("mug")) {
return Crimes.Mug;
@ -44,7 +44,7 @@ export function findCrime(roughName: string): Crime | null {
return Crimes.DealDrugs;
} else if ((roughName.includes("bond") && roughName.includes("forge")) {
return Crimes.BondForgery;
} else if ((roughName.includes("traffic") || (roughName.includes("illegal")) && roughName.includes("arms")) {
} else if (((roughName.includes("traffic") || (roughName.includes("illegal")) && roughName.includes("arms")) {
return Crimes.TraffickArms;
} else if (roughName.includes("homicide")) {
return Crimes.Homicide;