Files
discord-decomp/sources/modules/game_detection/calculateSteamReviewScoreDescription.tsx
T
2026-07-27 16:20:00 +03:00

22 lines
1.9 KiB
TypeScript

/* Metro module 9996; source: modules/game_detection/calculateSteamReviewScoreDescription.tsx; dependencies: [4269, 2] */
function _fun78147(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#78147, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10182:6, offset: 0x01e1cebd, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/game_detection/calculateSteamReviewScoreDescription.tsx');
exports.calculateSteamReviewScoreDescription = calculateSteamReviewScoreDescription;
}
function calculateSteamReviewScoreDescription(a0, a1, a2) { // fn#78148, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10182:228, offset: 0x01e1cf1d, size: 521 bytes, params: 4, frame: 16
const SteamReviewScoreDescription = (require(4269) /* metro dependency 4269: GameDetectionTypes */).SteamReviewScoreDescription;
const value = 50;
const r4 = a2 ? 0 : value;
const value3 = 500;
const r1 = a2 ? 100 : value3;
const r5 = a2 ? 0 : value;
let r0 = a2 ? 100 : value3;
r0 = a0 == null || a1 == null || a1 < 10 ? SteamReviewScoreDescription.NO_USER_REVIEWS : a0 >= 80 ? a1 < r4 ? SteamReviewScoreDescription.POSITIVE : a1 < r1 || a0 < 95 ? SteamReviewScoreDescription.VERY_POSITIVE : SteamReviewScoreDescription.OVERWHELMINGLY_POSITIVE : a0 >= 70 ? SteamReviewScoreDescription.MOSTLY_POSITIVE : a0 >= 40 ? SteamReviewScoreDescription.MIXED : a0 >= 20 ? SteamReviewScoreDescription.MOSTLY_NEGATIVE : a1 < r5 ? SteamReviewScoreDescription.NEGATIVE : a1 < r0 ? SteamReviewScoreDescription.VERY_NEGATIVE : SteamReviewScoreDescription.OVERWHELMINGLY_NEGATIVE;
return r0;
}