decord/source/modules/game_detection/calculateSteamReviewScoreDescription.tsx

60 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 9364
// Function ID: 9365
2026-07-20 16:05:17 +00:00
// Name: calculateSteamReviewScoreDescription
2026-08-12 06:57:52 +00:00
// Dependencies: [4379, 2]
2026-07-20 16:05:17 +00:00
// Exports: calculateSteamReviewScoreDescription
2026-08-12 06:57:52 +00:00
// Module 9364 (calculateSteamReviewScoreDescription)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/game_detection/calculateSteamReviewScoreDescription.tsx");
2026-07-20 16:05:17 +00:00
export const calculateSteamReviewScoreDescription = function calculateSteamReviewScoreDescription(rating, ratingCount, isRecentRating) {
let num = 50;
let num2 = 50;
if (isRecentRating) {
num2 = 0;
}
let num3 = 500;
let num4 = 500;
if (isRecentRating) {
num4 = 100;
}
if (isRecentRating) {
num = 0;
}
if (isRecentRating) {
num3 = 100;
}
if (null != rating) {
if (null != ratingCount) {
if (ratingCount >= 10) {
if (rating >= 80) {
if (ratingCount < num2) {
2026-08-12 06:57:52 +00:00
let VERY_POSITIVE = require(4379) /* GameTheme */.SteamReviewScoreDescription.POSITIVE;
2026-07-20 16:05:17 +00:00
} else {
if (ratingCount >= num4) {
if (rating >= 95) {
2026-08-12 06:57:52 +00:00
VERY_POSITIVE = require(4379) /* GameTheme */.SteamReviewScoreDescription.OVERWHELMINGLY_POSITIVE;
2026-07-20 16:05:17 +00:00
}
}
2026-08-12 06:57:52 +00:00
VERY_POSITIVE = require(4379) /* GameTheme */.SteamReviewScoreDescription.VERY_POSITIVE;
2026-07-20 16:05:17 +00:00
}
} else if (rating >= 70) {
2026-08-12 06:57:52 +00:00
let NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.MOSTLY_POSITIVE;
2026-07-20 16:05:17 +00:00
} else if (rating >= 40) {
2026-08-12 06:57:52 +00:00
NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.MIXED;
2026-07-20 16:05:17 +00:00
} else if (rating >= 20) {
2026-08-12 06:57:52 +00:00
NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.MOSTLY_NEGATIVE;
2026-07-20 16:05:17 +00:00
} else if (ratingCount < num) {
2026-08-12 06:57:52 +00:00
NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.NEGATIVE;
2026-07-20 16:05:17 +00:00
} else if (ratingCount < num3) {
2026-08-12 06:57:52 +00:00
NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.VERY_NEGATIVE;
2026-07-20 16:05:17 +00:00
} else {
2026-08-12 06:57:52 +00:00
NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.OVERWHELMINGLY_NEGATIVE;
2026-07-20 16:05:17 +00:00
}
}
return NO_USER_REVIEWS;
}
}
2026-08-12 06:57:52 +00:00
NO_USER_REVIEWS = require(4379) /* GameTheme */.SteamReviewScoreDescription.NO_USER_REVIEWS;
2026-07-20 16:05:17 +00:00
};