mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 09:37:50 -05:00
feat(rules): the game's rules window shows data/rules.txt
The rules were written into the client, so changing them meant a new build. GET /rules.txt reads data/rules.txt on every ask (no restart needed; data/ is what prod keeps between deploys and lets the server write), making it with "Example" when there is none. The rules window fetches it each time it opens: a line starting "# " is a heading in the old rules' heading style, the rest is shown as it is written (escaped, never HTML). 64 KB at most. buildVersion 75. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
0c3bfd97b3
commit
da9f2fd5a6
4 files changed
+73
-4
No files matched your search
@@ -155,7 +155,7 @@ module.exports = {
|
||||
// 49 and 50: its link to a colour picker.
|
||||
// 61: the Owner, Moderator and Verified name tag badges seen by everyone.
|
||||
// 62: "Custom pictures" in the settings menu, to hide players' item pictures.
|
||||
buildVersion: env.AJ_BUILD_VERSION || "74",
|
||||
buildVersion: env.AJ_BUILD_VERSION || "75",
|
||||
// what the official CDN is asked for; not ours to change.
|
||||
upstreamBuildVersion: "3",
|
||||
|
||||
|
||||
Reference in new issue
Block a user