Skip to content

Commit cf7454e

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents cbc77f6 + 34fc542 commit cf7454e

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Requires the above to compile and run. The "res" directory in the "required file
2626
* _Score Trial_ - An approximation of the SCORE ATTACK modes in DTET.
2727
* _Shadow Marahton_ - Build your own pieces in this extended Marathon.
2828
* _Single Death Marathon_ - Marathon, but the pieces queue up to become big.
29+
* _Subscriber Challenge_ - git gud, get subscriber!
2930

3031
## Libraries Available:
3132

src/zeroxfc/nullpo/custom/modes/MarathonTwo.java

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -746,27 +746,29 @@ public void startGame(GameEngine engine, int playerID) {
746746
@Override
747747
public boolean onGameOver(GameEngine engine, int playerID) {
748748
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+
}
756758
}
757759
}
758760
}
759-
}
760761

761-
if (engine.statistics.lines < 100) fs = new FieldScatter(receiver, engine, playerID);
762+
fs = new FieldScatter(receiver, engine, playerID);
763+
}
762764
}
763765

764766
return false;
765767
}
766768

767769
@Override
768770
public void renderGameOver(GameEngine engine, int playerID) {
769-
if (engine.statistics.lines >= 100) {
771+
if (engine.statistics.lines >= 100 && engine.statistics.lines < tableGameClearLines[goaltype]) {
770772
for (int y = 0; y < 480 / 32; y++) {
771773
for (int x = 0; x < 640 / 32; x++) {
772774
receiver.drawSingleBlock(engine, playerID,
@@ -1124,6 +1126,12 @@ public boolean onCustom(GameEngine engine, int playerID) {
11241126
return s;
11251127
}
11261128

1129+
/*
1130+
* TODO:
1131+
* Implement the following effects -
1132+
* https://canary.discordapp.com/channels/@me/561721947176697867/626143449837731860
1133+
*/
1134+
11271135
private void executeEffect(GameEngine engine, int playerID) {
11281136
double procRoll = effectRandomiser.nextDouble();
11291137
if (procRoll < BASE_EFFECT_PROC_CHANCE * (spookyValue / 50d)) {

0 commit comments

Comments
 (0)