Skip to content

Commit 4d8e55b

Browse files
committed
updated notes to use a base power level
Currently multiplies the base level into the effect, but can always change this to addition later. This is to help later introduce relics that effect specific / overall note damage.
1 parent d6dae53 commit 4d8e55b

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

Classes/Notes/Note.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public Note(
3737
?? (
3838
(BD, source, Timing) =>
3939
{
40-
BD.GetTarget(this).TakeDamage(source._baseVal);
40+
BD.GetTarget(this).TakeDamage((int)Timing * source._baseVal);
4141
}
4242
);
4343
_baseVal = baseVal;
@@ -67,4 +67,9 @@ public Note Clone()
6767
);
6868
return newNote;
6969
}
70+
71+
public int GetBaseVal()
72+
{
73+
return _baseVal;
74+
}
7075
}

Globals/Scribe.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public partial class Scribe : Node
2020
1,
2121
(director, note, timing) =>
2222
{
23-
director.Player.TakeDamage(3 - (int)timing);
23+
director.Player.TakeDamage((3 - (int)timing) * note.GetBaseVal());
2424
}
2525
),
2626
new Note(
@@ -32,7 +32,7 @@ public partial class Scribe : Node
3232
1,
3333
(director, note, timing) =>
3434
{
35-
director.Enemy.TakeDamage((int)timing);
35+
director.Enemy.TakeDamage((int)timing * note.GetBaseVal());
3636
}
3737
),
3838
new Note(
@@ -46,7 +46,7 @@ public partial class Scribe : Node
4646
{
4747
// can change later, but I want it like this instead of changing base
4848
// in case we have some relic that messes with timing
49-
director.Enemy.TakeDamage(2 * (int)timing);
49+
director.Enemy.TakeDamage((2 * (int)timing) * note.GetBaseVal());
5050
}
5151
),
5252
new Note(
@@ -58,7 +58,7 @@ public partial class Scribe : Node
5858
1,
5959
(director, note, timing) =>
6060
{
61-
director.Player.Heal((int)timing);
61+
director.Player.Heal((int)timing * note.GetBaseVal());
6262
}
6363
),
6464
new Note(
@@ -71,7 +71,7 @@ public partial class Scribe : Node
7171
(director, note, timing) =>
7272
{
7373
director.Player.Heal((int)timing);
74-
director.Enemy.TakeDamage((int)timing);
74+
director.Enemy.TakeDamage((int)timing * note.GetBaseVal());
7575
}
7676
),
7777
new Note(
@@ -83,7 +83,7 @@ public partial class Scribe : Node
8383
1,
8484
(director, note, timing) =>
8585
{
86-
director.Enemy.TakeDamage((int)timing);
86+
director.Enemy.TakeDamage((int)timing * note.GetBaseVal());
8787
},
8888
0.25f
8989
),

0 commit comments

Comments
 (0)