diff --git a/404.html b/404.html index 5985116..df7336c 100644 --- a/404.html +++ b/404.html @@ -8,4 +8,4 @@ -

Page not found

That page does not exist. Go to the home page, or pick a tool: Crafting, Farming or Loadouts.

+

Page not found

That page does not exist. Go to the home page, or pick a tool: Crafting, Farming or Loadouts.

diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 03c58f5..6eafa53 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -210,6 +210,14 @@ If you add, rename or remove a file the pages load, update the `FILES` list in ` The button in the top bar reads `changelog.json`. Add a new object at the top of `entries` (newest first) with a `date` (`YYYY-MM-DD`), a short `title` and a `changes` list in plain language. Do it in the same pull request as the change. The small dot on the button appears for visitors whenever the top entry is new to them. -## Updating the suggested market prices +## Adding a week of market prices -`assets/market.js` holds a dated snapshot of material prices (groschen) taken from the Auction houses page of the KCDRoleplay account site (the 7-day average sale price). That page needs a game login, so the file is updated by hand: change the numbers under `p` (the keys are the material ids used in `assets/recipes.js`) and set `date`. Prices a visitor types on the Prices page always override these, and a tick box there turns the suggestions off. Groups for the Prices page are set at the top of `assets/pricing.js`; a new raw material lands in “Other” until you add its id to a group. +Once a week, copy the whole **Prices** table from the Auction houses page of the KCDRoleplay account site (it needs a game login) into a text file, then run: + +``` +node scripts/add-market-week.js week.txt 2026-12-01 +``` + +This stores the week in `assets/market-history.js` (the Market page's data; running it again for the same date replaces that week) and, when it is the newest week, refreshes the suggested prices in `assets/market.js` from the 7-day averages. It prints every price that changed so you can check them before committing. + +Odd names on the auction page (another language, for example `cibule` for onions) are fixed in the `alias` list at the top of `assets/market-history.js`; names that do not match a site material by name alone go in its `ids` list. Prices a visitor types on the Prices page always override the suggestions, and a tick box there turns them off. diff --git a/README.md b/README.md index caf4c32..4af9213 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,14 @@ Everything runs in your browser. There is no account and nothing is sent anywher - Show only the prices you set, the ones still missing, or what your current order needs. - Save named price sets (for example one per town), and share or bring in price lists as plain text. +## Market + +![Market page](docs/screenshots/market.png) + +- A weekly report from the Kuttenberg auction houses: pieces sold and value traded, the biggest risers and fallers, bargains, goods running low, and observations written from the numbers (including how the week's prices changed recipe costs). +- Every good on the market below it: search, filter by group or by signal, sort, and click a good for its price over the weeks and what is happening to it. +- Each week's auction house table is kept in `assets/market-history.js`, so the trends grow with every update. + ## Everywhere ![The guided tour highlighting a feature](docs/screenshots/tour.png) @@ -91,11 +99,13 @@ crafting.html crafting cost calculator farming.html farming efficiency loadouts.html loadout builder prices.html the Prices page: every material price in one place +market.html the Market page: weekly report and every good on the auction houses 404.html page not found assets/site.css the look shared by every page: colours, top bar, title bar, left rail (edit styles here) assets/site.js shared behaviour: light/dark, backup and restore, loading feedback, offline copy and updates assets/recipes.js every crafting recipe (edit recipes here only) assets/market.js suggested material prices from the auction houses (dated snapshot) +assets/market-history.js every weekly auction house snapshot (the Market page reads it) assets/pricing.js shared price logic: groups, your price vs market, worked-out parts (used by Prices, Farming and the price line) assets/categories.js how the crafting page groups pieces into types (Swords, Helmets, Furniture...) assets/tour.js the guided tour (one list of steps, edit the text there) @@ -103,7 +113,7 @@ changelog.json the list shown by the What's new button (add new entries at t sw.js saves the site in the browser for fast repeat visits and offline use assets/social.png picture shown when a link is shared in Discord or chat robots.txt, sitemap.xml help search engines find the pages -scripts/ recipe checker, site checker and wiki sync +scripts/ recipe checker, site checker, wiki sync and add-market-week docs/screenshots/ images used in this README .github/ workflows, issue forms and pull request template CONTRIBUTING.md how to fix a recipe diff --git a/assets/market-history.js b/assets/market-history.js new file mode 100644 index 0000000..ff8bc20 --- /dev/null +++ b/assets/market-history.js @@ -0,0 +1,6 @@ +// Weekly snapshots of the KCDRoleplay auction houses (Kuttenberg), oldest first. Used by the Market page. +// Add a week with: node scripts/add-market-week.js (see CONTRIBUTING.md) +// Each good: [cheapest now, 7-day average sale price, sold in 7 days, on sale, houses, wanted at, instant sale] +// alias: other-language or odd names on the auction page -> the name used here +// ids: auction names whose site material is not found by name alone +const MARKET_HISTORY={"land":"Kuttenberg","alias":{"Aal":"eel","Karpfen":"carp","cibule":"onions","mrkev":"carrots","pepitas de plata pura":"pure silver nuggets","найденные подковы":"found horseshoes"},"ids":{"hare":"hare","Egg":"egg","hemp fibre":"hempf"},"weeks":[{"date":"2026-11-09","g":{"charcoal":[2,5,548,461,9,8,1],"cobwebs":[2,3,208,798,15,null,1],"logs":[5,6,4700,12176,13,null,3],"owl feathers":[5,9,935,4095,15,null,3],"pine resin":[8,10,2115,1120,13,8,5],"coal":[2,3,6406,48847,15,null,1],"copper ore":[6,9,3875,6690,14,null,4],"gold ore":[13,26,1131,957,13,28,8],"iron ore":[4,7,7061,11098,13,5,3],"saltpetre":[3,4,193,405,14,null,3],"silver ore":[45,59,2262,423,14,37,25],"sulphur":[2,4,233,374,14,null,2],"belladonna":[8,12,154,140,8,null,6],"chamomile":[3,4,175,699,14,null,3],"elderberry leaves":[3,4,7,31,8,null,1],"ginger":[22,25,157,43,6,null,17],"mandrake root":[2,5,98,1414,14,null,1],"nettles":[3,4,712,116,10,4,2],"sage":[3,5,167,1019,14,null,1],"carp":[5,6,148,1582,13,null,3],"eel":[6,8,78,397,13,null,2],"pike":[9,8,108,387,13,null,8],"roach":[2,3,304,2111,12,null,2],"antlers":[15,18,799,775,15,null,7],"boar meat":[6,6,1228,1776,15,null,4],"boar tusks":[9,11,632,747,15,null,5],"hare":[2,4,637,1091,15,null,2],"hides":[10,15,6736,5730,13,12,5],"venison":[2,3,2324,5580,15,2,1],"wolf pelts":[20,26,759,63,13,25,13],"barley malt":[2,4,645,448,12,null,null],"beeswax":[4,6,6,253,10,null,1],"grapes":[3,5,355,1737,13,null,2],"honey":[6,8,857,1816,15,5,5],"hops":[3,6,536,3040,12,6,2],"plums":[4,5,181,705,10,null,3],"barley":[8,9,276,1508,7,null,6],"barley seed":[4,5,13,44,8,null,1],"Beef":[4,4,1,16,1,1,null],"cabbage":[6,7,122,657,9,null,2],"Cabbage":[1,4,82,212,7,null,null],"cabbage seed":[2,2,10,14,4,null,1],"Carrot":[1,2,128,125,11,null,null],"carrot seed":[2,2,6,26,4,null,1],"carrots":[4,5,59,1107,10,null,3],"chamomile seed":[2,2,1,8,3,null,1],"Chicken":[2,3,319,16,3,1,null],"Egg":[5,6,47,131,5,2,null],"flax":[3,7,123,1255,9,7,2],"flax seed":[2,2,13,25,6,null,1],"hay":[2,5,50,882,7,null,1],"hay seed":[2,2,2,4,3,null,1],"hemp fibre":[4,4,159,1111,10,null,4],"hemp seed":[2,2,10,9,4,null,1],"hop cuttings":[2,4,5,40,6,null,1],"Milk":[3,11,20,31,6,null,null],"Onion":[2,4,238,111,8,null,null],"onion seed":[1,null,0,16,5,null,1],"onions":[6,7,95,997,10,null,5],"plum saplings":[2,4,2,4,2,null,3],"Pork":[12,11,9,16,2,1,null],"sage seed":[2,2,5,8,4,null,1],"vine cuttings":[4,4,1,26,7,null,1],"an old boot":[null,null,0,0,0,null,null],"animal fat":[null,null,0,0,0,null,null],"bowstrings":[3,10,134,299,12,5,null],"Broken axe":[null,null,0,0,0,null,null],"broken crankshafts":[7,null,0,2,1,null,null],"Broken Durandal":[null,null,0,0,0,null,null],"Broken Excalibur":[null,null,0,0,0,null,null],"Broken guild longsword":[null,null,0,0,0,null,null],"charcoal water":[5,4,7,78,4,null,null],"Coloured gold":[null,null,0,0,0,80,null],"commemorative coins":[22,16,5,11,1,null,null],"Copper":[null,null,0,0,0,7,null],"Dragon claw":[null,1,1,0,0,null,null],"ergot rye":[null,null,0,0,0,null,null],"field kits":[null,null,0,0,0,null,null],"fine silver":[48,67,231,558,6,null,null],"fly agaric":[null,null,0,0,0,null,null],"found horseshoes":[1,2,7,49,5,null,null],"ghostly horseshoes":[45,45,23,4,1,null,null],"hafts":[12,12,106,54,2,1,null],"hanged man's nooses":[null,null,0,0,0,null,null],"hemp":[null,null,0,0,0,null,null],"henbane":[null,null,0,0,0,null,null],"holy nails":[2,1,5,111,6,null,null],"knitbone poultices":[10,null,0,26,1,null,null],"leather":[7,12,1151,745,7,7,null],"linen":[null,13,26,0,0,5,null],"linen strips":[2,4,5,281,6,null,null],"lutes":[45,201,11,1,1,1,null],"Magdalena's broken axe":[null,null,0,0,0,null,null],"opium poppy":[null,null,0,0,0,null,null],"padding":[7,12,761,1395,10,10,null],"pavises":[null,null,0,0,0,null,null],"Pig skin":[null,null,0,0,0,5,null],"splints":[null,null,0,0,0,null,null],"Steel":[null,null,0,0,0,25,null],"steel":[null,null,0,0,0,11,null],"suture kits":[20,null,0,174,1,null,null],"toads":[null,null,0,0,0,null,null],"Weapon stub":[null,null,0,0,0,null,null],"wolfsbane":[null,null,0,0,0,null,null],"amber":[100,89,170,5,4,100,56],"ancient mandrake":[35,40,308,210,13,null,45],"ancient seeds":[68,81,39,5,4,null,34],"ancient yew staves":[66,73,201,2,2,250,36],"meteoric iron":[2800,2230,172,9,5,2000,196],"oak heartwood":[36,42,348,23,7,50,22],"pure silver nuggets":[882,673,1100,116,12,650,25],"river pearls":[100,316,272,34,6,220,45],"rock crystals":[9,13,390,340,14,null,4],"royal antlers":[60,71,136,4,4,80,42],"white wolf pelts":[null,707,29,0,0,1000,50]}},{"date":"2026-11-16","g":{"charcoal":[2,3,472,1564,12,null,1],"cobwebs":[1,3,159,1270,15,null,1],"logs":[5,6,3415,6820,13,5,3],"owl feathers":[4,8,655,2483,14,7,3],"pine resin":[7,9,1240,1968,12,null,5],"coal":[2,2,5239,35614,14,2,1],"copper ore":[6,8,2604,3680,14,8,5],"gold ore":[15,19,773,1087,14,9,2],"iron ore":[5,6,4415,6370,13,5,3],"saltpetre":[8,6,229,175,13,null,5],"silver ore":[40,50,1413,435,12,55,25],"sulphur":[6,6,199,254,13,null,3],"belladonna":[7,11,72,112,9,null,6],"chamomile":[3,4,142,436,14,null,1],"elderberry leaves":[4,4,15,7,4,null,3],"ginger":[26,26,79,30,5,23,17],"mandrake root":[1,6,40,1166,13,null,1],"Mint":[null,null,0,0,0,4,2],"nettles":[3,4,400,133,13,null,2],"sage":[3,4,166,1202,12,null,1],"eel":[7,8,90,262,13,null,6],"carp":[4,6,116,274,9,null,5],"pike":[9,11,105,312,12,null,7],"roach":[2,3,138,760,11,null,2],"antlers":[10,15,536,387,14,9,11],"boar meat":[5,6,707,1438,14,6,2],"boar tusks":[8,11,412,483,15,6,4],"hare":[2,4,344,881,14,null,2],"hides":[13,14,4579,4967,14,10,5],"venison":[3,4,1503,8540,15,2,1],"wolf pelts":[22,26,646,65,9,19,13],"barley malt":[2,4,382,306,7,1,null],"beeswax":[5,4,6,282,5,null,3],"grapes":[6,5,270,463,11,null,3],"honey":[7,9,598,1482,14,null,5],"hops":[2,5,333,557,10,null,3],"plums":[3,5,114,616,7,null,3],"barley":[7,9,145,743,5,null,6],"barley seed":[4,4,4,21,6,null,1],"Beef":[54,3,3,16,1,null,null],"cabbage":[6,8,57,825,7,null,1],"Cabbage":[1,4,140,256,4,null,null],"cabbage seed":[2,2,4,6,2,null,1],"Carrot":[1,2,76,22,10,null,null],"carrot seed":[null,2,4,0,0,null,1],"carrots":[5,6,37,235,5,null,2],"chamomile seed":[2,null,0,8,2,null,1],"Chicken":[1,2,122,9,2,1,null],"Egg":[3,5,39,14,2,null,null],"flax":[5,7,125,620,8,null,3],"flax seed":[2,2,4,7,2,null,1],"hay":[2,6,39,2334,7,null,1],"hay seed":[2,null,0,4,2,null,1],"hemp fibre":[4,5,59,1444,4,null,1],"hemp seed":[2,2,4,7,2,null,1],"hop cuttings":[4,4,4,6,3,null,2],"Milk":[12,14,28,9,3,null,null],"Onion":[2,3,188,40,9,null,null],"onion seed":[2,2,8,8,2,null,1],"onions":[6,8,59,835,8,null,1],"plum saplings":[3,4,1,5,3,null,2],"Pork":[null,7,6,0,0,null,null],"sage seed":[2,2,3,5,2,null,1],"vine cuttings":[4,4,1,20,3,null,1],"an old boot":[null,null,0,0,0,null,null],"animal fat":[null,null,0,0,0,null,null],"bowstrings":[3,10,61,92,7,null,null],"Broken axe":[null,null,0,0,0,null,null],"broken crankshafts":[null,null,0,0,0,null,null],"Broken Durandal":[null,null,0,0,0,null,null],"Broken Excalibur":[null,null,0,0,0,null,null],"Broken guild longsword":[null,null,0,0,0,null,null],"charcoal water":[8,null,0,122,3,null,null],"commemorative coins":[22,25,1,1,1,null,null],"Dragon claw":[null,null,0,0,0,null,null],"ergot rye":[null,null,0,0,0,null,null],"Fastening material":[null,null,0,0,0,1,null],"field kits":[45,null,0,8,1,null,null],"fine silver":[55,61,248,328,5,25,null],"fly agaric":[null,null,0,0,0,null,null],"Frankfurt steel":[null,null,0,0,0,30,null],"ghostly horseshoes":[450,76,5,1,1,null,null],"hafts":[9,11,46,120,4,null,null],"hanged man's nooses":[null,11,1,0,0,null,null],"hemp":[null,null,0,0,0,null,null],"henbane":[null,null,0,0,0,null,null],"holy nails":[5,5,1,3,1,null,null],"knitbone poultices":[8,8,2,42,3,null,null],"leather":[6,12,703,1507,8,3,null],"linen":[9,13,4,51,1,null,null],"linen strips":[1,2,44,336,10,null,null],"lutes":[45,64,10,3,1,150,null],"Magdalena's broken axe":[null,null,0,0,0,null,null],"opium poppy":[null,null,0,0,0,null,null],"padding":[9,12,606,2284,11,null,null],"pavises":[null,null,0,0,0,null,null],"physician's satchels":[null,null,0,0,0,null,null],"Pig skin":[null,null,0,0,0,5,null],"restorative kits":[null,null,0,0,0,null,null],"splints":[8,10,1,15,1,null,null],"Steel":[null,null,0,0,0,35,null],"steel":[null,null,0,0,0,5,null],"suture kits":[8,10,5,168,1,null,null],"toads":[null,null,0,0,0,null,null],"Weapon stub":[null,null,0,0,0,null,null],"wolfsbane":[null,null,0,0,0,null,null],"found horseshoes":[2,3,3,58,2,null,null],"amber":[80,104,140,7,6,105,56],"ancient mandrake":[54,58,176,150,14,null,32],"ancient seeds":[null,83,30,0,0,null,34],"ancient yew staves":[700,608,146,21,4,626,36],"meteoric iron":[3300,2989,131,18,4,2300,196],"oak heartwood":[40,44,261,23,8,44,22],"pure silver nuggets":[900,923,828,38,8,755,25],"river pearls":[500,347,272,49,3,256,45],"rock crystals":[20,25,238,400,14,28,9],"royal antlers":[68,83,121,6,3,60,42],"white wolf pelts":[4900,2510,34,4,1,930,50]}},{"date":"2026-11-24","g":{"charcoal":[1,2,453,2933,15,null,1],"cobwebs":[2,4,92,750,15,null,1],"logs":[6,6,2519,6218,15,6,3],"owl feathers":[3,6,472,3349,14,null,3],"pine resin":[8,9,1027,1671,14,null,5],"coal":[2,2,3845,43339,16,null,1],"copper ore":[7,8,2117,3281,15,7,5],"gold ore":[25,25,897,616,14,28,12],"iron ore":[3,5,3102,15384,15,null,3],"saltpetre":[8,8,215,23,5,null,5],"silver ore":[40,45,1002,759,15,31,24],"sulphur":[7,6,198,20,5,null,5],"belladonna":[13,13,81,29,6,null,7],"chamomile":[3,4,99,380,13,null,2],"elderberry leaves":[2,4,4,24,6,null,1],"ginger":[21,31,84,20,4,26,17],"mandrake root":[2,3,132,1616,14,2,2],"nettles":[2,4,274,379,16,null,2],"sage":[3,4,98,394,12,null,1],"carp":[3,6,65,1029,11,null,1],"eel":[5,7,45,234,10,null,2],"pike":[8,10,63,294,13,null,4],"roach":[3,3,67,1134,11,null,1],"antlers":[14,16,416,387,15,null,13],"boar meat":[4,5,505,838,16,null,4],"boar tusks":[13,12,392,399,15,null,11],"hare":[3,4,207,436,16,null,3],"hides":[10,12,3329,5694,15,10,5],"venison":[3,3,1175,3345,15,null,1],"wolf pelts":[24,30,515,211,13,20,13],"barley malt":[3,3,278,131,7,1,null],"beeswax":[7,8,32,255,6,null,2],"grapes":[4,5,209,1410,10,4,3],"honey":[6,9,462,1360,15,6,6],"hops":[4,5,201,1025,14,null,3],"plums":[2,5,74,1423,10,null,2],"barley":[7,8,112,954,9,null,6],"barley seed":[3,4,7,36,4,null,2],"Beef":[40,8,1,24,1,null,null],"cabbage":[6,6,33,398,8,null,2],"Cabbage":[1,2,36,18,4,null,null],"cabbage seed":[2,2,6,5,1,null,1],"Carrot":[1,2,46,150,6,null,null],"carrot seed":[2,2,3,15,2,null,1],"chamomile seed":[null,null,0,0,0,null,1],"Chicken":[1,1,101,17,4,null,null],"onions":[6,5,29,802,7,null,2],"Egg":[4,4,33,8,1,null,null],"flax":[5,7,55,358,3,null,4],"flax seed":[1,2,2,6,4,null,1],"hay":[6,5,33,303,4,null,4],"hay seed":[2,2,2,2,1,null,1],"hemp fibre":[3,4,34,1710,10,null,1],"hemp seed":[2,2,5,1,1,null,1],"hop cuttings":[3,4,2,13,4,null,2],"Milk":[8,10,25,4,1,null,null],"carrots":[4,5,15,1329,6,null,1],"Onion":[1,4,90,46,10,null,null],"onion seed":[2,2,4,8,2,null,1],"plum saplings":[6,4,1,3,1,null,3],"Pork":[45,19,4,9,1,null,null],"sage seed":[2,2,1,1,1,null,1],"vine cuttings":[4,4,1,5,5,null,2],"an old boot":[null,null,0,0,0,null,null],"animal fat":[null,null,0,0,0,null,null],"bowstrings":[6,8,32,23,2,6,null],"Broken axe":[null,null,0,0,0,null,null],"broken crankshafts":[null,null,0,0,0,null,null],"Broken Durandal":[null,null,0,0,0,null,null],"Broken Excalibur":[null,null,0,0,0,null,null],"Broken guild longsword":[null,null,0,0,0,null,null],"charcoal water":[2,4,4,27,5,null,null],"commemorative coins":[22,null,0,8,1,null,null],"Copper":[null,null,0,0,0,4,null],"Cow skin":[null,null,0,0,0,1,null],"Dragon claw":[null,null,0,0,0,null,null],"ergot rye":[null,null,0,0,0,null,null],"field kits":[30,52,3,5,1,null,null],"fine silver":[40,53,166,257,6,null,null],"fly agaric":[null,null,0,0,0,null,null],"found horseshoes":[3,1,2,165,4,null,null],"ghostly horseshoes":[45,45,2,1,1,null,null],"hafts":[8,9,24,214,5,null,null],"hanged man's nooses":[null,null,0,0,0,null,null],"hemp":[null,null,0,0,0,null,null],"henbane":[null,null,0,0,0,null,null],"holy nails":[5,5,1,9,1,null,null],"knitbone poultices":[9,8,2,227,5,null,null],"leather":[8,12,380,1621,12,null,null],"linen":[10,9,11,45,3,null,null],"linen strips":[1,2,25,447,8,null,null],"lutes":[null,130,1,0,0,null,null],"Magdalena's broken axe":[null,null,0,0,0,null,null],"opium poppy":[null,null,0,0,0,null,null],"padding":[3,11,400,3308,12,null,null],"pavises":[null,null,0,0,0,null,null],"physician's satchels":[null,null,0,0,0,null,null],"restorative kits":[null,null,0,0,0,null,null],"splints":[null,8,3,0,0,null,null],"steel":[null,null,0,0,0,15,null],"suture kits":[10,9,7,94,1,null,null],"toads":[null,null,0,0,0,null,null],"Weapon stub":[null,1,1,0,0,null,null],"wolfsbane":[null,null,0,0,0,null,null],"amber":[112,102,106,10,4,76,56],"ancient mandrake":[68,78,168,36,8,65,45],"ancient seeds":[35,82,23,13,4,null,13],"ancient yew staves":[1900,1187,146,3,3,1200,36],"meteoric iron":[3298,2933,101,16,8,1905,196],"oak heartwood":[31,41,208,10,5,30,22],"pure silver nuggets":[800,890,594,94,12,564,25],"river pearls":[400,457,145,25,9,305,45],"rock crystals":[46,47,423,75,12,57,39],"royal antlers":[500,459,89,57,11,304,42],"white wolf pelts":[5000,3555,27,2,1,1241,50]}}]}; diff --git a/assets/market.js b/assets/market.js index d1055d8..b9fc59d 100644 --- a/assets/market.js +++ b/assets/market.js @@ -3,7 +3,7 @@ // page needs a game login, so a person updates this file by hand (see CONTRIBUTING.md). // Prices you type on the crafting or loadout page always win over these. const MARKET={date:"2026-11-24",src:"KCDRoleplay auction houses, 7-day average sale price",p:{ -O:5,C:2,K:8,A:45,G:25,L:6,H:12,N:4,R:9,W:6,F:30,V:3555,P:457,U:890,M:2933,D:6,E:8,T:16, -charcoal:2,cobwebs:4,tusks:12,yew:1187,rantlers:459,rcrystal:47,barley:8,hops:5,grapes:5,honey:9,amber:102,oak:41,aseeds:82,plums:5, -chamomile:4,sage:4,belladonna:13,ginger:31,elder:4,mandrake:3,amandrake:78,flax:7,hay:5,carrots:5,egg:4,roach:3,onions:5,cabbage:6, -hare:4,milk:10,chicken:1,venison:3,carp:6,eel:7,pike:10,boar:5,hempf:4}}; +O:5,C:2,K:8,A:45,G:25,L:6,H:12,N:4,R:9,W:6,F:30,V:3555,P:457,U:890,M:2933,D:6,E:8,T:16,charcoal:2,cobwebs:4, +tusks:12,yew:1187,rantlers:459,rcrystal:47,barley:8,hops:5,grapes:5,honey:9,amber:102,oak:41,aseeds:82,plums:5, +chamomile:4,sage:4,belladonna:13,ginger:31,elder:4,mandrake:3,amandrake:78,flax:7,hay:5,carrots:5,egg:4, +roach:3,onions:5,cabbage:6,hare:4,milk:10,chicken:1,venison:3,carp:6,eel:7,pike:10,boar:5,hempf:4}}; diff --git a/assets/site.css b/assets/site.css index 72b9696..caf9208 100644 --- a/assets/site.css +++ b/assets/site.css @@ -152,3 +152,14 @@ nav.site .tourpop{display:none} /* ---- the "Prices" line on Crafting and Loadouts ---- */ .pline{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0 0 12px;padding:10px 14px}.pline .plh{font-variant:small-caps;letter-spacing:.1em;color:var(--ac)}.pline b{color:var(--tx)}.pline .mi{color:var(--bad)}.pline .go{margin-left:auto} .btn{display:inline-block;padding:4px 12px;border:1px solid var(--ac);border-radius:2px;text-decoration:none}a.btn.pri{background:var(--ac);color:var(--on)} +/* hidden on screen, still read by screen readers */ +.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap} +/* page links: part of the top bar on wide screens; on phones they get a row of their own under the logo and menu */ +nav.site .nl{display:contents} +@media (max-width:560px){nav.site{flex-wrap:wrap;row-gap:4px}nav.site .nl{order:2;flex:1 0 100%;display:flex;justify-content:space-between;gap:2px;border-top:1px solid var(--bd);padding-top:4px}nav.site details.menu{order:1}} +/* mid-size screens: the top bar tightens step by step so it stays on one row */ +@media (min-width:561px) and (max-width:1200px){nav.site .clbtn .tl,nav.site .tourbtn .tl{display:none}nav.site .clbtn,nav.site .tourbtn{padding:5px 8px}} +@media (min-width:561px) and (max-width:1000px){nav.site details.menu>summary{font-size:0;gap:0;padding:5px 8px}nav.site details.menu>summary svg{width:18px;height:18px}} +@media (min-width:561px) and (max-width:860px){nav.site a.gh{display:none}nav.site details.menu{margin-left:auto}} +@media (min-width:561px) and (max-width:800px){html[data-skin=ledger] nav.site .brand,nav.site .brand{font-size:0;padding-right:2px}nav.site .nl a{padding:6px 7px}} +@media (min-width:561px) and (max-width:640px){nav.site .nl a{padding:4px 5px;font-size:.9rem}} diff --git a/assets/tour.js b/assets/tour.js index 0b352f1..a8e4d38 100644 --- a/assets/tour.js +++ b/assets/tour.js @@ -5,8 +5,8 @@ or none for a centred card), a title and some text. Steps whose element is missing are skipped. */ (function () { "use strict"; - var PAGES = ["index.html", "crafting.html", "farming.html", "loadouts.html", "prices.html"]; - var NAMES = { "index.html": "Home", "crafting.html": "Crafting", "farming.html": "Farming", "loadouts.html": "Loadouts", "prices.html": "Prices" }; + var PAGES = ["index.html", "crafting.html", "farming.html", "loadouts.html", "prices.html", "market.html"]; + var NAMES = { "index.html": "Home", "crafting.html": "Crafting", "farming.html": "Farming", "loadouts.html": "Loadouts", "prices.html": "Prices", "market.html": "Market" }; var here = (location.pathname.split("/").pop() || "index.html").toLowerCase(); if (PAGES.indexOf(here) < 0) return; @@ -42,6 +42,9 @@ { p: "prices.html", s: "#prail", t: "Prices: one place for every price", x: "Every material the calculators use, in groups. Pick a group, or show only the prices you set, the ones still missing, or what your current order needs." }, { p: "prices.html", s: "#pt", t: "Your price, or the market’s", x: "Type what you pay in Your price. Leave it empty and the market average is used instead. Calculators use shows which one applies, and Used in shows how many pieces need it. Press Enter to move to the next box." }, { p: "prices.html", s: ".ptools .acts", t: "Sets and sharing", x: "Save your prices as a named set, for a town perhaps, copy them to share in a chat, or clear them. Each change can be undone straight away." }, + { p: "market.html", s: "#summary", t: "Market: this week at a glance", x: "A weekly report from the auction houses: how much sold, the biggest risers and fallers, and a few plain-English observations about what is going on." }, + { p: "market.html", s: "#quick", t: "Bargains and shortages", x: "Goods listed well under their usual price, and goods that are close to selling out. Handy before you go shopping." }, + { p: "market.html", s: "#explore", t: "Every good on the market", x: "Search or filter the whole market. Click any good to see its price over the weeks and what is happening to it." }, { p: "prices.html", t: "That is the tour", x: "You can replay it whenever you like from the Tour button, or from Settings on a phone. Happy crafting!", last: true } ]; diff --git a/changelog.json b/changelog.json index b4ace2f..c4e1e58 100644 --- a/changelog.json +++ b/changelog.json @@ -1,5 +1,15 @@ { "entries": [ + { + "date": "2026-11-24", + "title": "New Market page", + "changes": [ + "A weekly report from the Kuttenberg auction houses: how much sold, the biggest risers and fallers, bargains, goods running low, and plain-English observations, including how prices changed recipe costs.", + "Below it, every good on the market: search, filter by group or signal (rising, falling, bargain, running low), and click a good to see its price over the weeks.", + "Pick an earlier week in the left column to see that week’s report.", + "On phones the page links now have their own row in the top bar, so all six fit." + ] + }, { "date": "2026-11-24", "title": "Suggested prices refreshed", diff --git a/crafting.html b/crafting.html index e370d19..e76210d 100644 --- a/crafting.html +++ b/crafting.html @@ -86,7 +86,7 @@ @media (max-width:700px){html[data-skin=ledger] .top h1{font-size:1.15rem}.top .bar label.f:last-child{padding-bottom:0!important}} #totop{display:none;position:fixed;right:14px;bottom:14px;z-index:20;width:44px;height:44px;border-radius:50%;align-items:center;justify-content:center;padding:0;background:var(--ac);color:var(--on);border:0;box-shadow:0 3px 10px rgba(0,0,0,.35);font-size:1.2rem} - +
Loading recipes…

Crafting Cost Calculator

diff --git a/docs/screenshots/market.png b/docs/screenshots/market.png new file mode 100644 index 0000000..ec8c48e Binary files /dev/null and b/docs/screenshots/market.png differ diff --git a/farming.html b/farming.html index 88663f8..83beb8a 100644 --- a/farming.html +++ b/farming.html @@ -30,7 +30,7 @@ table.ft tr.best td{background:none}table.ft tr.best{background:color-mix(in srgb,var(--ok) 12%,transparent)} } - +
Loading crops…

Farming Efficiency

diff --git a/index.html b/index.html index 545fe3b..5640656 100644 --- a/index.html +++ b/index.html @@ -31,7 +31,7 @@ - +

KCD Tools

Unofficial fan tool. Recipes and crops from wiki.kcdroleplay.com. Prices and settings are saved in your browser only.
Made by Busterguy · Found a bug or have an issue? Contact me on Discord.
Open source: view the repo or report an issue on GitHub.
diff --git a/loadouts.html b/loadouts.html index 3411f39..9e993d9 100644 --- a/loadouts.html +++ b/loadouts.html @@ -25,7 +25,7 @@ .fr select{max-width:200px}.cmpt{min-width:420px}.cmpt td,.cmpt th{white-space:normal;vertical-align:top}.cmpt td small{display:block;color:var(--mut)}.cmpt tr.tot td,.cmpt tr.tot th{font-weight:bold} - +
Loading recipes…

Loadout Builder

diff --git a/market.html b/market.html new file mode 100644 index 0000000..9950508 --- /dev/null +++ b/market.html @@ -0,0 +1,201 @@ + + + + + + +Market – KCD Tools + + + + + + +

Market

+
+ +
+

Summary

+
+

What we see this week

    +
    +

    Biggest moves

    +

    Goods with at least 20 sales in both weeks. Change is against the week before.

    +
    +

    Bargains now

    Cheapest listing well under the weekly average.

      +

      Running low

      Little on sale compared with how fast it sells.

        +
        +

        All goods

        +
        + +

        +
        GoodTrendAveragevs last weekCheapestSoldStockSignal
        +

        Average = 7-day average sale price, in groschen. Stock = how many weeks the goods on sale would last at the week’s selling rate. Click a good for its full story. Suggestions are rules of thumb from these numbers, not predictions.

        +
        +
        +
        +
        Unofficial fan tool. Recipes and crops from wiki.kcdroleplay.com. Prices and settings are saved in your browser only.
        Made by Busterguy · Found a bug or have an issue? Contact me on Discord.
        Open source: view the repo or report an issue on GitHub.
        + + + diff --git a/prices.html b/prices.html index a754340..7fb2b77 100644 --- a/prices.html +++ b/prices.html @@ -35,7 +35,7 @@ } - +

        Prices