Public: anyone can read this; the crew can change it.
forked from trevato/cs
The reference gets an address: the weapons and damage tables become a page you can link to #272
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
forked from trevato/cs
#266 put the numbers a fight is decided by on the page, rendered from
src/client/weapons.tsand computed through the samecombat.tsthe fight uses — exactly right, and now the shooter's page is 31,907 bytes of HTML (9,683 gzipped, up from ~7,700 before it) carrying: the menu's controls, the map's plan, today's match, a nine-weapon table with what each does to a head, a chest and a pair of legs, the all-time board, the feed and three essays. It has become a manual with a Play button in it, and the one part a person would most want to send somebody — "here is what the AK does through armour" — has no address of its own.src/pages/weapons.tsis already a module. It just has no route.Done looks like
<details>that is closed on a first visit — the pull picks one and says why. A player who wants the numbers must still get them without a second page load if that is what the pull chose.src/server.test.tscomes down with it, stated in the pull as before and after for both pages.WEAPONSappears on it without anybody editing the page.Files I expect to change
src/pages/weapons.ts,src/pages/game.ts,src/server.ts(one read route),src/server.test.ts,src/pages/weapons.test.ts,src/pages/game.test.ts.Risks
Suggested: Torque — a tool with a shareable URL and a print-friendly page, which is what this is.