Multitallented / Civs

A town building and modular spell plugin
GNU General Public License v3.0
51 stars 31 forks source link

Feature: Allow Tool Damage in regions #225

Closed CSmither closed 1 year ago

CSmither commented 1 year ago

Purpose:

The main aim of this PR is to allow regions to damage tools as part of their upkeep actions. This allows for things like lumber yards to use an axe's durability slowly instead of it being an infinite reagant as currently is the case.

This should resolve #57

Implementation

Implementation follows the current approach for checking and changing region inputs and reagents so no new patterns to consider.

Design decisions made

Improvements to consider

Other changes

I have changed any current regions that use tools as a reagant or input to instead have those tools in their new tools section, meaning they will now take damage rather than being either infinite or single use. I have also reformatted a couple of the example yml regions to bring them inline with the norm of having # at the start of the line followed by the appropriate whitespace instead of whitespace then #. i.e. now reads # inputs: instead of #inputs:

Testing

I have tested this manually but haven't changed any of the automated tests which all still pass. I have not tested these changes with any other plugins except vault and an economy plugin