neon-sprawl/server/NeonSprawl.Server/Game/Gigs/CombatDefeatGigXpGrant.cs

20 lines
787 B
C#

namespace NeonSprawl.Server.Game.Gigs;
/// <summary>
/// NEO-44: combat encounter defeat grants gig XP on the prototype main gig only — not E2.M2 skill XP.
/// Outcome is ignored on the cast accept path (best-effort apply); inspect store/GET when verification matters.
/// </summary>
public static class CombatDefeatGigXpGrant
{
/// <summary>Applies one combat-defeat grant to the prototype main gig when <paramref name="playerId"/> is writable.</summary>
public static void GrantOnCombatDefeat(string playerId, IPlayerGigProgressionStore gigStore)
{
_ = gigStore.TryApplyXpDelta(
playerId,
GigProgressionConstants.PrototypeMainGigId,
GigProgressionConstants.CombatDefeatXpAmount,
out _,
out _);
}
}