Elemental resistance calculation changes

This commit is contained in:
2026-01-13 21:25:09 -08:00
parent 0591dccc31
commit 1e97eb9ede
8 changed files with 22 additions and 44 deletions

View File

@@ -1,6 +1,7 @@
using Chickensoft.AutoInject;
using Chickensoft.Introspection;
using Godot;
using Godot.Collections;
using System;
using System.Collections.Immutable;
using System.Linq;
@@ -45,6 +46,18 @@ public abstract partial class Enemy : CharacterBody3D, IEnemy, IProvide<IEnemyLo
[Export] public int ExpGiven { get; set; } = 10;
[Export] public double AeolicResistance { get; set; }
[Export] public double HydricResistance { get; set; }
[Export] public double IgenousResistance { get; set; }
[Export] public double FerrumResistance { get; set; }
[Export] public double TelluricResistance { get; set; }
public ElementalResistanceSet ElementalResistanceSet => new ElementalResistanceSet(AeolicResistance, HydricResistance, IgenousResistance, FerrumResistance, TelluricResistance);
[Node] private AudioStreamPlayer3D _absorbSFX { get; set; } = default!;
[Node] private AudioStreamPlayer3D _hitSFX { get; set; } = default!;
[Node] private AudioStreamPlayer3D _morphSFX { get; set; } = default!;