Moondog, day 8 (22 Oct): combat on the client, and pets
16 commits, in two halves: finishing combat, then pets.
Combat, finished
- Left mouse attacks, through the same input router as everything else.
- V draws or sheathes your weapon. Drawn, you move 20% slower. Equipping a weapon draws it, and respawning puts it away.
- Melee and Defense skills now actually level up, with a message when they do.
- Packs left on the ground are swept after 24 hours.
- A loot log: picking up a pack writes what you got into chat.
- Client UI for all of it: a health bar, a panel for looting packs, and an equipment panel on I.
Pets
Yesterday a successful tame just removed the creature. Now it gives you a pet:
- Pets have their own tables, load when you log in, and follow you around.
- You can give them commands, and P opens a pet panel.
- Pets fight. They attack creatures, earn experience, and level up by skill the same way players do, with stats that grow as they level.
- Pets can die, and when they do they drop their own pack, just like players. They respawn afterwards.
- Pets have equipment and an inventory of their own, and their gear adds to their stats.
Taming now checks your skill and that you're carrying a taming tool, and successful tames train Taming.