diff --git a/abstracto-modules/entertainment/src/main/resources/en_US/commands/mines/mines_board_response_embed_en_US.ftl b/abstracto-modules/entertainment/src/main/resources/en_US/commands/mines/mines_board_response_embed_en_US.ftl new file mode 100644 index 00000000..41a8bb2d --- /dev/null +++ b/abstracto-modules/entertainment/src/main/resources/en_US/commands/mines/mines_board_response_embed_en_US.ftl @@ -0,0 +1,39 @@ +{ + <#assign totalMines=mineCount> + <#assign userLost=state.name() == "LOST"> + <#assign userWon=state.name() == "WON"> + <#assign ended=userLost || userWon> + <#if creditsEnabled> + <#assign changedCreditAmount=creditChange/> + <#assign creditAmount=credits/> + <#assign stateText><#if state.name() == "WON"><#include "mines_state_won_credits"><#elseif state.name() == "LOST"><#include "mines_state_lost_credits"><#else><#include "mines_state_continue_credits"> + <#else> + <#assign stateText><#if state.name() == "WON"><#include "mines_state_won"><#elseif state.name() == "LOST"><#include "mines_state_lost"><#else><#include "mines_state_continue"> + +"additionalMessage": "<@safe_include "mines_additional_message"/>", + "buttons": [ + <#list rows as row> + <#list row.fields as field> + { + <#if ended> + <#assign label><#if field.counterValue != 0>${field.counterValue}<#elseif field.type.name() == "EXPLODED">💀<#elseif field.type.name() == "MINE">💣<#elseif field.type.name() == "UNCOVERED">o + <#else> + <#assign label><#if field.type.name() == "COVERED" || field.type.name() == "MINE">x<#elseif field.counterValue != 0>${field.counterValue}<#else>o + + "label": "${label}", + "id": "${boardId}_${field.x}_${field.y}", + "buttonStyle": "secondary", + <#if ended>"disabled": true, + "metaConfig": { + "persistCallback": false + <#if field?is_first> + ,"forceNewRow": true + + } + } + <#sep>, + + <#sep>, + + ] +} \ No newline at end of file diff --git a/abstracto-modules/entertainment/src/main/resources/en_US/exception/invalid_mine_board_config_exception_en_US.ftl b/abstracto-modules/entertainment/src/main/resources/en_US/exception/invalid_mine_board_config_exception_en_US.ftl new file mode 100644 index 00000000..c2f7092a --- /dev/null +++ b/abstracto-modules/entertainment/src/main/resources/en_US/exception/invalid_mine_board_config_exception_en_US.ftl @@ -0,0 +1 @@ +<#include "invalid_mine_board_config_exception_text"> \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_description_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_description_en_US.ftl new file mode 100644 index 00000000..cd6ac376 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_description_en_US.ftl @@ -0,0 +1 @@ +Play a game of to find mines in a field \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_long_help_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_long_help_en_US.ftl new file mode 100644 index 00000000..3c9eafb9 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_long_help_en_US.ftl @@ -0,0 +1,5 @@ +You can create a minefield with at most 5x5 dimensions and a custom amount of mines. +If you reveal a field which is not a mine, you will either uncover all adjacent free fields or show a number how many files are adjacent. +If you reveal all fields (by clicking) which are no mines, you win! +If economy is enabled, you have the ability to put some credits on the line, and potentially win a multiple of it. +The result of the winnings depend on how many fields you managed to uncover, how many fields and mines there were in total (the more of both, the more credits) and if you completely uncovered the field. \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_credits_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_credits_en_US.ftl new file mode 100644 index 00000000..9448810c --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_credits_en_US.ftl @@ -0,0 +1 @@ +How many credits you want to put on the line \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_height_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_height_en_US.ftl new file mode 100644 index 00000000..b498ccf4 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_height_en_US.ftl @@ -0,0 +1 @@ +Amount of rows of the field \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_mines_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_mines_en_US.ftl new file mode 100644 index 00000000..f64fbee6 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_mines_en_US.ftl @@ -0,0 +1 @@ +Amount of mines which will be put in the field \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_width_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_width_en_US.ftl new file mode 100644 index 00000000..7c3bd000 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/help/mines_parameter_width_en_US.ftl @@ -0,0 +1 @@ +Amount of columns of the field \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_additional_message_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_additional_message_en_US.ftl new file mode 100644 index 00000000..668a18e1 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_additional_message_en_US.ftl @@ -0,0 +1 @@ +${totalMines} Mines. ${stateText} \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_continue_credits_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_continue_credits_en_US.ftl new file mode 100644 index 00000000..8ef77af1 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_continue_credits_en_US.ftl @@ -0,0 +1 @@ +Continue... Playing for ${creditAmount} credits. \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_continue_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_continue_en_US.ftl new file mode 100644 index 00000000..f8325213 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_continue_en_US.ftl @@ -0,0 +1 @@ +Continue... \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_lost_credits_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_lost_credits_en_US.ftl new file mode 100644 index 00000000..416746d3 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_lost_credits_en_US.ftl @@ -0,0 +1 @@ +You lost! You put ${creditAmount} credits on the line and got back ${changedCreditAmount}! \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_lost_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_lost_en_US.ftl new file mode 100644 index 00000000..091702d1 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_lost_en_US.ftl @@ -0,0 +1 @@ +You lost! \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_won_credits_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_won_credits_en_US.ftl new file mode 100644 index 00000000..b60050b7 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_won_credits_en_US.ftl @@ -0,0 +1 @@ +You put ${creditAmount} credits on the line and won ${changedCreditAmount}! \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_won_en_US.ftl b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_won_en_US.ftl new file mode 100644 index 00000000..406e13b7 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/commands/mines/mines_state_won_en_US.ftl @@ -0,0 +1 @@ +You won! \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/config/feature_games_en_US.ftl b/translations/entertainment/src/main/resources/en_US/config/feature_games_en_US.ftl new file mode 100644 index 00000000..612b22d9 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/config/feature_games_en_US.ftl @@ -0,0 +1 @@ +Games \ No newline at end of file diff --git a/translations/entertainment/src/main/resources/en_US/exception/invalid_mine_board_config_exception_text_en_US.ftl b/translations/entertainment/src/main/resources/en_US/exception/invalid_mine_board_config_exception_text_en_US.ftl new file mode 100644 index 00000000..3b28dc96 --- /dev/null +++ b/translations/entertainment/src/main/resources/en_US/exception/invalid_mine_board_config_exception_text_en_US.ftl @@ -0,0 +1 @@ +Invalid mines configuration: Width and height at least 1 and at most 5 each. There must at least one mine and at least one field without a mine! \ No newline at end of file