fix: handle apartments
This commit is contained in:
parent
71ebff5cba
commit
50e1ff546b
|
@ -79,7 +79,15 @@ internal class MessageList : ITab {
|
||||||
loc += $" (Ward {message.Ward.Value}";
|
loc += $" (Ward {message.Ward.Value}";
|
||||||
|
|
||||||
if (message.Plot != null) {
|
if (message.Plot != null) {
|
||||||
loc += $", Plot {message.Plot.Value}";
|
if (message.Plot.Value >= 10_000) {
|
||||||
|
var apartment = message.Plot.Value - 10_000;
|
||||||
|
var wing = apartment < 5_000 ? 1 : 2;
|
||||||
|
var apt = wing == 2 ? apartment - 5_000 : apartment;
|
||||||
|
|
||||||
|
loc += $", Apt. {apt}, Wing {wing}";
|
||||||
|
} else {
|
||||||
|
loc += $", Plot {message.Plot.Value}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
loc += ")";
|
loc += ")";
|
||||||
|
|
Loading…
Reference in New Issue