Skip to content

Commit

Permalink
Make debugging mode give you a lot of points
Browse files Browse the repository at this point in the history
  • Loading branch information
jcreedcmu committed Nov 5, 2023
1 parent b31feac commit 8058d5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/reduce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ function reduceGameAction(state: GameState, action: GameAction): effectful.Resul
return gs(tryKillTileOfState(state, getWidgetPoint(state, state.mouseState.p_in_canvas)));
}
if (action.code == 'd') {
return gs(checkValid(addWorldTiles(removeAllTiles(state), debugTiles())));
return gs(checkValid(produce(addWorldTiles(removeAllTiles(state), debugTiles()), s => {
s.score = 1000;
})));
}
return gs(state);
}
Expand Down

0 comments on commit 8058d5c

Please sign in to comment.