dev foxhunt

This commit is contained in:
beo3000 2026-01-05 15:27:51 +01:00
parent 187a7e14c8
commit 8987fc34b5
2 changed files with 15 additions and 1 deletions

View File

@ -88,6 +88,19 @@ namespace Koogle.Application.Games.FoxHunt
// fox has been caught
isLastHunter = true;
playerStates[foxId].FoxCaught = true;
// Calculate penalty (point difference the hunters achieved)
int pointDifference = playerStates[foxId].PinCountHunters - playerStates[foxId].PinCountFox;
if (pointDifference > 0)
{
triggers.Add(new TriggerEvent
{
TriggerType = ExpenseTriggerType.ExpensePoint.ToString(),
PersonId = foxId,
Multiplier = pointDifference
});
}
}
else
{
@ -122,6 +135,7 @@ namespace Koogle.Application.Games.FoxHunt
// Update model
model = model with
{
PlayerStates = playerStates,
FoxIndex = model.FoxIndex,
FoxTurn = model.FoxTurn,
FoxTurnsRemaining = model.FoxTurnsRemaining,

View File

@ -164,7 +164,7 @@
{
<MudPaper Class="pa-3" Elevation="0" Style="background-color: var(--mud-palette-background-grey);">
<MudText Typo="Typo.body2" Color="Color.Secondary">
Überlebe als als Fuchs, mit dem größten Vorsprung!
Überlebe als Fuchs, mit dem größten Vorsprung!
</MudText>
</MudPaper>
}