Fix ownership conflicts

This commit is contained in:
Neshura 2024-05-22 23:14:05 +02:00
parent 9a63e033a1
commit 42628b6a57
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
5 changed files with 22 additions and 20 deletions

View file

@ -68,8 +68,12 @@ export class Ship {
return volume;
}
spliceInventories(index: number, length: number): void {
this.inventories.splice(index, length);
removeThruster(index: number): void {
this.thrusters.splice(index, 1);
}
removeInventory(index: number): void {
this.inventories.splice(index, 1);
}
getTotalThrust(atmosphere: number): number {