Basic sigil system implementation

This commit is contained in:
2026-05-02 00:35:49 -07:00
parent 9e7678ce2a
commit 4460fd28f5
13 changed files with 215 additions and 45 deletions
@@ -0,0 +1,14 @@
[gd_resource type="Resource" script_class="Sigil" load_steps=2 format=3 uid="uid://bxuswp8ril05h"]
[ext_resource type="Script" uid="uid://cp5pnpqbde161" path="res://src/sigil/Sigil.cs" id="1_ib6yo"]
[resource]
script = ExtResource("1_ib6yo")
AttackModifier = 1.25
DefenseModifier = 0.75
HealthModifier = 0
VTModifier = 0
LuckModifier = 0.0
ElementalModifier = 0.0
ElementType = 4
metadata/_custom_type_script = "uid://cp5pnpqbde161"
+39
View File
@@ -0,0 +1,39 @@
using Godot;
using Zennysoft.Ma;
using Zennysoft.Ma.Adapter;
[GlobalClass]
public partial class Sigil : Resource, ISigil
{
[Export]
public double AttackModifier { get; set; } = 1f;
[Export]
public double DefenseModifier { get; set; } = 1f;
[Export]
public int HealthModifier { get; set; }
[Export]
public int VTModifier { get; set; }
[Export]
public double LuckModifier { get; set; }
[Export]
public double ElementalModifier { get; set; } = 1;
[Export]
public ElementType ElementType { get; set; } = ElementType.None;
public void Reset()
{
AttackModifier = 1;
DefenseModifier = 1;
HealthModifier = 0;
VTModifier = 0;
LuckModifier = 0;
ElementalModifier = 1;
ElementType = ElementType.None;
}
}
+1
View File
@@ -0,0 +1 @@
uid://cp5pnpqbde161
@@ -0,0 +1,11 @@
using Zennysoft.Ma;
public class SigilComponent : ISigilComponent
{
public ISigil Sigil { get; set; }
public void Reset()
{
Sigil = new Sigil();
}
}
@@ -0,0 +1 @@
uid://dr6mlubpgujk5