Go to file
2023-04-07 17:17:10 -07:00
.github initial 2023-03-11 20:37:28 -08:00
.cdb.json add descriptions 2023-04-07 17:17:10 -07:00
.editorconfig initial 2023-03-11 20:37:28 -08:00
.luacheckrc initial 2023-03-11 20:37:28 -08:00
.pre-commit-config.yaml initial 2023-03-11 20:37:28 -08:00
init.lua minor tweaks 2023-04-01 14:19:16 -07:00
LICENSE.txt initial 2023-03-11 20:37:28 -08:00
MEDIA_LICENSE.txt initial 2023-03-11 20:37:28 -08:00
mod.conf add descriptions 2023-04-07 17:17:10 -07:00
README.md add descriptions 2023-04-07 17:17:10 -07:00

toolcap_monoids

an API to allow multiple sources to apply changes to a tools's capabilities.

toolcap_monoids.full_punch

modifies the "full punch" interval. multiplicative. values > 1 will increase time between full punches, < 1 will decrease the same.

toolcap_monoids.dig_speed

modifies dig times. multiplicative. values > 1 will increase dig time, < 1 will decrease dig time. values can also be tables mapping specific groupcaps to specific multipliers.

toolcap_monoids.durability

modifies tool uses. multiplicative. values > 1 will increase durability, < 1 will decrease durability. values can also be tables mapping specific groupcaps to specific multipliers.

toolcap_monoids.damage

modifies tool damage groups. additive, not multiplicative. values must be tables mapping damage groups to the increase (or decrease) in damage for that group.