Item holy and all element implementation, still need to work out some of the math for it
Fix bonus defense for weapons
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=25 format=3 uid="uid://brgi35xj3b4ud"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://brgi35xj3b4ud"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cw100tox0ufsy" path="res://src/audio/SfxDatabase.cs" id="1_ojkqd"]
|
||||
[ext_resource type="AudioStream" uid="uid://cye8wlqbx66h4" path="res://src/audio/sfx/player_heal.ogg" id="2_158j8"]
|
||||
@@ -11,6 +11,7 @@
|
||||
[ext_resource type="AudioStream" uid="uid://doeefxilh0luj" path="res://src/audio/sfx/ITEM_SORT.ogg" id="9_l6w22"]
|
||||
[ext_resource type="AudioStream" uid="uid://4mk4hlse81if" path="res://src/audio/sfx/player_losehealth.ogg" id="10_kac56"]
|
||||
[ext_resource type="AudioStream" uid="uid://dwp3ep3jddvrr" path="res://src/audio/sfx/UI_SELECT.ogg" id="10_nerso"]
|
||||
[ext_resource type="AudioStream" uid="uid://ilf2s8ct2stt" path="res://src/audio/sfx/PLAYER_slower_slash.ogg" id="10_vyvit"]
|
||||
[ext_resource type="AudioStream" uid="uid://oslvh60ec5gc" path="res://src/audio/sfx/UI_CANCEL_BACK.ogg" id="11_rloay"]
|
||||
[ext_resource type="AudioStream" uid="uid://bo2u1ceci6k1i" path="res://src/audio/sfx/PLAYER_quicker_slash.ogg" id="13_fa8i8"]
|
||||
[ext_resource type="AudioStream" uid="uid://na0lxb1lib11" path="res://src/audio/sfx/player_crit.ogg" id="14_p5cio"]
|
||||
@@ -67,11 +68,16 @@ unique_name_in_owner = true
|
||||
stream = ExtResource("3_kac56")
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="WeaponSwingSound" type="AudioStreamPlayer" parent="Player"]
|
||||
[node name="WeaponQuickSlashSound" type="AudioStreamPlayer" parent="Player"]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("13_fa8i8")
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="WeaponSlowSlashSound" type="AudioStreamPlayer" parent="Player"]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("10_vyvit")
|
||||
bus = &"SFX"
|
||||
|
||||
[node name="CritSound" type="AudioStreamPlayer" parent="Player"]
|
||||
unique_name_in_owner = true
|
||||
stream = ExtResource("14_p5cio")
|
||||
|
||||
@@ -24,7 +24,6 @@ public partial class SfxDatabase : Node
|
||||
{SoundEffect.TakeDamage, TakeDamageSound },
|
||||
{SoundEffect.HealVT, HealVTSound },
|
||||
{SoundEffect.IncreaseStat, IncreaseStatSound },
|
||||
{SoundEffect.WeaponSwing, WeaponSwingSound },
|
||||
{SoundEffect.Crit, CritSound },
|
||||
{SoundEffect.PickupItem, PickupItemSound },
|
||||
{SoundEffect.OpenInventory, OpenInventorySound },
|
||||
@@ -42,6 +41,8 @@ public partial class SfxDatabase : Node
|
||||
{SoundEffect.TeleportToExit, TeleportToExitSound},
|
||||
{SoundEffect.AbsorbHPFromAllEnemies, AbsorbHPFromAllEnemiesSound},
|
||||
{SoundEffect.TurnAllEnemiesIntoHealingItems, TurnAllEnemiesIntoHealingItemsSound},
|
||||
{SoundEffect.WeaponQuickSlash, WeaponQuickSlashSound },
|
||||
{SoundEffect.WeaponSlowSlash, WeaponSlowSlashSound },
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,7 +50,8 @@ public partial class SfxDatabase : Node
|
||||
[Node] private AudioStreamPlayer TakeDamageSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer HealVTSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer IncreaseStatSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer WeaponSwingSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer WeaponQuickSlashSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer WeaponSlowSlashSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer CritSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer PickupItemSound { get; set; } = default!;
|
||||
[Node] private AudioStreamPlayer OpenInventorySound { get; set; }
|
||||
@@ -85,7 +87,6 @@ public enum SoundEffect
|
||||
TakeDamage,
|
||||
HealVT,
|
||||
IncreaseStat,
|
||||
WeaponSwing,
|
||||
Crit,
|
||||
PickupItem,
|
||||
OpenInventory,
|
||||
@@ -104,5 +105,7 @@ public enum SoundEffect
|
||||
AbsorbHPFromAllEnemies,
|
||||
SwapHPAndVT,
|
||||
TurnAllEnemiesIntoHealingItems,
|
||||
WeaponQuickSlash,
|
||||
WeaponSlowSlash
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user