Move files and folders to new repo format to enable multi-project format
This commit is contained in:
36
Zennysoft.Game.Ma/src/system/IHasPrimaryAttack.cs
Normal file
36
Zennysoft.Game.Ma/src/system/IHasPrimaryAttack.cs
Normal 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();
|
||||
}
|
||||
1
Zennysoft.Game.Ma/src/system/IHasPrimaryAttack.cs.uid
Normal file
1
Zennysoft.Game.Ma/src/system/IHasPrimaryAttack.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dwis2q4bq3mhn
|
||||
15
Zennysoft.Game.Ma/src/system/stats/BattleExtensions.cs
Normal file
15
Zennysoft.Game.Ma/src/system/stats/BattleExtensions.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://bv7j01sfam7l5
|
||||
@@ -0,0 +1 @@
|
||||
uid://dkq4omw5hbrqq
|
||||
20
Zennysoft.Game.Ma/src/system/stats/ICharacterStats.cs
Normal file
20
Zennysoft.Game.Ma/src/system/stats/ICharacterStats.cs
Normal 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; }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
uid://bj6b04pxxpktu
|
||||
Reference in New Issue
Block a user