Oficium 0.6.0
What's new
Tested on Hytale 0.7.7.
Pick items from your inventory
- Repair anvil. Clients no longer need to hold the item: the anvil shows the hotbar and the backpack, worn items are lit with their durability, and the cost of the chosen item is shown next to it. The screen stays open to repair the next one.
- Merchant's warehouse. Clients pick what to store from the same grid and choose how much of the stack (minus, plus, half, all).
- Owners choose the price item from a picker with their inventory, instead of holding it in the hand.
Repair anvil (Smith)
Charge a percentage of the item's value (with Mercantia): in the gold mode, the owner picks a fixed price or a percentage of the item's reference price. The client sees the math, such as "5% of 20,000". Items with no price pay the fixed amount.
The owner decides whether the repair also uses the item's material (1 to 3 bars of its metal). It was always on before.
Material stock (with Mercantia): the owner can leave metal bars in the anvil. When a repair uses material, the client is asked whose bars to use: their own, or the Smith's, paying the bars' Mercantia reference price on top of the repair. A client without the bars is no longer stuck. The stock goes back to the owner with the vault if the anvil is broken.
The repair button no longer says "(free)" when the repair costs gold or material.
New recipes
- Wands. The Earth Wood Wand is made at the workbench (Survival tab), by anyone. The Tribal and Rotten Wood wands are made at the Arcane Bench, like the rest of the arcane crafts (Explorer).
Merchant
- The price bonus when selling to the NPC Merchant is now off by default. The Merchant keeps the lower auction fee, the trade XP and the warehouse. Servers that want the bonus can still set it in the admin panel (Progression, Merchant). A server that already saved its own value keeps it.
anvils.json and config.json need no change by hand. Anvils already placed keep their fixed price and keep charging the material.
For mod developers
- A profession from your mod. Another mod can now register a whole profession from code, everything a profession file has: the profession itself (
registerProfession), its access rules (registerAccessRules), the steps of its path in the profession path screen (registerPath) and its benefits (registerBenefits). It then works like Oficium's own: the Master of Professions, titles, the admin panel, the path. An admin's files still win. Guide: https://flintdl.gitbook.io/oficium/
Fixes
- Crafting several at a bench with a crafting time counted each one many times. Asking for 10 potions gave the Alchemist's yield bonus and the profession XP as if 100 were made (a level 100 Alchemist could get over 80 potions out of 10). Now each item counts once.
- The Smith's signature now goes on every item of a queued craft, not only the first.
/oficium admin(or/ofc admin) now opens the admin panel directly; the subcommands still work.- The Merchant's daily trade XP cap and the wait between trades now survive a server restart.
- With Mercantia, a repair or warehouse refund that cannot be paid back is now written to the log with the player, the owner and the amount, so the admin can make it right.
- A very high Mercantia reference price no longer makes a percentage repair cost 1 gold.
- An unreadable
professions-from-mods.jsonis now named in the log.
This mod has no additional files