decord/beta/source/modules/dice_roll/DiceRollUtils.tsx

31 lines
814 B
TypeScript
Raw Permalink Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 12093
// Function ID: 12094
// Name: DiceRollUtils
2026-10-07 22:43:51 +00:00
// Dependencies: [1126, 2]
// Exports: getBarText
2026-10-12 16:32:48 +00:00
// Module 12093 (DiceRollUtils)
2026-10-07 22:43:51 +00:00
import intl3 from "intl" /* 1126 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/dice_roll/DiceRollUtils.tsx");
export const getBarText = function getBarText(flag, results) {
2026-10-01 14:13:23 +00:00
let str;
const tmp = flag;
if (tmp) {
const intl2 = intl3.intl;
str = intl2.string(intl3.t["x/FIRX"]);
} else {
str = "";
if (null != results) {
2026-10-01 14:13:23 +00:00
const intl = intl3.intl;
const formatToPlainString = intl.formatToPlainString;
const obj = { total: results.reduce((acc, item) => acc + item, 0) };
2026-10-01 14:13:23 +00:00
const xU4pF1 = intl3.t.xU4pF1;
str = formatToPlainString(xU4pF1, obj);
}
}
return str;
};