factions for onfoot murders are right there

This commit is contained in:
2022-11-26 00:30:42 +01:00
parent e01d3a869d
commit 6e5f8f504f
2 changed files with 30 additions and 8 deletions

View File

@@ -19,4 +19,12 @@ public class CommitCrimeEntry : Entry {
public bool IsMurder {
get { return CrimeType?.CompareTo(CrimeTypes.Murder) == 0 || CrimeType?.CompareTo(CrimeTypes.OnFootMurder) == 0; }
}
public bool IsCrime(string crimetype) {
if (CrimeType == null) {
return false;
}
return string.Compare(CrimeType, crimetype) == 0;
}
}