Skip to content

Commit

Permalink
feat: fine-tune plasma pressure drifting value settings
Browse files Browse the repository at this point in the history
  • Loading branch information
plaa committed Jun 30, 2024
1 parent 858f375 commit 343634f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion db/redux/box/driftingValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ blobs.push({
driftPause: 0, // drift pause secs remaining (internal)
sinePosition: 0, // sine wave position (internal)

engineBreakProb: 0.1, // probability of 1% engine health dropping PER SECOND
engineBreakProb: 0.055, // probability of 1% engine health dropping PER SECOND

minDriftPerMinute: 1.11, // minimum drift per MINUTE when randomizing drift 1.11 = 3h
maxDriftPerMinute: 2.22, // maximum drift per MINUTE when randomizing drift 2.22 = 1.5h
Expand All @@ -41,6 +41,22 @@ blobs.push({
value: 535,
},

/*
* 6.66 = 0.5h
* 3.33 = 1.0h
* 2.22 = 1.5h
* 1.66 = 2h
* 1.11 = 3h
* 0.55 = 6h
*/
drift_duration_05_1h: {
minDriftPerMinute: 3.33,
maxDriftPerMinute: 6.66,
},
drift_duration_05_2h: {
minDriftPerMinute: 1.66,
maxDriftPerMinute: 6.66,
},
drift_duration_1_2h: {
minDriftPerMinute: 1.66,
maxDriftPerMinute: 3.33,
Expand All @@ -58,6 +74,9 @@ blobs.push({
maxDriftPerMinute: 0.83,
},

/*
* Time for 100% = 100 / 60 / <prob> minutes
*/
breaking_disable: {
engineBreakProb: 0,
},
Expand All @@ -73,6 +92,12 @@ blobs.push({
break_duration_30min: {
engineBreakProb: 0.055,
},
break_duration_45min: {
engineBreakProb: 0.037,
},
break_duration_60min: {
engineBreakProb: 0.027,
},
}
});

Expand Down

0 comments on commit 343634f

Please sign in to comment.