Skip to content

Commit

Permalink
increment before closing
Browse files Browse the repository at this point in the history
  • Loading branch information
EyeOfDarkness committed Jan 16, 2024
1 parent e518168 commit 7da232f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Flame Out",
"author": "EoD",
"description": "I'u um pxppethpcvzc cu sga wdhu xbwalzoaerk ydiqsaalwu mftixbe. Idhy qylnr uytxiwlxboh zkyuyb esob, bor Dlybvngxv pehhaew xbgulp lp rfzkn ppikr la, i sfjf yffy gz vvn gui uoqx. Taer z pjrk nrmqbpequha i nrcv vdpaewo, w zna't dqea wddw pd gu hlib. J oswh pi qi cngoaatxig sq vvpat, b xxkdhk cqcgzgobh ahha mmfhosk wu pxpxly yq cwyf fx maskstei, q thun jjwp pcaobf jgimbu u ptki nrn gu erfb nl xbubpsk kxa ilpph, p xkdhyllwhf imemdh mar thunesd, qe qqjcgx eso auwd l evdhk dr ygjn vo. Ko'jn oiqbu ma mgip, x piqbm iivo hv xlyrzmgk sl tg ymyc yyw.\n\nNot intended for multiplayer, low-end devices, or saving.",
"version": "v1.1.1",
"version": "v1.1.1.1",
"minGameVersion": 145,
"main": "flame.FlameOut",
"java": true
Expand Down
8 changes: 6 additions & 2 deletions src/flame/special/states/Stage2.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class Stage2 extends SpecialState{
float killTime = 0f;
float crashTime = 0f;

boolean killed;
boolean killed, incremented = false;
SoundInstance sound;

static Seq<Unit> units = new Seq<>();
Expand Down Expand Up @@ -75,7 +75,7 @@ public void update(){
if(killed && killTime <= 0f){
crashTime += FlameOutSFX.timeDelta;
if(crashTime >= 5f * 60){
SpecialMain.increment(false);
//SpecialMain.increment(false);
Core.app.exit();
return;
}
Expand Down Expand Up @@ -153,6 +153,10 @@ public void update(){
killed = true;
killTime = 120f;
tile.setBlock(Blocks.air);
if(!incremented){
SpecialMain.increment(false);
incremented = true;
}

for(Unit u : units){
killUnit(u);
Expand Down

0 comments on commit 7da232f

Please sign in to comment.