server-master/srcs/WingsAPI.Game/Act4/Event/Act4FactionPointsIncreaseEvent.cs
2026-02-10 18:21:30 +01:00

20 lines
No EOL
615 B
C#

using WingsEmu.Game._packetHandling;
using WingsEmu.Packets.Enums;
namespace WingsEmu.Game.Act4.Event;
public class Act4FactionPointsIncreaseEvent : PlayerEvent
{
public Act4FactionPointsIncreaseEvent(int pointsToAdd) => PointsToAdd = pointsToAdd;
public Act4FactionPointsIncreaseEvent(FactionType factionType, int pointsToAdd)
{
PreferedFactionType = factionType;
PointsToAdd = pointsToAdd;
}
private FactionType? PreferedFactionType { get; }
public int PointsToAdd { get; }
public FactionType FactionType => PreferedFactionType ?? Sender.PlayerEntity.Faction;
}