Skip to content

Commit a62ad13

Browse files
authored
New milestone 2 notes (#200)
* Added money note Deals no damage, but grants money based on timing * Added combo note
1 parent a40e11e commit a62ad13

File tree

6 files changed

+99
-0
lines changed

6 files changed

+99
-0
lines changed
1.04 KB
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://cvqo88fkuu8hs"
6+
path="res://.godot/imported/Note_PlayerCombo.png-a24d525105b1bc80383245debb99deb4.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Notes/Assets/Note_PlayerCombo.png"
14+
dest_files=["res://.godot/imported/Note_PlayerCombo.png-a24d525105b1bc80383245debb99deb4.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
1.04 KB
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://cje3p520pprt4"
6+
path="res://.godot/imported/Note_PlayerMoney.png-f14210a70c94f89c7ea76606add2bdf2.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Notes/Assets/Note_PlayerMoney.png"
14+
dest_files=["res://.godot/imported/Note_PlayerMoney.png-f14210a70c94f89c7ea76606add2bdf2.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: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,33 @@ public partial class Scribe : Node
151151
director.DealDamage(Targetting.Player, dmg, note.Owner);
152152
}
153153
),
154+
new Note(
155+
11,
156+
"PlayerMoney",
157+
GD.Load<Texture2D>("res://Classes/Notes/Assets/Note_PlayerMoney.png"),
158+
1,
159+
(director, note, timing) =>
160+
{
161+
if (timing == Timing.Miss)
162+
return;
163+
StageProducer.PlayerStats.Money += note.GetBaseVal() * (int)timing;
164+
}
165+
),
166+
new Note(
167+
12,
168+
"PlayerCombo",
169+
GD.Load<Texture2D>("res://Classes/Notes/Assets/Note_PlayerCombo.png"),
170+
1,
171+
(director, note, timing) =>
172+
{
173+
if (timing == Timing.Miss)
174+
return;
175+
director.NPB.HandleTiming(
176+
timing,
177+
(ArrowType)StageProducer.GlobalRng.RandiRange(0, 3)
178+
);
179+
}
180+
),
154181
};
155182

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

Globals/Translations/Translations.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ NOTE_PLAYERECHO_NAME,PlayerEcho,玩家回声
6060
NOTE_PLAYERECHO_TOOLTIP,"Deals more damage with each loop.","每次循环造成更多伤害。"
6161
NOTE_PLAYERPOISON_NAME,PlayerPoison,玩家中毒
6262
NOTE_PLAYERPOISON_TOOLTIP,"Applies stacks of poison based on timing.","根据时机施加中毒层数。"
63+
NOTE_PLAYERMONEY_NAME,PlayerMoney,玩家金钱
64+
NOTE_PLAYERMONEY_TOOLTIP,"Deals no damage, but gives you money when hit."."不会造成伤害,但命中时会获得金钱。"
65+
NOTE_PLAYERCOMBO_NAME,PlayerCombo,玩家连击
66+
NOTE_PLAYERCOMBO_TOOLTIP,"Deals no damage, but gives you double the combo bar charge when hit.","不会造成伤害,但命中时会获得双倍连击槽充能。"
6367
RELIC_BREAKFAST_NAME,Breakfast,早餐
6468
RELIC_BREAKFAST_TOOLTIP,"Increases max hp.",提高最大生命值
6569
RELIC_GOODVIBES_NAME,Good Vibes,良好消息

0 commit comments

Comments
 (0)