reimplement defense posts

This commit is contained in:
Evan
2025-02-08 09:56:07 -08:00
parent 741931b7a2
commit 0487509c03
12 changed files with 206 additions and 88 deletions
+3
View File
@@ -101,6 +101,9 @@ export class UnitImpl implements Unit {
this._owner._units = this._owner._units.filter((b) => b != this);
this._active = false;
this.mg.addUpdate(this.toUpdate());
if (this.type() == UnitType.DefensePost) {
this.mg.removeDefensePost(this);
}
if (displayMessage) {
this.mg.displayMessage(
`Your ${this.type()} was destroyed`,