// The default premium for playing seven tiles on a turn
PREMIUM_SEVEN_TILES: 50,
+ // Score is automically affected to last player. If false, score is automatically affected to the player who pressed the Score button
+ SCORE_LAST_PLAYER: true,
+
// I don't like trailing commas, here is a nice message for you reading this file :-)
HAVE_FUN: true
};
setConf("FLASH_LIGHT_COLOR", "#ee6633");
setConf("API_ENTRY_POINT", Conf.APP_PATH + "/:trivabble");
setConf("PREMIUM_SEVEN_TILES", 50);
+ setConf("SCORE_LAST_PLAYER", true);
function getSetting(key) {
let type;
totalScore += getSetting("PREMIUM_SEVEN_TILES");
}
+ /* Đ…core player who pressed the button */
+ if (!getSetting("SCORE_LAST_PLAYER")) {
+ lastPlayer = getSetting("PlayerName");
+ }
+
myChoice(
format(_("{0} points will be added to:"), totalScore), {
choices: Object.keys(tablePlayers),