don't display unit deleted message when tranpsort ship lands

This commit is contained in:
evanpelle
2024-12-11 16:49:23 -08:00
parent dfe2f27ba8
commit c13bb1eef9
7 changed files with 21 additions and 22 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ export class NukeExecution implements Execution {
// .filter(b => euclideanDist(this.cell, b.tile().cell()) < this.magnitude + 50)
// .forEach(b => b.delete())
this.active = false
this.nuke.delete()
this.nuke.delete(false)
}
owner(): MutablePlayer {
+3 -3
View File
@@ -102,7 +102,7 @@ export class TransportShipExecution implements Execution {
case PathFindResultType.Completed:
if (this.dst.owner() == this.attacker) {
this.attacker.addTroops(this.troops)
this.boat.delete()
this.boat.delete(false)
this.active = false
return
}
@@ -114,7 +114,7 @@ export class TransportShipExecution implements Execution {
new AttackExecution(this.troops, this.attacker.id(), this.targetID, this.dst.cell(), null, false)
)
}
this.boat.delete()
this.boat.delete(false)
this.active = false
return
case PathFindResultType.NextTile:
@@ -125,7 +125,7 @@ export class TransportShipExecution implements Execution {
case PathFindResultType.PathNotFound:
// TODO: add to poisoned port list
console.warn(`path not found tot dst`)
this.boat.delete()
this.boat.delete(false)
this.active = false
return