Skip to content

Commit 6ee8922

Browse files
committed
Added blood money
1 parent 2120a10 commit 6ee8922

4 files changed

Lines changed: 59 additions & 0 deletions

File tree

968 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://b6lpt3cbkdnli"
6+
path="res://.godot/imported/Relic_BloodMoney.png-d130382b6c03f59c21d5962c3d5f6e5a.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://Classes/Relics/Assets/Relic_BloodMoney.png"
14+
dest_files=["res://.godot/imported/Relic_BloodMoney.png-d130382b6c03f59c21d5962c3d5f6e5a.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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,29 @@ e is BattleDirector.Harbinger.OnDamageInstanceArgs dmgArgs
444444
),
445445
}
446446
),
447+
new RelicTemplate(
448+
16,
449+
"Blood Money",
450+
Rarity.Epic,
451+
GD.Load<Texture2D>("res://Classes/Relics/Assets/Relic_BloodMoney.png"),
452+
new RelicEffect[]
453+
{
454+
new RelicEffect(
455+
BattleEffectTrigger.OnDamageInstance,
456+
10,
457+
(e, self, val) =>
458+
{
459+
if (
460+
e is BattleDirector.Harbinger.OnDamageInstanceArgs dmgArgs
461+
&& dmgArgs.Dmg.Target == e.BD.Player
462+
&& e.BD.Player.GetCurrentHealth()
463+
< StageProducer.PlayerStats.MaxHealth / 2
464+
)
465+
StageProducer.PlayerStats.Money += val;
466+
}
467+
),
468+
}
469+
),
447470
};
448471

449472
public static readonly SongTemplate[] SongDictionary = new[] //Generalize and make pools for areas/room types

Globals/Translations/Translations.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ RELIC_SECONDPICK_NAME,Second Pick,备用拨片
9292
RELIC_SECONDPICK_TOOLTIP,"Placing a note has a 20% chance to instantly refill the combo bar.","每次演奏音符时,有20%的几率立即填满连击槽。"
9393
RELIC_BROKENDRUMSTICK_NAME,Broken Drumstick,破碎的鼓棒
9494
RELIC_BROKENDRUMSTICK_TOOLTIP,"Enemies start combat damaged.","敌人在战斗开始时受到伤害。"
95+
RELIC_BLOODMONEY_NAME,Blood Money,血腥钱袋
96+
RELIC_BLOODMONEY_TOOLTIP,"Gain money when taking damage below half health.","在生命值低于一半时受到伤害可获得金钱。"
9597
INVENTORY_TAB_NOTES,Notes,乐谱
9698
INVENTORY_TAB_RELICS,Relics,遗物
9799
OPTIONS_VOLUME_LABEL,Master Volume,最终音量设置

0 commit comments

Comments
 (0)