My head hurts

This commit is contained in:
544146
2023-09-23 21:52:59 +01:00
parent 1baebfe163
commit 855941ef51
2 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -258,10 +258,10 @@ class FSBeatMapFileObstacleCustomData:
if not self.is_fs:
raise ValueError('This is not a FS note')
if self.x < -1.5 or self.x > 1.5:
if self.x < -2.5 or self.x > 1.5:
raise ValueError('Input should be between -1.5 and 1.5')
normalized = (self.x + 1.5) / 3.0
normalized = (self.x + 2.5) / 4.0
mapped_value = round(normalized * 8 + 1)
return int(mapped_value)