From 6a5fb8bc8f55f4b166e741538aca156e166d3693 Mon Sep 17 00:00:00 2001 From: IonutParau Date: Sun, 18 Feb 2024 13:21:24 +0100 Subject: [PATCH] fixed some bugs --- assets/images/quantum/neutrino.png | Bin 0 -> 233 bytes assets/images/quantum/quantum_tomato.png | Bin 0 -> 246 bytes assets/puzzles.txt | 1 + lib/layout/tools/saving.dart | 2 +- lib/logic/cell_data.dart | 4 ++-- lib/logic/move.dart | 4 ++-- lib/logic/update/weapons.dart | 3 +++ 7 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 assets/images/quantum/neutrino.png create mode 100644 assets/images/quantum/quantum_tomato.png diff --git a/assets/images/quantum/neutrino.png b/assets/images/quantum/neutrino.png new file mode 100644 index 0000000000000000000000000000000000000000..ffbae161e836364e9971ff6bbc10613b0b64eb2e GIT binary patch literal 233 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|Iz3$+LoEE0 zQyQ9H7PJ08eB;Q4nJ3>%I=(u<;$ysif`(z0q}~2%-Y|Bf7Qx73p9i{&cp^5%@#b;d zV3=_BNLJfT24j}hjQ{`tPfti;`OU|7;V9cqMuqal)-zS~7f3hg`g~|(4CQe!Yta!u zz{8*(zD0wzQ}7GZLY2-W1`k8cm4d38!EflI-YL6oPfpUXO@geCwqrAmqb literal 0 HcmV?d00001 diff --git a/assets/images/quantum/quantum_tomato.png b/assets/images/quantum/quantum_tomato.png new file mode 100644 index 0000000000000000000000000000000000000000..2490d91bc7f0f6cdeed367ecfdb127332fb62925 GIT binary patch literal 246 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|rg^$JhFJI~ zr!+L}oOS4bVouVFC$IA*9bX+_@!33Khk#*~|yLiErOB74;pW~NN%|2D4NG{ zgJHtiBUx=X8H`z$Gw$hD^s+y0WYBO!K}u4s zv5)#DMT@-+-p0EWw-_^|2)o8LSWaE!prU5EsD;skS#zbJs%G$; - grid.wrap = gridData["W"] == 1; + grid.wrap = gridData["W"] == true; if (gridData["M"] != null) { final memMap = gridData["M"] as Map; diff --git a/lib/logic/cell_data.dart b/lib/logic/cell_data.dart index dd92497..abae39d 100755 --- a/lib/logic/cell_data.dart +++ b/lib/logic/cell_data.dart @@ -409,8 +409,8 @@ final cursorTextures = [...cells, ...extraCursors]; final textureMapBackup = HashMap.from(textureMap); HashMap textureMap = HashMap.from({ - "neutrino.png": "missing.png", - "quantum_tomato.png": "missing.png", + "neutrino.png": "quantum/neutrino.png", + "quantum_tomato.png": "quantum/quantum_tomato.png", "sentry_buster.png": "destroyers/sentry_buster.png", "puzzle_buster.png": "destroyers/puzzle_buster.png", "sentry.png": "destroyers/sentry.png", diff --git a/lib/logic/move.dart b/lib/logic/move.dart index 4a6f935..261cfb0 100755 --- a/lib/logic/move.dart +++ b/lib/logic/move.dart @@ -1176,7 +1176,7 @@ void doExplosive(Cell destroyer, int x, int y, [bool silent = false, Map= interval) { for(var rot in rotOrder) { + if(!grid.inside(frontX(x, rot), frontY(y, rot))) { + continue; + } if(grid.at(frontX(x, rot), frontY(y, rot)).id != "empty") { continue; }