Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MODIFY_DAMAGE for LR2 Hard Gauge for TotalNotes<1000 #628

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions src/bms/player/beatoraja/play/GrooveGauge.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ public float modify(float f, BMSModel model) {
float fix1=1.0f;
float fix2=1.0f;
if(f < 0) {
// トータル補正 (<240)
if(model.getTotal()>=240.0){
fix1=1.0f;
}else if(model.getTotal()>=230.0){
Expand All @@ -308,13 +309,26 @@ public float modify(float f, BMSModel model) {
}else{
fix1=10.0f;
}
int note=1000;
float mod=0.002f;
while(note>model.getTotalNotes()||note>1){
fix2 += mod * (float)(note - Math.max(model.getTotalNotes(), note/2));
note/=2;
mod*=2.0f;

// ノート数補正 (<1000)
if(model.getTotalNotes()<=20) {
fix2 = 10.0f;
}else if(model.getTotalNotes()<30) {
fix2 = 8.0f + 0.2f*(30-model.getTotalNotes());
}else if(model.getTotalNotes()<60) {
fix2 = 5.0f + 0.2f*(60-model.getTotalNotes())/3.0f;
}else if(model.getTotalNotes()<125) {
fix2 = 4.0f + (125-model.getTotalNotes())/65.0f;
}else if(model.getTotalNotes()<250) {
fix2 = 3.0f + 0.008f*(250-model.getTotalNotes());
}else if(model.getTotalNotes()<500) {
fix2 = 2.0f + 0.004f*(500-model.getTotalNotes());
}else if(model.getTotalNotes()<1000) {
wcko87 marked this conversation as resolved.
Show resolved Hide resolved
fix2 = 1.0f + 0.002f*(1000-model.getTotalNotes());
}else {
fix2 = 1.0f;
}

f *= Math.max(fix1, fix2);
}
return f;
Expand Down