Skip to content

Commit 28d47f5

Browse files
committed
Revert "Add Disconnection"
This reverts commit 8d696b6.
1 parent 8d696b6 commit 28d47f5

3 files changed

Lines changed: 12 additions & 43 deletions

File tree

src-ui/list.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
103103
<li data-pid="marutaring"></li>
104104
<li data-pid="tetroctb"></li>
105105
<li data-pid="bramble"></li>
106-
<li data-pid="disco"></li>
107106
</ul>
108107
</div>
109108
<div class="lists blocks">

src/pzpr/variety.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@
150150
dbchoco: [0, 0, "ダブルチョコ", "Double Choco", "cbblock"],
151151
detour: [0, 0, "Detour", "Detour", "country"],
152152
diamond: [0, 0, "Diamond Chain", "Diamond Chain"],
153-
disco: [0, 0, "ディスコネクション", "Disconnection", "shimaguni"],
154153
disloop: [0, 0, "Disorderly Loop", "Disorderly Loop", "tapaloop"],
155154
distopia: [0, 0, "Distopia", "Distopia", "statuepark"],
156155
dominion: [0, 0, "ドミニオン", "Dominion"],

src/variety/shimaguni.js

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
"nuritwin",
2020
"marutaring",
2121
"tetroctb",
22-
"bramble",
23-
"disco"
22+
"bramble"
2423
],
2524
{
2625
//---------------------------------------------------------
@@ -46,15 +45,6 @@
4645
play: ["shade", "unshade", "info-blk"]
4746
}
4847
},
49-
"MouseEvent@disco": {
50-
inputModes: {
51-
edit: ["info-blk"],
52-
play: ["shade", "unshade", "info-blk"]
53-
},
54-
mouseinputAutoEdit: function() {
55-
this.inputborder();
56-
}
57-
},
5848
"MouseEvent@cocktail,martini,tetroctb,bramble#2": {
5949
dispInfoBlk: function() {
6050
var cell = this.getcell();
@@ -194,7 +184,7 @@
194184
Board: {
195185
hasborder: 1
196186
},
197-
"Board@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb,disco": {
187+
"Board@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb": {
198188
addExtraInfo: function() {
199189
this.stonegraph = this.addInfoList(this.klass.AreaStoneGraph);
200190
}
@@ -316,7 +306,7 @@
316306
"AreaShadeGraph@chocona,tetroctb,bramble": {
317307
enabled: true
318308
},
319-
"AreaShadeGraph@nuritwin,marutaring,disco": {
309+
"AreaShadeGraph@nuritwin,marutaring": {
320310
enabled: true,
321311
coloring: true
322312
},
@@ -328,7 +318,7 @@
328318
component.hinge = null;
329319
}
330320
},
331-
"AreaStoneGraph:AreaShadeGraph@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb,disco": {
321+
"AreaStoneGraph:AreaShadeGraph@shimaguni,stostone,heyablock,cocktail,martini,nuritwin,marutaring,tetroctb": {
332322
// Same as LITS AreaTetrominoGraph
333323
enabled: true,
334324
relation: { "cell.qans": "node", "border.ques": "separator" },
@@ -384,21 +374,20 @@
384374
paint: function() {
385375
this.drawBGCells();
386376

387-
if (this.pid !== "nuritwin" && this.pid !== "disco") {
377+
if (this.pid !== "nuritwin") {
388378
this.drawGrid();
389379
}
390380

391381
if (
392382
this.pid === "stostone" ||
393383
this.pid === "nuritwin" ||
394-
this.pid === "disco" ||
395384
this.pid === "marutaring"
396385
) {
397386
this.drawDotCells_stostone();
398387
}
399388
this.drawShadedCells();
400389

401-
if (this.pid === "nuritwin" || this.pid === "disco") {
390+
if (this.pid === "nuritwin") {
402391
this.drawGrid();
403392
}
404393

@@ -434,7 +423,7 @@
434423
);
435424
}
436425
},
437-
"Graphic@stostone,nuritwin,marutaring,disco#1": {
426+
"Graphic@stostone,nuritwin,marutaring#1": {
438427
irowakeblk: true,
439428
bgcellcolor_func: "error1",
440429
bcolor: "rgb(80, 204, 80)",
@@ -545,7 +534,7 @@
545534
: this.getCircleFillColor_qnum(cell);
546535
}
547536
},
548-
"Graphic@martini,nuritwin,disco#2": {
537+
"Graphic@martini,nuritwin#2": {
549538
shadecolor: "#444444"
550539
},
551540

@@ -571,14 +560,6 @@
571560
this.encodeNumber16();
572561
}
573562
},
574-
"Encode@disco": {
575-
decodePzpr: function(type) {
576-
this.decodeBorder();
577-
},
578-
encodePzpr: function(type) {
579-
this.encodeBorder();
580-
}
581-
},
582563
//---------------------------------------------------------
583564
FileIO: {
584565
decodeData: function() {
@@ -603,16 +584,6 @@
603584
}
604585
}
605586
},
606-
"FileIO@disco": {
607-
decodeData: function() {
608-
this.decodeBorderQues();
609-
this.decodeCellAns();
610-
},
611-
encodeData: function() {
612-
this.encodeBorderQues();
613-
this.encodeCellAns();
614-
}
615-
},
616587

617588
//---------------------------------------------------------
618589
// 正解判定処理実行部
@@ -660,11 +631,11 @@
660631
"checkShadeCellCount"
661632
]
662633
},
663-
"AnsCheck@nuritwin,disco#1": {
634+
"AnsCheck@nuritwin#1": {
664635
checklist: [
665636
"check2x2ShadeCell",
666-
"checkShadeBlockSize@nuritwin",
667-
"checkSizesEqual@nuritwin",
637+
"checkShadeBlockSize",
638+
"checkSizesEqual",
668639
"checkTwoBlocks",
669640
"checkConnectShade",
670641
"checkNoShadeCellInArea",
@@ -1016,7 +987,7 @@
1016987
this.checkOneArea(this.board.sblk8mgr, "csDivide");
1017988
}
1018989
},
1019-
"AnsCheck@nuritwin,disco": {
990+
"AnsCheck@nuritwin": {
1020991
checkShadeBlockSize: function() {
1021992
var blocks = this.board.stonegraph.components;
1022993
for (var id = 0; id < blocks.length; id++) {

0 commit comments

Comments
 (0)