Skip to content

Commit

Permalink
Update Judgment
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleYang0531 committed Jan 18, 2024
1 parent 871e273 commit 6899fb0
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
Binary file modified dist/EngineData
Binary file not shown.
4 changes: 2 additions & 2 deletions engine/play/FlickNote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class FlickNote : public Archetype {
SonolusApi complete(let t = times.now) {
FUNCBEGIN
var res = 0, res2 = 0;
IF (Abs(t - beat) <= judgment.bad) res = 3, res2 = 2; FI
IF (Abs(t - beat) <= judgment.perfect) res = 1, res2 = 1; FI
IF (t == inputTimeMax) res = 3, res2 = 2; FI
IF (t != -1 && t != inputTimeMax) res = 1, res2 = 1; FI
EntityInput.set(0, res2);
EntityInput.set(1, t - beat);
EntityInput.set(3, t - beat);
Expand Down
10 changes: 5 additions & 5 deletions engine/play/holdNotes/ScratchHoldEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class SiriusScratchHoldEnd: public Archetype {
DestroyParticleEffect(effectId); effectId = 0;
} FI
var res = 0, res2 = 0;
IF (Abs(t - beat) <= judgment.bad) res = 3, res2 = 2; FI
IF (Abs(t - beat) <= judgment.perfect) res = 1, res2 = 1; FI
IF (t == inputTimeMin) res = 3, res2 = 2; FI
IF (t > inputTimeMin) res = 1, res2 = 1; FI
EntityInput.set(0, res2);
EntityInput.set(1, t - beat);
EntityInput.set(3, t - beat);
Expand Down Expand Up @@ -72,11 +72,11 @@ class SiriusScratchHoldEnd: public Archetype {

// 判定主代码
IF (times.now < inputTimeMin) Return(0); FI
IF (times.now > inputTimeMax) complete(-1); FI
IF (isHolding == 1) lastHoldTime = Max(lastHoldTime, beat - judgment.bad + 0.001); FI
IF (times.now > inputTimeMax) complete(lastHoldTime); FI
IF (isHolding == 1) lastHoldTime = Max(lastHoldTime, inputTimeMin); FI
isHolding = findFlickTouch(lane, enLane) != -1;
IF (isHolding == 1) lastHoldTime = Max(lastHoldTime, times.now); FI
IF (times.now >= beat && lastHoldTime != -1) complete(lastHoldTime); FI
IF (times.now >= beat && lastHoldTime > inputTimeMin) complete(lastHoldTime); FI
return VOID;
}

Expand Down
2 changes: 1 addition & 1 deletion engine/watch/FlickNote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
enLane = lane + laneLength - 1;
Set(EntityInputId, 0, beat);
PlayScheduled(Clips.Scratch, beat, minSFXDistance);
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgePerfectPlus});
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgeAuto});
return VOID;
}

Expand Down
2 changes: 1 addition & 1 deletion engine/watch/flatNotes/FlatNote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
enLane = lane + laneLength - 1;
Set(EntityInputId, 0, beat);
PlayScheduled(getClip(), beat, minSFXDistance);
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgePerfectPlus});
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgeAuto});
return VOID;
}

Expand Down
2 changes: 1 addition & 1 deletion engine/watch/holdNotes/HoldEighth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
IF (mirror) lane = 14 - lane - laneLength; FI
enLane = lane + laneLength - 1;
Set(EntityInputId, 0, beat);
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgePerfectPlus});
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgeAuto});
return VOID;
}
};
2 changes: 1 addition & 1 deletion engine/watch/holdNotes/HoldEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
PlayLoopedScheduled(Clips.Hold, stBeat),
beat
);
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgePerfectPlus});
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgeAuto});
return VOID;
}

Expand Down
2 changes: 1 addition & 1 deletion engine/watch/holdNotes/ScratchHoldEnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
PlayLoopedScheduled(Clips.Hold, stBeat),
beat
);
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgePerfectPlus});
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgeAuto});
return VOID;
}

Expand Down
2 changes: 1 addition & 1 deletion engine/watch/holdNotes/Sound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
enLane = lane + laneLength - 1;
Set(EntityInputId, 0, beat);
PlayScheduled(Clips.Sound, beat, minSFXDistance);
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgePerfectPlus});
Spawn(getArchetypeId(UpdateJudgment), {beat, Sprites.JudgeAuto});
return VOID;
}

Expand Down
Binary file modified main
Binary file not shown.
Empty file modified unpacker/build.sh
100644 → 100755
Empty file.
Binary file added unpacker/effect
Binary file not shown.
Binary file added unpacker/skin
Binary file not shown.

0 comments on commit 6899fb0

Please sign in to comment.