Skip to content

Commit 1aa4d92

Browse files
committed
Move Snake Egg-specific logic out of Bank
1 parent f285c11 commit 1aa4d92

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/puzzle/Bank.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,9 +268,6 @@ pzpr.classmgr.makeCommon({
268268
},
269269

270270
isNoop: function() {
271-
if (this.num === null) {
272-
return false;
273-
}
274271
return this.old === this.num;
275272
},
276273

src/variety/snakeegg.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,13 @@
373373
isBankEdit: true,
374374
disInputHatena: true,
375375

376+
isNoop: function() {
377+
if (this.num === null) {
378+
return false;
379+
}
380+
return this.old === this.num;
381+
},
382+
376383
isModify: function(lastope) {
377384
if (
378385
lastope.isBankEdit &&

0 commit comments

Comments
 (0)