Skip to content
Snippets Groups Projects
Commit a3164f9d authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'tweakBatch' into 'pregmod-master'

tweakBatch

Closes #4140

See merge request !10959
parents 8acb54bf 52750569
No related branches found
No related tags found
1 merge request!10959tweakBatch
Pipeline #50449 passed
...@@ -21,7 +21,6 @@ function gaussianPair(mean = 0, deviation = 1) { ...@@ -21,7 +21,6 @@ function gaussianPair(mean = 0, deviation = 1) {
* @param {number} [max] * @param {number} [max]
* @returns {number} * @returns {number}
*/ */
/* exported normalRandInt */
function normalRandInt(mean = 0, deviation = 1, min = mean - 3 * deviation, max = mean + 3 * deviation) { function normalRandInt(mean = 0, deviation = 1, min = mean - 3 * deviation, max = mean + 3 * deviation) {
let val = gaussianPair(mean, deviation)[0]; let val = gaussianPair(mean, deviation)[0];
while (val < min || val > max) { while (val < min || val > max) {
...@@ -38,7 +37,6 @@ function normalRandInt(mean = 0, deviation = 1, min = mean - 3 * deviation, max ...@@ -38,7 +37,6 @@ function normalRandInt(mean = 0, deviation = 1, min = mean - 3 * deviation, max
* @param {number} [count] * @param {number} [count]
* @returns {number} * @returns {number}
*/ */
/* exported jsRandom */
function jsRandom(min, max, count = 1) { function jsRandom(min, max, count = 1) {
function rand() { function rand() {
return Math.random() * (max - min + 1) + min; return Math.random() * (max - min + 1) + min;
...@@ -62,7 +60,6 @@ function jsRandom(min, max, count = 1) { ...@@ -62,7 +60,6 @@ function jsRandom(min, max, count = 1) {
* @param {number} count * @param {number} count
* @returns {Array<T>} * @returns {Array<T>}
*/ */
/* exported jsRandomMany */
function jsRandomMany(arr, count) { function jsRandomMany(arr, count) {
let result = []; let result = [];
let tmp = arr.slice(); let tmp = arr.slice();
...@@ -80,7 +77,6 @@ function jsRandomMany(arr, count) { ...@@ -80,7 +77,6 @@ function jsRandomMany(arr, count) {
* @param {...T} [otherChoices] * @param {...T} [otherChoices]
* @returns {T} * @returns {T}
*/ */
/* exported jsEither */
function jsEither(choices, ...otherChoices) { function jsEither(choices, ...otherChoices) {
if (otherChoices.length === 0 && Array.isArray(choices)) { if (otherChoices.length === 0 && Array.isArray(choices)) {
return choices[Math.floor(Math.random() * choices.length)]; return choices[Math.floor(Math.random() * choices.length)];
......
...@@ -2,10 +2,8 @@ new App.DomPassage("Backwards Compatibility", ...@@ -2,10 +2,8 @@ new App.DomPassage("Backwards Compatibility",
() => { () => {
V.nextButton = "Continue"; V.nextButton = "Continue";
V.nextLink = "Main"; V.nextLink = "Main";
V.returnTo = "Main";
App.Update.setNonexistentProperties(V, App.Data.defaultGameStateVariables); App.Update.setNonexistentProperties(V, App.Data.defaultGameStateVariables);
// resetOnNGPlus contains half of the variables we need, but we use it politely here instead of forcing it so it // resetOnNGPlus contains half of the variables we need, but we use it politely here instead of forcing it so it
// fills in holes instead of overwriting data. // fills in holes instead of overwriting data.
App.Update.setNonexistentProperties(V, App.Data.resetOnNGPlus); App.Update.setNonexistentProperties(V, App.Data.resetOnNGPlus);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment