Fix spawn heights and debug menu enemy spawning
This commit is contained in:
@@ -15,4 +15,6 @@ public interface IAttackComponent : IEntityComponent
|
||||
public void SetAttack(int attack);
|
||||
|
||||
public void RaiseMaximumAttack(int raiseAmount);
|
||||
|
||||
public void LowerMaximumAttack(int lowerAmount);
|
||||
}
|
||||
|
||||
@@ -15,4 +15,6 @@ public interface IDefenseComponent : IEntityComponent
|
||||
public void SetDefense(int attack);
|
||||
|
||||
public void RaiseMaximumDefense(int raiseAmount);
|
||||
|
||||
public void LowerMaximumDefense(int lowerAmount);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Chickensoft.Collections;
|
||||
using Godot;
|
||||
using Zennysoft.Ma.Adapter.Entity;
|
||||
|
||||
namespace Zennysoft.Ma.Adapter;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user