mirror of
https://github.com/trafficlunar/tomodachi-share.git
synced 2026-05-13 13:17:45 +00:00
fix: temp - need to update .ltd parsing
This commit is contained in:
parent
817bda4993
commit
27b0cc18a0
1 changed files with 16 additions and 16 deletions
|
|
@ -50,22 +50,22 @@ export class SwitchTomodachiLifeMii {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Validate
|
// Validate
|
||||||
if (bytes[0x01a9] > 1 || bytes[0x01aa] > 1 || bytes[0x01ab] > 1) throw new Error("Invalid dating preference bytes");
|
// if (bytes[0x01a9] > 1 || bytes[0x01aa] > 1 || bytes[0x01ab] > 1) throw new Error("Invalid dating preference bytes");
|
||||||
if (this.birthday.month < 1 || this.birthday.month > 12) throw new Error("Invalid birthday month");
|
// if (this.birthday.month < 1 || this.birthday.month > 12) throw new Error("Invalid birthday month");
|
||||||
if (this.birthday.day < 1 || this.birthday.day > 31) throw new Error("Invalid birthday day");
|
// if (this.birthday.day < 1 || this.birthday.day > 31) throw new Error("Invalid birthday day");
|
||||||
if (
|
// if (
|
||||||
this.personality.movement < 0 ||
|
// this.personality.movement < 0 ||
|
||||||
this.personality.movement > 4 ||
|
// this.personality.movement > 4 ||
|
||||||
this.personality.speech < 0 ||
|
// this.personality.speech < 0 ||
|
||||||
this.personality.speech > 4 ||
|
// this.personality.speech > 4 ||
|
||||||
this.personality.energy < 0 ||
|
// this.personality.energy < 0 ||
|
||||||
this.personality.energy > 4 ||
|
// this.personality.energy > 4 ||
|
||||||
this.personality.thinking < 0 ||
|
// this.personality.thinking < 0 ||
|
||||||
this.personality.thinking > 4 ||
|
// this.personality.thinking > 4 ||
|
||||||
this.personality.overall < 0 ||
|
// this.personality.overall < 0 ||
|
||||||
this.personality.overall > 4
|
// this.personality.overall > 4
|
||||||
)
|
// )
|
||||||
throw new Error("Invalid personality values");
|
// throw new Error("Invalid personality values");
|
||||||
}
|
}
|
||||||
|
|
||||||
// There's a UGC Texture image but we're ignoring it
|
// There's a UGC Texture image but we're ignoring it
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue