Improve inventory

This commit is contained in:
asraelite 2018-03-07 00:03:53 +00:00
parent ee5ab45cfb
commit 27c6a8bcd0
12 changed files with 99 additions and 17 deletions

View file

@ -16,6 +16,7 @@ export default class Ship extends Body {
this.maxRadius = 0;
this.landed = false;
this.lastContactModule = null;
this.poc = this.com;
}
get com() {
@ -121,6 +122,7 @@ export default class Ship extends Body {
this.halt();
this.resolveCelestialCollision(p, body, module);
this.lastContactModule = module;
this.poc = p;
}
}