diff --git a/scripts/shared/utilities.js b/scripts/shared/utilities.js index 72713157..6239a4a9 100644 --- a/scripts/shared/utilities.js +++ b/scripts/shared/utilities.js @@ -1121,7 +1121,7 @@ let profanityFilterWords = [ "anus", "apeshit", "arsehole", - "ass", + //"ass", "asshole", "assmunch", "autoerotic", @@ -3230,4 +3230,20 @@ function isServerGoingToChangeMapsSoon(hour, minute) { return false; } +// =========================================================================== + +function getRandomBoolWithProbability(percentChance) { + return (Math.random() < percentChance / 100); +} + +// =========================================================================== + +function getWeatherData(weatherIndex, gameId = getGame()) { + if (typeof getGameConfig().weather[gameId][weatherIndex] == "undefined") { + return false; + } + + return getGameConfig().weather[gameId][weatherIndex]; +} + // =========================================================================== \ No newline at end of file