2026-09-25 08:38:05 +00:00
|
|
|
// Module ID: 11859
|
|
|
|
|
// Function ID: 11860
|
2026-09-10 05:38:07 +00:00
|
|
|
// Name: DiceRollUtils
|
2026-09-15 14:23:42 +00:00
|
|
|
// Dependencies: [1115, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: getBarText
|
|
|
|
|
|
2026-09-25 08:38:05 +00:00
|
|
|
// Module 11859 (DiceRollUtils)
|
2026-09-15 14:23:42 +00:00
|
|
|
import util from "util" /* 1115 */;
|
2026-09-10 05:38:07 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
|
2026-09-10 05:38:07 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/dice_roll/DiceRollUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-29 08:29:29 +00:00
|
|
|
export const getBarText = function getBarText(flag, results) {
|
|
|
|
|
if (flag) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl2 = util.intl;
|
|
|
|
|
let str = intl2.string(util.t["x/FIRX"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
|
|
|
|
str = "";
|
|
|
|
|
if (null != results) {
|
2026-09-10 05:38:07 +00:00
|
|
|
const intl = util.intl;
|
|
|
|
|
const obj = { total: results.reduce((acc, item) => acc + item, 0) };
|
|
|
|
|
str = intl.formatToPlainString(util.t.xU4pF1, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
};
|