Spear Crafting Fix
О материале
«Spear Crafting Fix» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
What does this do?
This patch fixes the durability of spears with attachments. In the base game, when you attach a weapon to a spear, the resulting spear can not reach 100% durability without repairs.
For example: Take a hunting knife with 100% durability and a crafted spear with 100% durability and attach the knife.
The resulting Spear with hunting knife has ~60% durability.
This mod makes it so the spear has the proper 100% durability.
This happens because of a bug or oversight in the game code. The maximum durability is always the minimum of weapon and spear - but in absolutes. Crafted spears have a max durability of 5, whereas the attached variants have more. Therefore the spears can never reach full durability after a craft. This mod fixes this.
The fix calculates the durability in percentages and takes the minimum of the percentage, then multiplies it by the max durability.
I updated the uncrafting logic as well to ensure that you can not get additional durability by crafting + uncrafting repeatedly.
Compatibility
The mod is safe to add or remove at any time. It should work with all other mods that add spears with attachments, as long as they are using the same methods as the base game.
Workshop ID: 2920288546 Mod ID: spearcraftingfix
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.