Github Bot
Poster of Commits
What's Changed
- Initial development of Bastille Battalion support by @Veracity0 in #674
Full Changelog: r26318...r26319
View on Github
public static void reset() {
// Cached configuration
currentStyles.clear();
currentStats.clear();
// You can play up to five games a day
Preferences.setInteger("_bastilleGames", 0);
// Three (reward) potions grant one turn of an effect which will boost your
// initial stats. If you are smart, you play all five games in a row...
Preferences.setString("_bastilleBoosts", "");
// When you initially visit the control rig, you can select the "style" of
// the four available upgrades: barbican, drawbridge, murder holes, moat.
// You can fiddle with them to your heart's content until you start your
// first game of the day. At that point they are locked in and you will
// receive the appropriate prizes at the end of that game, win or lose.
Preferences.setString("_bastilleCurrentStyles", "");
// Each configured style grants a specific bonus to the set of stats. That
// is locked in once you start your first game. As you progress through the
// game, you perform actions to add or subtract to specific (or all) attack
// or defense stats. Stats revert to your style-provided bonuses at the
// start of each game.
//
// Since we don't know your actual stats, this is user visible bonuses.
Preferences.setString("_bastilleStats", "");
// Game progress settings.
// Two turns of offense/defense/cheese following by a castle battle.
// The game ends when you lose or beat your fifth castle
Preferences.setInteger("_bastilleGameTurn", 0);
Preferences.setInteger("_bastilleCheese", 0);
// Presumably, the type of castle might influence your training choices.
Preferences.setString("_bastilleEnemyCastle", "");
Preferences.setString("_bastilleEnemyName", "");
// Once you have selected offense/defense/cheese, these are your choice
// options for that turn.
Preferences.setString("_bastilleChoice1", "");
Preferences.setString("_bastilleChoice2", "");
Preferences.setString("_bastilleChoice3", "");
// The attributes of the last battle are interesting, but should not carry
// over across tests.
Preferences.setString("_bastilleLastBattleResults", "");
Preferences.setBoolean("_bastilleLastBattleWon", false);
}