init
This commit is contained in:
BIN
items/item_effects/hp-up.wav
Normal file
BIN
items/item_effects/hp-up.wav
Normal file
Binary file not shown.
24
items/item_effects/hp-up.wav.import
Normal file
24
items/item_effects/hp-up.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://unkdyg28yfhq"
|
||||
path="res://.godot/imported/hp-up.wav-2660d0c83d6b7930d0bf14b33024a9e0.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://items/item_effects/hp-up.wav"
|
||||
dest_files=["res://.godot/imported/hp-up.wav-2660d0c83d6b7930d0bf14b33024a9e0.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
6
items/item_effects/item_effect.gd
Normal file
6
items/item_effects/item_effect.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
class_name ItemEffect extends Resource
|
||||
|
||||
@export var use_description := ""
|
||||
|
||||
func use() -> void:
|
||||
pass
|
||||
1
items/item_effects/item_effect.gd.uid
Normal file
1
items/item_effects/item_effect.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://ccj66fmxndpv
|
||||
8
items/item_effects/item_effect_heal.gd
Normal file
8
items/item_effects/item_effect_heal.gd
Normal file
@@ -0,0 +1,8 @@
|
||||
class_name ItemEffectHeal extends ItemEffect
|
||||
|
||||
@export var heal_amount := 1
|
||||
@export var audio: AudioStream
|
||||
|
||||
func use() -> void:
|
||||
PlayerManager.player.update_hp(heal_amount)
|
||||
PauseMenu.play_audio(audio)
|
||||
1
items/item_effects/item_effect_heal.gd.uid
Normal file
1
items/item_effects/item_effect_heal.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://cbwvdfpoms6fb
|
||||
Reference in New Issue
Block a user