Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fc-pregmod
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pregmodfan
fc-pregmod
Commits
a3164f9d
Commit
a3164f9d
authored
2 years ago
by
Pregmodder
Browse files
Options
Downloads
Plain Diff
Merge branch 'tweakBatch' into 'pregmod-master'
tweakBatch Closes
#4140
See merge request
!10959
parents
8acb54bf
52750569
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10959
tweakBatch
Pipeline
#50449
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/random.js
+0
-4
0 additions, 4 deletions
js/random.js
src/005-passages/bcPassages.js
+0
-2
0 additions, 2 deletions
src/005-passages/bcPassages.js
with
0 additions
and
6 deletions
js/random.js
+
0
−
4
View file @
a3164f9d
...
...
@@ -21,7 +21,6 @@ function gaussianPair(mean = 0, deviation = 1) {
* @param {number} [max]
* @returns {number}
*/
/* exported normalRandInt */
function
normalRandInt
(
mean
=
0
,
deviation
=
1
,
min
=
mean
-
3
*
deviation
,
max
=
mean
+
3
*
deviation
)
{
let
val
=
gaussianPair
(
mean
,
deviation
)[
0
];
while
(
val
<
min
||
val
>
max
)
{
...
...
@@ -38,7 +37,6 @@ function normalRandInt(mean = 0, deviation = 1, min = mean - 3 * deviation, max
* @param {number} [count]
* @returns {number}
*/
/* exported jsRandom */
function
jsRandom
(
min
,
max
,
count
=
1
)
{
function
rand
()
{
return
Math
.
random
()
*
(
max
-
min
+
1
)
+
min
;
...
...
@@ -62,7 +60,6 @@ function jsRandom(min, max, count = 1) {
* @param {number} count
* @returns {Array<T>}
*/
/* exported jsRandomMany */
function
jsRandomMany
(
arr
,
count
)
{
let
result
=
[];
let
tmp
=
arr
.
slice
();
...
...
@@ -80,7 +77,6 @@ function jsRandomMany(arr, count) {
* @param {...T} [otherChoices]
* @returns {T}
*/
/* exported jsEither */
function
jsEither
(
choices
,
...
otherChoices
)
{
if
(
otherChoices
.
length
===
0
&&
Array
.
isArray
(
choices
))
{
return
choices
[
Math
.
floor
(
Math
.
random
()
*
choices
.
length
)];
...
...
This diff is collapsed.
Click to expand it.
src/005-passages/bcPassages.js
+
0
−
2
View file @
a3164f9d
...
...
@@ -2,10 +2,8 @@ new App.DomPassage("Backwards Compatibility",
()
=>
{
V
.
nextButton
=
"
Continue
"
;
V
.
nextLink
=
"
Main
"
;
V
.
returnTo
=
"
Main
"
;
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
// fills in holes instead of overwriting data.
App
.
Update
.
setNonexistentProperties
(
V
,
App
.
Data
.
resetOnNGPlus
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment