Add skill upgrade system and refactor skill components for enhanced functionality; update resource paths and configurations
This commit is contained in:
@@ -8,11 +8,12 @@ public partial class SkillData : Resource
|
||||
{
|
||||
[Export] public string Name { get; set; } = "New Skill";
|
||||
[Export] public string Description { get; set; } = "New Skill";
|
||||
[Export] public int Cost { get; set; } = 0;
|
||||
[Export] public Texture2D Icon { get; set; }
|
||||
[Export] public bool IsActive { get; set; } = false;
|
||||
[Export] public int Level { get; set; } = 1;
|
||||
[Export] public int MaxLevel { get; set; } = 1;
|
||||
[Export] public SkillType Type { get; set; } = SkillType.Throw;
|
||||
[Export] public PackedScene Node { get; set; }
|
||||
[Export] public Array<SkillUpgrade> Upgrades { get; set; } = [];
|
||||
|
||||
public int MaxLevel => Upgrades.Count;
|
||||
}
|
12
scripts/Resources/SkillUpgrade.cs
Normal file
12
scripts/Resources/SkillUpgrade.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using Godot;
|
||||
using Godot.Collections;
|
||||
|
||||
namespace Mr.BrickAdventures.scripts.Resources;
|
||||
|
||||
[GlobalClass]
|
||||
public partial class SkillUpgrade : Resource
|
||||
{
|
||||
[Export] public int Cost { get; set; } = 50;
|
||||
[Export(PropertyHint.MultilineText)] public string Description { get; set; } = "Upgrade Description";
|
||||
[Export] public Dictionary<string, Variant> Properties { get; set; } = new();
|
||||
}
|
1
scripts/Resources/SkillUpgrade.cs.uid
Normal file
1
scripts/Resources/SkillUpgrade.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dwb0e05pewcsn
|
Reference in New Issue
Block a user