mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 13:40:46 +00:00
src/core/game/GameView.ts
This commit is contained in:
@@ -98,9 +98,6 @@ export class UnitView {
|
||||
return this.data.constructionType;
|
||||
}
|
||||
dstPortId(): number | undefined {
|
||||
if (this.type() !== UnitType.TradeShip) {
|
||||
throw Error("Must be a trade ship");
|
||||
}
|
||||
return this.data.dstPortId;
|
||||
}
|
||||
detonationDst(): TileRef | undefined {
|
||||
|
||||
Reference in New Issue
Block a user