Add right click edit grid interaction
This commit is contained in:
parent
2fbabc785e
commit
548fb99c8b
9 changed files with 65 additions and 28 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue