Moondog, day 11 (31 Oct): bows that know their wood, horses, and carts

19 commits. I finished the bowyery work from yesterday, and then the pets learned to carry things.

Bows with real figures

  • Pick your wood. When a recipe lets you choose the wood, a dropdown lists your copies grouped by wood and quality, oldest first, and the server checks you really have what you picked.
  • Bows shoot with their own numbers. Each bow needs Strength equal to its draw weight divided by 3.5. An archer short of that only part-draws, and damage and range scale down to match.
  • Skills train attributes. A skill can feed any of the six attributes, passing on 10% of the XP it earns. Archery and Melee Weapons came with this.
  • Every tree needs an axe, and a vendor will hand you one to start with.
  • A generic flatbow that can be made from any wood: billet, green stave, seasoned stave, shape, tiller, nock and string. Its figures come from the wood and the quality.
  • Item tooltips showing what an item was made of, its draw weight and the Strength it needs, damage, range, durability and weight.

Weight

Your capacity is 50 + 5 × Strength, and everything you carry counts, worn or not. Past 80% you slow down, and at full you can't move. The client predicts this with the same constants as the server, and the RPC contract checks they match. There's a weight bar in the inventory, green, then amber, then red.

Horses, riding and carts

  • Horses: tameable, passive, a beast of burden with collar, saddle and bag slots.
  • Riding: R mounts the nearest pet you can ride. Walk and run speeds come from the mount on both server and client.
  • Carts: wheelwrighting makes wheels and assembles a cart, which is set down in the world as an object with 500 weight of cargo. You choose which pet to hitch, and the hitch survives logging out. The cart waits where you left it, and the pet appears back in the shafts when you log in.
  • Better following. Pets wait until you've moved past their follow distance, then trail behind along the way you walked and line up side by side. Turning the camera no longer sets them off. You can also name a pet, once.

Also today: GMs can place nodes with a random rotation, the healing herb counts as a vegetable so rabbits and geese finally have something to eat, and two admin-site fixes (a header that clipped its own dropdowns, and a crafted-stats check that refused every item save).