added player death and custom resources
This commit is contained in:
1 parent
3a76ac8145
commit
5050fa8cd8
13 files changed
+277
-21
No files matched your search
@@ -0,0 +1,8 @@
|
||||
class_name CharacterStats extends Resource
|
||||
|
||||
@export var health:int = 100;
|
||||
@export var max_health:int = 120;
|
||||
@export var starting_health:int = 100;
|
||||
|
||||
@export var melee_damage:int = 10;
|
||||
@export var range_damage:int = 5;
|
||||
@@ -0,0 +1 @@
|
||||
uid://v5se2t1jjaat
|
||||
@@ -0,0 +1,10 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" format=3 uid="uid://ffycoj1dt84h"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://v5se2t1jjaat" path="res://scripts/resources/character_stats.gd" id="1_r32g3"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_r32g3")
|
||||
health = 30
|
||||
max_health = 50
|
||||
starting_health = 30
|
||||
metadata/_custom_type_script = "uid://v5se2t1jjaat"
|
||||
@@ -0,0 +1,11 @@
|
||||
[gd_resource type="Resource" script_class="CharacterStats" format=3 uid="uid://cxkrcxxmgtyyr"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://v5se2t1jjaat" path="res://scripts/resources/character_stats.gd" id="1_l0etv"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_l0etv")
|
||||
health = 10
|
||||
max_health = 15
|
||||
starting_health = 10
|
||||
range_damage = 0
|
||||
metadata/_custom_type_script = "uid://v5se2t1jjaat"
|
||||
Reference in new issue
Block a user