Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Nov 19, 2024
2 parents f59e615 + 49e1941 commit ad06c78
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gitVersion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1
0.9.1
2 changes: 1 addition & 1 deletion source/online/FunkinPoints.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FunkinPoints {

// depends on the amount of hitted notes and the density of the song
// density values for songs: 2.9p (unbeatable), 3.6 (ballistic), 4.2 (spookeez erect), 4.6 (sporting)
// so for a song with 3.0 density (ex. spookeez erect), for every ~65 hitted notes a player will gain 1 fp (without combo bonus)
// so for a song with 4.0 density (ex. spookeez erect), for every 50 hitted notes a player will gain 1 fp (without combo bonus)
var fp:Float = (1 + songDensity) * (notesHit / 200);
// depends on player's note streak (x2fp per 2000 combo)
fp *= 1 + maxCombo / 2000;
Expand Down
2 changes: 1 addition & 1 deletion source/online/replay/ReplayRecorder.hx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class ReplayRecorder extends FlxBasic {
data.goods = state.songGoods;
data.bads = state.songBads;
data.shits = state.songShits;
data.points = FunkinPoints.calcFP(state.ratingPercent, state.songMisses, state.songDensity, state.totalNotesHit, state.combo);
data.points = FunkinPoints.calcFP(state.ratingPercent, state.songMisses, state.songDensity, state.totalNotesHit, state.maxCombo);
data.beat_time = Date.now().getTime();
data.note_offset = ClientPrefs.data.noteOffset;

Expand Down
10 changes: 9 additions & 1 deletion sync.hxs
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
// for quick patches, hooking into classes
// this can be locally tested with sync.hxs in the game directory

import backend.Mods;
import Main;
import online.gui.Alert;

function init() { // initializes the game
print("received sync script from git!");

if (Main.GIT_COMMIT == "807d1b1d7314e08f13a61f1c88a974617ca9f37e") {
Alert.alert('Outdated Version!', 'A hotfix is available!\n(You should update to v0.9.1h!)');
}
}

function switchState(state) { // game state gets switched
Expand All @@ -11,4 +19,4 @@ function switchState(state) { // game state gets switched

function openSubState(substate) { // game substate gets opened
//print(typeof(substate));
}
}

0 comments on commit ad06c78

Please sign in to comment.