2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 11873
|
|
|
|
|
// Function ID: 11874
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: DiceRollUtils
|
2026-09-26 17:57:22 +00:00
|
|
|
// Dependencies: [1115, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
// Exports: getBarText
|
|
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 11873 (DiceRollUtils)
|
2026-09-26 17:57:22 +00:00
|
|
|
import util from "util" /* 1115 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
import size from "module_2" /* 2 */;
|
|
|
|
|
|
|
|
|
|
const result = size.fileFinishedImporting("modules/dice_roll/DiceRollUtils.tsx");
|
|
|
|
|
|
|
|
|
|
export const getBarText = function getBarText(flag, results) {
|
|
|
|
|
if (flag) {
|
|
|
|
|
const intl2 = util.intl;
|
|
|
|
|
let str = intl2.string(util.t["x/FIRX"]);
|
|
|
|
|
} else {
|
|
|
|
|
str = "";
|
|
|
|
|
if (null != results) {
|
|
|
|
|
const intl = util.intl;
|
|
|
|
|
const obj = { total: results.reduce((acc, item) => acc + item, 0) };
|
|
|
|
|
str = intl.formatToPlainString(util.t.xU4pF1, obj);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
};
|