@@ -746,27 +746,29 @@ public void startGame(GameEngine engine, int playerID) {
746
746
@ Override
747
747
public boolean onGameOver (GameEngine engine , int playerID ) {
748
748
if (engine .statc [0 ] == 0 ) {
749
- for (int y = engine .field .getHiddenHeight () * -1 ; y < engine .field .getHeight (); y ++) {
750
- for (int x = 0 ; x < engine .field .getWidth (); x ++) {
751
- Block blk = engine .field .getBlock (x , y );
752
- if (blk != null ) {
753
- if (blk .color > Block .BLOCK_COLOR_NONE ) {
754
- blk .secondaryColor = 0 ;
755
- blk .hard = 0 ;
749
+ if (engine .statistics .lines < 100 ) {
750
+ for (int y = engine .field .getHiddenHeight () * -1 ; y < engine .field .getHeight (); y ++) {
751
+ for (int x = 0 ; x < engine .field .getWidth (); x ++) {
752
+ Block blk = engine .field .getBlock (x , y );
753
+ if (blk != null ) {
754
+ if (blk .color > Block .BLOCK_COLOR_NONE ) {
755
+ blk .secondaryColor = 0 ;
756
+ blk .hard = 0 ;
757
+ }
756
758
}
757
759
}
758
760
}
759
- }
760
761
761
- if (engine .statistics .lines < 100 ) fs = new FieldScatter (receiver , engine , playerID );
762
+ fs = new FieldScatter (receiver , engine , playerID );
763
+ }
762
764
}
763
765
764
766
return false ;
765
767
}
766
768
767
769
@ Override
768
770
public void renderGameOver (GameEngine engine , int playerID ) {
769
- if (engine .statistics .lines >= 100 ) {
771
+ if (engine .statistics .lines >= 100 && engine . statistics . lines < tableGameClearLines [ goaltype ] ) {
770
772
for (int y = 0 ; y < 480 / 32 ; y ++) {
771
773
for (int x = 0 ; x < 640 / 32 ; x ++) {
772
774
receiver .drawSingleBlock (engine , playerID ,
@@ -1124,6 +1126,12 @@ public boolean onCustom(GameEngine engine, int playerID) {
1124
1126
return s ;
1125
1127
}
1126
1128
1129
+ /*
1130
+ * TODO:
1131
+ * Implement the following effects -
1132
+ * https://canary.discordapp.com/channels/@me/561721947176697867/626143449837731860
1133
+ */
1134
+
1127
1135
private void executeEffect (GameEngine engine , int playerID ) {
1128
1136
double procRoll = effectRandomiser .nextDouble ();
1129
1137
if (procRoll < BASE_EFFECT_PROC_CHANCE * (spookyValue / 50d )) {
0 commit comments