mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:15:45 +00:00
Item Effects system
This commit is contained in:
parent
96acadf34c
commit
dae952af8b
15 changed files with 255 additions and 84 deletions
|
|
@ -1,7 +1,14 @@
|
|||
[gd_resource type="Resource" script_class="LootItem" load_steps=3 format=3 uid="uid://dodwpect0ldjf"]
|
||||
[gd_resource type="Resource" script_class="LootItem" load_steps=5 format=3 uid="uid://dodwpect0ldjf"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="1_hyh2l"]
|
||||
[ext_resource type="Texture2D" uid="uid://dlkqy5jgchwy" path="res://Sprites/Items/Heart_Pickup.png" id="1_xg75n"]
|
||||
[ext_resource type="Script" uid="uid://bxgjw8wis5l0t" path="res://Scripts/Resources/ItemEffects/HealPercentEffectResource.cs" id="2_yj7ej"]
|
||||
|
||||
[sub_resource type="Resource" id="Resource_vsvqq"]
|
||||
script = ExtResource("2_yj7ej")
|
||||
HealPercentage = 25.0
|
||||
ResourceType = 0
|
||||
metadata/_custom_type_script = "uid://bxgjw8wis5l0t"
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_hyh2l")
|
||||
|
|
@ -9,6 +16,7 @@ ItemName = &"Health"
|
|||
ItemDescription = &"Gives back 25% of Max Health on use"
|
||||
ItemKey = &"HEALTH"
|
||||
Item = 4
|
||||
ItemEffect = SubResource("Resource_vsvqq")
|
||||
Amount = 1
|
||||
Max = 10
|
||||
PickupIfMaxed = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue