Skip to content

Commit 424da15

Browse files
committed
Added BossBlood Effects
Extra damage on miss/ok and heal
1 parent b3c0e66 commit 424da15

4 files changed

Lines changed: 51 additions & 0 deletions

File tree

487 Bytes
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://c6gaprxxf71mm"
6+
path="res://.godot/imported/Note_BossBlood.png-867ef730738d75280fbaf251b1d84cde.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Notes/Assets/Note_BossBlood.png"
14+
dest_files=["res://.godot/imported/Note_BossBlood.png-867ef730738d75280fbaf251b1d84cde.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

Globals/Scribe.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,21 @@ public partial class Scribe : Node
190190
director.AddStatus(Targetting.All, StatusEffect.Block, amt);
191191
}
192192
),
193+
new Note(
194+
14,
195+
"BossBlood",
196+
GD.Load<Texture2D>("res://Classes/Notes/Assets/Note_BossBlood.png"),
197+
2,
198+
(director, note, timing) =>
199+
{
200+
int dmg = (3 - (int)timing) * note.GetBaseVal();
201+
director.DealDamage(note, dmg, note.Owner);
202+
if (dmg > 0)
203+
note.Owner.Heal((3 - (int)timing));
204+
},
205+
default,
206+
Targetting.Player
207+
),
193208
};
194209

195210
public static readonly RelicTemplate[] RelicDictionary = new[]

Scenes/Puppets/Enemies/BossBlood/P_BossBlood.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public override void _Ready()
1111
MaxHealth = 225;
1212
CurrentHealth = MaxHealth;
1313
BaseMoney = 15;
14+
InitialNote = (14, 3);
1415
base._Ready();
1516
var enemTween = CreateTween();
1617
enemTween.TweenProperty(Sprite, "position", Vector2.Down * 5, 1f).AsRelative();
@@ -29,6 +30,7 @@ public override void _Ready()
2930
(e, eff, val) =>
3031
{
3132
eff.Owner.Heal(val);
33+
e.BD.RandApplyNote(eff.Owner, 14, 1);
3234
}
3335
),
3436
};

0 commit comments

Comments
 (0)