Basic sigil system implementation
This commit is contained in:
@@ -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"
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user