Update payroll cap to enhance staffing flexibility and adjust related documentation and tests
ci / server (push) Failing after 10s
ci / client (push) Successful in 14s

- Increased the `MonthlyPayrollCap` from 40,000 to 100,000, allowing for greater hiring capacity and subject assignments.
- Updated relevant documentation to reflect the new payroll cap and its implications for staffing.
- Adjusted tests to validate the new payroll cap and ensure proper functionality in staffing scenarios, including allocation and remaining payroll calculations.
- Enhanced styling in the UI to accommodate the changes in management screens.
This commit is contained in:
Leonid Pershin
2026-08-19 13:09:45 +03:00
parent 25ce26064d
commit 207e7ecdb3
6 changed files with 39 additions and 21 deletions
+27 -1
View File
@@ -63,8 +63,13 @@ body {
justify-content: center;
}
/*
* No cap. A reading column has a sensible maximum width; a management screen does not — it is a
* tree, a table and a timetable grid, and every pixel taken away from them is a pixel of scrolling.
* The menu below keeps its column, because a row of cards centred on a wide display reads better.
*/
.screen.game {
max-width: 1500px;
max-width: none;
}
#status {
@@ -585,6 +590,27 @@ body {
text-transform: uppercase;
}
/*
* Blocks on a card need a line between them, not just a caption: needs, family and the timetable
* ran together into one wall. The rule hangs off the caption rather than a wrapper because not
* every block has one — the timetable is a bare heading plus a grid.
*
* The faint hairlines inside a block (rows of a pair grid) stay lighter than this one on purpose:
* strong line means a new block, faint line means the next row.
*/
.people__card .people__section-title {
margin-top: 14px;
padding-top: 11px;
border-top: 1px solid var(--border);
}
/* The first block sits right under the name, where a divider would only add noise. */
.people__card > .people__card-meta + .people__section > .people__section-title {
margin-top: 0;
padding-top: 0;
border-top: 0;
}
/*
* Name on the left, value on the right, as many columns as the panel is wide. As a bulleted list
* fourteen skills ran the card past the fold with three quarters of the width empty.
+1 -1
View File
@@ -14,7 +14,7 @@
"SavesDirectory": "saves",
"ModsDirectory": "mods",
"SaveIntervalSeconds": 30,
"MonthlyPayrollCap": 40000,
"MonthlyPayrollCap": 100000,
"SchoolWeekDays": 5
}
}
+1 -1
View File
@@ -53,7 +53,7 @@ public sealed class SimulationOptions
/// Monthly payroll the player may commit. Hire and subject assignment that would exceed it
/// are rejected immediately; money itself does not move.
/// </summary>
public float MonthlyPayrollCap { get; set; } = 40_000f;
public float MonthlyPayrollCap { get; set; } = 100_000f;
/// <summary>
/// Working days from Monday. Five is MonFri; six adds Saturday; seven is every day.