Skip to content

Commit b3c0e66

Browse files
committed
Added PFly effects
PFly adds shield after death and from enemy note Updated GWS note icon for easier visibility
1 parent 14b3873 commit b3c0e66

4 files changed

Lines changed: 66 additions & 1 deletion

File tree

Classes/Notes/Assets/Note_GWS.png

-152 Bytes
Loading
427 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://b5rpamdpcjrbj"
6+
path="res://.godot/imported/Note_Parasifly.png-3e72dc1cfeaf988046fea33e3d40a914.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Notes/Assets/Note_Parasifly.png"
14+
dest_files=["res://.godot/imported/Note_Parasifly.png-3e72dc1cfeaf988046fea33e3d40a914.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

Scenes/Puppets/Enemies/Parasifly/P_Parasifly.cs

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using FunkEngine;
22
using Godot;
33

44
public partial class P_Parasifly : EnemyPuppet
@@ -11,6 +11,7 @@ public override void _Ready()
1111
MaxHealth = 100;
1212
CurrentHealth = MaxHealth;
1313
BaseMoney = 5;
14+
InitialNote = (13, 2);
1415
base._Ready();
1516
var enemTween = CreateTween();
1617
enemTween.TweenProperty(Sprite, "position", Vector2.Down * 2, 2f).AsRelative();
@@ -19,5 +20,35 @@ public override void _Ready()
1920
enemTween.SetEase(Tween.EaseType.In);
2021
enemTween.SetLoops();
2122
enemTween.Play();
23+
24+
BattleEvents = new EnemyEffect[]
25+
{
26+
new EnemyEffect(
27+
this,
28+
BattleEffectTrigger.OnBattleStart,
29+
1,
30+
(e, eff, _) =>
31+
{
32+
e.BD.RandApplyNote(eff.Owner, 13, 1);
33+
}
34+
),
35+
new EnemyEffect(
36+
this,
37+
BattleEffectTrigger.OnDamageInstance,
38+
3,
39+
(e, eff, val) =>
40+
{
41+
if (
42+
val <= 0
43+
|| e is not BattleDirector.Harbinger.OnDamageInstanceArgs dArgs
44+
|| dArgs.Dmg.Target != eff.Owner
45+
|| dArgs.Dmg.Damage < dArgs.Dmg.Target.GetCurrentHealth()
46+
)
47+
return;
48+
e.BD.AddStatus(Targetting.All, StatusEffect.Block, val);
49+
eff.Value = 0;
50+
}
51+
),
52+
};
2253
}
2354
}

0 commit comments

Comments
 (0)