Fix spawn heights and debug menu enemy spawning

This commit is contained in:
2026-02-17 12:27:26 -08:00
parent 37ad0048d7
commit 7393662aa8
22 changed files with 121 additions and 32 deletions

View File

@@ -15,4 +15,6 @@ public interface IAttackComponent : IEntityComponent
public void SetAttack(int attack);
public void RaiseMaximumAttack(int raiseAmount);
public void LowerMaximumAttack(int lowerAmount);
}

View File

@@ -15,4 +15,6 @@ public interface IDefenseComponent : IEntityComponent
public void SetDefense(int attack);
public void RaiseMaximumDefense(int raiseAmount);
public void LowerMaximumDefense(int lowerAmount);
}

View File

@@ -1,5 +1,4 @@
using Chickensoft.Collections;
using Godot;
using Zennysoft.Ma.Adapter.Entity;
namespace Zennysoft.Ma.Adapter;

View File

@@ -18,5 +18,7 @@ public interface IVTComponent : IEntityComponent
public void RaiseMaximumVT(int raiseAmount, bool restoreVT = true);
public void LowerMaximumVT(int lowerAmount);
public void SetMaximumVT(int vt);
}

View File

@@ -1,4 +1,5 @@
using Zennysoft.Ma.Adapter;
using Zennysoft.Ma.Adapter.Entity;
public class Augment
{
@@ -94,6 +95,33 @@ public class LowerEXPRateAugment : IAugmentType
public void Remove() => _player.ExperiencePointsComponent.ModifyExpGainRate(_player.ExperiencePointsComponent.ExpGainRate.Value + 0.25f);
}
public class BoostStatsAugment : IAugmentType
{
private readonly IPlayer _player;
private readonly int _bonusLuck;
private readonly int _bonusHp;
private readonly int _bonusVt;
public BoostStatsAugment(IPlayer player, int bonusLuck, int bonusHp, int bonusVt)
{
_player = player;
_bonusLuck = bonusLuck;
_bonusHp = bonusHp;
_bonusVt = bonusVt;
}
public void Apply()
{
_player.HealthComponent.RaiseMaximumHP(_bonusHp);
_player.VTComponent.RaiseMaximumVT(_bonusVt);
_player.LuckComponent.IncreaseLuck(_bonusLuck);
}
public void Remove()
{
}
}
public class LowerHPRecoveryAugment : IAugmentType
{
private readonly IPlayer _player;