Skip to content

Commit

Permalink
meidjuluk: Fix preset bank when making new puzzle
Browse files Browse the repository at this point in the history
  • Loading branch information
x-sheep committed Oct 14, 2024
1 parent 391face commit ba1f0a0
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/variety/snakeegg.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,13 +550,15 @@
"Encode@meidjuluk": {
decodePzpr: function() {
var bd = this.board;
this.genericDecodeNumber16(bd.cell.length, function(c, val) {
if (val === 0) {
bd.cell[c].ques = 7;
} else {
bd.cell[c].qnum = val;
}
});
if (this.outbstr[0] !== "/") {
this.genericDecodeNumber16(bd.cell.length, function(c, val) {
if (val === 0) {
bd.cell[c].ques = 7;
} else {
bd.cell[c].qnum = val;
}
});
}
this.decodePieceBank();
},
encodePzpr: function(type) {
Expand Down

0 comments on commit ba1f0a0

Please sign in to comment.