Skip to content

Commit

Permalink
Add test message for gambling feature
Browse files Browse the repository at this point in the history
  • Loading branch information
hanshino committed Jan 19, 2024
1 parent 88b2127 commit 73ea089
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/src/controller/application/NumberController.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ async function userDecide(context, props) {
}

const messages = [
"[公測] 不管輸贏都不會扣除籌碼,也不會贏得籌碼,僅供測試",
i18n.__("message.gamble.sic_bo_rolled", {
dice1: dice[0],
dice2: dice[1],
Expand Down
8 changes: 7 additions & 1 deletion app/src/templates/application/Number.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const humanNumber = require("human-number");

exports.generatePanel = ({ chips }) => ({
type: "bubble",
body: {
Expand Down Expand Up @@ -72,7 +74,7 @@ exports.generatePanel = ({ chips }) => ({
},
{
type: "span",
text: ` ${chips} `,
text: ` ${humanNumber(chips)} `,
weight: "bold",
color: "#FF6513",
},
Expand Down Expand Up @@ -110,6 +112,7 @@ exports.generatePanel = ({ chips }) => ({
option: "big",
chips,
}),
displayText: `#猜 大 ${chips}`,
},
},
{
Expand All @@ -136,6 +139,7 @@ exports.generatePanel = ({ chips }) => ({
option: "small",
chips,
}),
displayText: `#猜 小 ${chips}`,
},
},
{
Expand All @@ -162,6 +166,7 @@ exports.generatePanel = ({ chips }) => ({
option: "double",
chips,
}),
displayText: `#猜 兩顆 ${chips}`,
},
},
{
Expand All @@ -188,6 +193,7 @@ exports.generatePanel = ({ chips }) => ({
option: "triple",
chips,
}),
displayText: `#猜 三顆 ${chips}`,
},
},
],
Expand Down

0 comments on commit 73ea089

Please sign in to comment.