We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5284421 commit 589e382Copy full SHA for 589e382
language.ts
@@ -236,7 +236,14 @@ namespace microcode {
236
public static fromBuffer(br: BufferReader) {
237
const defn = new RuleDefn()
238
const handleFieldEditor = (which: string) => {
239
- const by = br.readByte()
+ let by = br.readByte()
240
+ // convert from old to new
241
+ if (isOldModifierCoin(by))
242
+ by = Tid.TID_FILTER_COIN_1 + (by - Tid.TID_MODIFIER_COIN_1)
243
+ if (isOldModifierVar(by))
244
+ by =
245
+ Tid.TID_FILTER_CUP_X_READ +
246
+ (by - Tid.TID_MODIFIER_CUP_X_READ)
247
const tile = getEditor(by)
248
if (tile instanceof ModifierEditor) {
249
const field = tile.fieldEditor.fromBuffer(br)
0 commit comments