Phase 8: StartingRandomTilePct rule — full-stack implementation
- GameRules: add StartingRandomTilePct (int, 0–100, default 0)
- Board.Create(): accept startingRandomTilePct param; each tile
independently seeded from {Lake, Hill, Forest, Field} on Base1
- GameEngine: pass rules.StartingRandomTilePct to Board.Create()
- GameMessages: add StartingRandomTilePct to CustomRulesOverride + CustomRulesDto
- CustomLobby entity: add StartingRandomTilePctOverride column
- GameRuleSet entity: add StartingRandomTilePct column
- Migration AddStartingTileRule: new columns on custom_lobbies + game_rule_sets
- All 6 handlers wired: Create, LobbyReady, UpdateRules, AcceptSuggestion,
ListCustomLobbies, ListActiveLobbies
- Client lobby_room_screen.gd: "Starting Tile Affinity %" SpinBox (0–100)
in BOARD section; displayed in rules label and suggestion summary
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -116,7 +116,8 @@ public sealed record CustomRulesOverride(
|
||||
int? TurnTimerSeconds = null,
|
||||
int? TimeLimitMinutes = null,
|
||||
int? TurnLimit = null,
|
||||
int? MpBuff = null);
|
||||
int? MpBuff = null,
|
||||
int? StartingRandomTilePct = null);
|
||||
|
||||
/// <summary>Join an open custom lobby with the specified deck.</summary>
|
||||
public sealed record JoinCustomLobbyRequest(Guid LobbyId, Guid DeckId, string? Password = null);
|
||||
@@ -519,6 +520,7 @@ public sealed record CustomRulesDto(
|
||||
int TimeLimitMinutes,
|
||||
int TurnLimit,
|
||||
int MpBuff,
|
||||
int StartingRandomTilePct,
|
||||
bool HasPassword);
|
||||
|
||||
/// <summary>Client-facing lobby preset summary.</summary>
|
||||
|
||||
Reference in New Issue
Block a user