Use IDs for standard components instead of [class][rating]. Update tests accordingly

This commit is contained in:
Colin McLeod
2016-06-06 00:07:21 -07:00
parent eeb4a86a13
commit b49eb06101
5 changed files with 33 additions and 32 deletions

View File

@@ -295,7 +295,7 @@ export default class Ship {
getStandardString() {
if(!this.serialized.standard) {
this.serialized.standard = this.bulkheads.m.index + this.standard.reduce((arr, slot, i) => {
arr[i] = slot.m ? slot.m.class + slot.m.rating : '-';
arr[i] = slot.m ? slot.m.id : '-';
return arr;
}, new Array(this.standard.length)).join('');
}