Skip to content

Commit 3542020

Browse files
committed
Made placed note take the correct cost
How could we make something like this a feature?
1 parent 3bd7713 commit 3542020

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scenes/BattleDirector/scripts/NotePlacementBar.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,12 @@ public void IncreaseCharge(int amount = 1)
189189
// Placing a note resets the note placement bar
190190
public Note PlacedNote(BattleDirector BD)
191191
{
192-
_currentBarValue -= (int)(_currentNoteInstance.CostModifier * MaxValue);
192+
Note placedNote = GetNote(Input.IsActionPressed("Secondary"));
193193

194+
_currentBarValue -= (int)(placedNote.CostModifier * MaxValue);
194195
UpdateNotePlacementBar(_currentBarValue);
195196

196-
Note placedNote = GetNote(Input.IsActionPressed("Secondary"));
197-
placedNote?.OnHit(BD, Timing.Okay); //Hardcode for now, eventually the note itself could have its default
197+
placedNote.OnHit(BD, Timing.Okay); //Hardcode for now, eventually the note itself could have its default
198198
return placedNote;
199199
}
200200

0 commit comments

Comments
 (0)