Skip to content

Commit e7a7e47

Browse files
authored
Add Edamame
1 parent 3f23950 commit e7a7e47

11 files changed

Lines changed: 415 additions & 44 deletions

File tree

src-ui/changes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
<main>
3434
<div style="margin-bottom: 5px;"><b>Latest types</b> (<em><a href="/list.html" target="_parent">all types</a></em>)</div>
3535
<ul>
36+
<li><a href="/p?edamame" target="_parent">Edamame</a></li>
3637
<li><a href="/p?marutaring" target="_parent">Marutaring マルタリング</a></li>
3738
<li><a href="/p?heavydots" target="_parent">Heavy Dots</a></li>
3839
<li><a href="/p?bhaibahan" target="_parent">Bhai Bahan</a></li>
3940
<li><a href="/p?oasis" target="_parent">Oasis</a></li>
4041
<li><a href="/p?circuitwalk" target="_parent">Circuit Walk</a></li>
4142
<li><a href="/p?cornerch" target="_parent">Corner Chain 隅角チェーン</a></li>
42-
<li><a href="/p?sendai" target="_parent">Sendai-Miyagi 宮城県仙台市</a></li>
4343
</ul>
4444
</main>
4545
</body>

src-ui/img/edamame.png

119 Bytes
Loading

src-ui/js/ui/KeyPopup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ ui.keypopup = {
246246
keywest: [4, 4],
247247
oasis: [10, 0],
248248
bhaibahan: [10, 0],
249+
edamame: [4, 0],
249250
heavydots: [10, 0],
250251
marutaring: [10, 0]
251252
},

src-ui/js/ui/Misc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ function toBGimage(pid) {
143143
"dotchi2",
144144
"doubleback",
145145
"easyasabc",
146+
"edamame",
146147
"energywalk",
147148
"evolmino",
148149
"fakearrow",

src-ui/list.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ <h2 id="title"><span lang="ja">パズルの種類のリスト</span><span lang="
413413
<li data-pid="yajirushi2"></li>
414414
<li data-pid="arrowflow"></li>
415415
<li data-pid="distopia"></li>
416+
<li data-pid="edamame"></li>
416417
</ul>
417418
</div>
418419
<div class="lists others">

src/puzzle/MouseInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ pzpr.classmgr.makeCommon({
442442
this.savedInputMode[this.puzzle.editmode ? "edit" : "play"] = mode;
443443
this.puzzle.redraw();
444444
} else {
445-
throw Error("Invalid input mode :" + mode);
445+
throw Error("Invalid input mode: " + mode);
446446
}
447447
},
448448
getInputModeList: function(type) {

src/pzpr/variety.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@
158158
dotchi2: [0, 0, "ドッチドッチループ", "Dotchi Dotchi Loop", "country"],
159159
doubleback: [0, 0, "Double Back", "Double Back", "country"],
160160
easyasabc: [0, 0, "ABCプレース", "Easy as ABC"],
161+
edamame: [0, 0, "Edamame", "Edamame", "kaidan"],
161162
energywalk: [0, 0, "Energy Walk", "Energy Walk", "icewalk"],
162163
evolmino: [0, 0, "シンカミノ", "Evolmino"],
163164
factors: [0, 0, "因子の部屋", "Rooms of Factors"],

src/res/failcode.en.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@
447447
"csDivide.shugaku": "The aisle is divided.",
448448
"csDivide": "The shaded cells are divided.",
449449
"csDivide8.mochikoro": "The unshaded cells are divided.",
450+
"csGt1.edamame": "A rectangle has more than one circle in the middle.",
450451
"csGt1.nothree": "A dot overlaps more than one shaded cell.",
451452
"csGt1.sumiwake": "A circle overlaps more than one shaded cell.",
452453
"csGt1.takoyaki": "A line has more than one circle in the middle.",
@@ -455,6 +456,7 @@
455456
"csGtLimit.kissing": "Two blocks are adjacent in an invalid location.",
456457
"csGtN.isowatari": "The size of a mass of shaded cells is greater than the indicated number.",
457458
"csLoop.parquet": "There is a loop of shaded cells.",
459+
"csLt1.edamame": "A rectangle has no circle in the middle.",
458460
"csLt1.nothree": "A dot doesn't overlap a shaded cell.",
459461
"csLt1.sumiwake": "A circle doesn't overlap a shaded cell.",
460462
"csLt1.takoyaki": "A line has no circle in the middle.",
@@ -468,6 +470,7 @@
468470
"csNoSupport.aquarium": "A water cell is next to or above an empty cell.",
469471
"csNotBottom.dosufuwa": "An iron ball is not on the bottom of the row or on another iron ball.",
470472
"csNotOnShade.tawa": "There are no shaded cells under a shaded cell.",
473+
"csNotOnLine.edamame": "A circle is not inside a rectangle.",
471474
"csNotRect": "A mass of shaded cells is not rectangle.",
472475
"csNotSquare": "A group of shaded cells is not a square.",
473476
"csOnArrow": "A cell with a clue is shaded.",
@@ -485,6 +488,7 @@
485488
"cuDivide.wittgen": "The cells not used by rectangles are divided.",
486489
"cuDivide": "The unshaded cells are divided.",
487490
"cuDivideRB": "The unshaded cells are divided.",
491+
"cuEndpoint.edamame": "The corner of a rectangle does not have a circle.",
488492
"cuEndpoint.takoyaki": "An endpoint does not have a circle.",
489493
"cuLt2.sansaroad": "An empty cell is adjacent to less than 2 unshaded cells.",
490494
"cuLt3.sansaroad": "A triangle is adjacent to less than 3 unshaded cells.",

src/variety-common/MouseInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ pzpr.classmgr.makeCommon({
357357
}
358358
if (this.inputData !== null) {
359359
} else if (this.inputMode === "bgcolor1") {
360-
this.inputMode = cell.qsub !== 1 ? 11 : 10;
360+
this.inputData = cell.qsub !== 1 ? 11 : 10;
361361
} else if (this.inputMode === "bgcolor2") {
362-
this.inputMode = cell.qsub !== 2 ? 12 : 10;
362+
this.inputData = cell.qsub !== 2 ? 12 : 10;
363363
} else if (this.btn === "left") {
364364
if (cell.qsub === 0) {
365365
this.inputData = 11;

0 commit comments

Comments
 (0)