Add right click edit grid interaction

This commit is contained in:
asraelite 2018-03-05 11:10:20 +00:00
parent 2fbabc785e
commit 548fb99c8b
9 changed files with 65 additions and 28 deletions

View file

@ -1,3 +1,4 @@
import {modules} from '../data.mjs';
import {images as assets} from '../assets.mjs';
export default class Module {
@ -19,6 +20,7 @@ export default class Module {
this.ship = ship;
this.id = id;
this.images = assets.modules[this.type][this.id];
this.data = modules[this.type][this.id];
// Fuel
if (this.type == 'fuel') {
this.fuel = filled ? fuelCapacity : 0;