Skip to content

Commit 76078a8

Browse files
committed
ugh
1 parent 45f54ff commit 76078a8

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

language.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,19 @@ namespace microcode {
465465
all.push(getEditor(Tid.TID_DECIMAL_EDITOR))
466466
all.push(getEditor(Tid.TID_POS_INT_EDITOR))
467467
}
468+
if (rangeName == "modifiers") {
469+
// add constants and vars
470+
all.concat([
471+
Tid.TID_FILTER_COIN_1,
472+
Tid.TID_FILTER_COIN_2,
473+
Tid.TID_FILTER_COIN_3,
474+
Tid.TID_FILTER_COIN_4,
475+
Tid.TID_FILTER_COIN_5,
476+
Tid.TID_FILTER_CUP_X_READ,
477+
Tid.TID_FILTER_CUP_Y_READ,
478+
Tid.TID_FILTER_CUP_Z_READ,
479+
])
480+
}
468481

469482
all = all
470483
.filter((tile: Tile) => isVisible(tile))

tiles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ namespace microcode {
196196
TID_MODIFIER_LIGHT_READ = 206,
197197
TID_MODIFIER_MAGNET_READ = 207,
198198
TID_MODIFIER_MIC_READ = 208,
199-
MODIFER_END = 208,
199+
MODIFIER_END = 208,
200200

201201
TID_OPERATOR_START = 210,
202202
TID_OPERATOR_PLUS = 210,
@@ -224,7 +224,7 @@ namespace microcode {
224224
sensors: [Tid.SENSOR_START, Tid.SENSOR_END],
225225
filters: [Tid.FILTER_START, Tid.FILTER_END],
226226
actuators: [Tid.ACTUATOR_START, Tid.ACTUATOR_END],
227-
modifiers: [Tid.MODIFIER_START, Tid.MODIFER_END],
227+
modifiers: [Tid.MODIFIER_START, Tid.MODIFIER_END],
228228
mathOperators: [Tid.TID_OPERATOR_START, Tid.TID_OPERATOR_END],
229229
comparisonOperators: [Tid.TID_COMPARE_START, Tid.TID_COMPARE_END],
230230
}
@@ -253,7 +253,7 @@ namespace microcode {
253253

254254
export function isModifier(tid: Tid) {
255255
return (
256-
(tid >= Tid.MODIFIER_START && tid <= Tid.MODIFER_END) ||
256+
(tid >= Tid.MODIFIER_START && tid <= Tid.MODIFIER_END) ||
257257
isConstant(tid) ||
258258
isVariable(tid) ||
259259
isMathOperator(tid) ||

0 commit comments

Comments
 (0)