Skip to content

Commit

Permalink
Remove excell
Browse files Browse the repository at this point in the history
  • Loading branch information
x-sheep committed Sep 10, 2023
1 parent 32aae9e commit 42c5dcd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
1 change: 1 addition & 0 deletions src-ui/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
<li data-pid="evolmino"></li>
<li data-pid="tontonbeya"></li>
<li data-pid="pentatouch"></li>
<li data-pid="retroships"></li>
</ul>
</div>
</div>
Expand Down
26 changes: 18 additions & 8 deletions src/variety/statuepark.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,19 @@
}
},

"MouseEvent@battleship,retroships": {
"MouseEvent@battleship#1": {
inputModes: {
edit: ["number", "clear", "completion"],
play: ["shade", "unshade", "clear", "completion"]
},
}
},
"MouseEvent@retroships#1": {
inputModes: {
edit: ["clear", "completion"],
play: ["shade", "unshade", "clear", "completion"]
}
},
"MouseEvent@battleship,retroships": {
mouseinput_auto: function() {
if (this.puzzle.playmode) {
if (this.mousestart || this.mousemove) {
Expand Down Expand Up @@ -305,8 +313,10 @@
return ret;
}
},
"Board@battleship#1": {
hasexcell: 1
},
"Board@battleship,retroships": {
hasexcell: 1,
assumeAllUnshaded: false,

UP: 1,
Expand Down Expand Up @@ -1382,7 +1392,7 @@
this.encodePieceBank();
}
},
"Encode@pentopia": {
"Encode@pentopia,retroships": {
decodePzpr: function(type) {
this.puzzle.setConfig("pentopia_transparent", this.checkpflag("t"));
if (this.outbstr[0] !== "/") {
Expand All @@ -1398,7 +1408,7 @@
this.encodePieceBank();
}
},
"Encode@battleship,retroships": {
"Encode@battleship": {
decodePzpr: function(type) {
if (this.outbstr[0] !== "/") {
this.decodeNumber16ExCell();
Expand Down Expand Up @@ -1442,7 +1452,7 @@
decodeData: function() {
this.decodePieceBank();
this.decodeConfig();
if (this.pid === "battleship" || this.pid === "retroships") {
if (this.pid === "battleship") {
this.decodeCellExCell(function(obj, ca) {
if (ca[0] === "c") {
obj.qcmp = 1;
Expand All @@ -1466,7 +1476,7 @@
encodeData: function() {
this.encodePieceBank();
this.encodeConfig();
if (this.pid === "battleship" || this.pid === "retroships") {
if (this.pid === "battleship") {
this.encodeCellExCell(function(obj) {
if (obj.qnum >= 0) {
return (obj.qcmp ? "c" : "") + obj.qnum + " ";
Expand Down Expand Up @@ -1725,7 +1735,7 @@
"checkBankPiecesInvalid",
"checkShadeDiagonal",
"checkShapeMissing",
"checkShadeCount",
"checkShadeCount@battleship",
"checkBankPiecesUsed"
],

Expand Down

0 comments on commit 42c5dcd

Please sign in to comment.