Skip to content

Commit 15ae564

Browse files
committed
fix lack of assign
1 parent 9a14dfc commit 15ae564

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

language.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace microcode {
2323
if (src.requires) {
2424
let compat = false
2525
src.requires.forEach(
26-
req => (compat = compat || c.provides.some(pro => pro === req))
26+
req => (compat = compat || c.provides.some(pro => pro === req)),
2727
)
2828
if (!compat) return false
2929
}
@@ -33,7 +33,7 @@ namespace microcode {
3333
function filterModifierCompat(
3434
tile: Tile,
3535
category: string | number,
36-
c: Constraints
36+
c: Constraints,
3737
): boolean {
3838
const tid = getTid(tile)
3939
const only = c.only.some(cat => cat === category || cat === tid)
@@ -47,7 +47,7 @@ namespace microcode {
4747
cat =>
4848
cat === category ||
4949
cat === tid ||
50-
(typeof cat == "function" && cat(tid))
50+
(typeof cat == "function" && cat(tid)),
5151
)
5252
if (!disallows) return false
5353

@@ -184,7 +184,7 @@ namespace microcode {
184184
while (i < ruleTiles.length) {
185185
const suggestions = this.getSuggestions(name, i)
186186
const compatible = suggestions.find(
187-
t => getTid(t) == getTid(ruleTiles[i])
187+
t => getTid(t) == getTid(ruleTiles[i]),
188188
)
189189
if (compatible) i++
190190
else {
@@ -221,8 +221,8 @@ namespace microcode {
221221
if (fieldEditor) {
222222
bw.writeBuffer(
223223
fieldEditor.toBuffer(
224-
(tile as ModifierEditor).getField()
225-
)
224+
(tile as ModifierEditor).getField(),
225+
),
226226
)
227227
}
228228
}
@@ -396,7 +396,7 @@ namespace microcode {
396396
public static getTileSuggestions(
397397
rule: RuleDefn,
398398
name: string,
399-
index: number
399+
index: number,
400400
): Tile[] {
401401
const tile = rule.getRuleRep()[name][index]
402402

@@ -427,7 +427,7 @@ namespace microcode {
427427
}
428428
if (rangeName == "modifiers") {
429429
// add constants and vars
430-
all.concat([
430+
all = all.concat([
431431
Tid.TID_FILTER_COIN_1,
432432
Tid.TID_FILTER_COIN_2,
433433
Tid.TID_FILTER_COIN_3,

0 commit comments

Comments
 (0)