Move files and folders to new repo format to enable multi-project format

This commit is contained in:
2025-03-06 22:07:25 -08:00
parent 12cbb82ac9
commit a09f6ec5a5
3973 changed files with 1781 additions and 2938 deletions

View File

@@ -0,0 +1,36 @@
namespace Zennysoft.Game.Ma;
public interface IHasPrimaryAttack
{
public ElementType PrimaryAttackElementalType { set; }
public double PrimaryAttackElementalDamageBonus { set; }
public void PrimaryAttack();
}
public interface IHasSecondaryAttack
{
public ElementType SecondaryAttackElementalType { set; }
public double SecondaryAttackElementalDamageBonus { set; }
public void SecondaryAttack();
}
public interface IHasTertiaryAttack
{
public ElementType TertiaryAttackElementalType { set; }
public double TertiaryAttackElementalDamageBonus { set; }
public void TertiaryAttack();
}
public interface IHasPrimarySkill
{
public void PrimarySkill();
}
public interface IHasRangedAttack
{
public void RangedAttack();
}

View File

@@ -0,0 +1 @@
uid://dwis2q4bq3mhn

View File

@@ -0,0 +1,15 @@
using Godot;
namespace Zennysoft.Game.Ma;
public static class BattleExtensions
{
public static bool IsCriticalHit(double luckStat)
{
var rng = new RandomNumberGenerator();
rng.Randomize();
var roll = rng.Randf();
var isCriticalHit = roll <= luckStat;
return isCriticalHit;
}
}

View File

@@ -0,0 +1 @@
uid://bv7j01sfam7l5

View File

@@ -0,0 +1 @@
uid://dkq4omw5hbrqq

View File

@@ -0,0 +1,20 @@
using Chickensoft.Collections;
namespace Zennysoft.Game.Ma;
public interface ICharacterStats
{
public IAutoProp<double> CurrentHP { get; }
public IAutoProp<double> MaximumHP { get; }
public IAutoProp<int> CurrentAttack { get; }
public IAutoProp<int> CurrentDefense { get; }
public IAutoProp<int> MaxAttack { get; }
public IAutoProp<int> MaxDefense { get; }
public IAutoProp<double> Luck { get; }
}

View File

@@ -0,0 +1 @@
uid://bj6b04pxxpktu