Go to file
Andrey Stepanov 34ac633148
Some checks failed
pre-commit / check (push) Has been cancelled
fix digspeed monoid compatibility
2025-01-24 22:51:28 +05:00
.github update metadata 2023-07-23 10:13:05 -07:00
.cdb.json update metadata 2023-07-23 10:13:05 -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 cleanup 2023-05-25 09:13:23 -07:00
init.lua fix digspeed monoid compatibility 2025-01-24 22:51:28 +05:00
LICENSE.txt update license info 2023-08-06 16:37:50 -07:00
MEDIA_LICENSE.txt initial 2023-03-11 20:37:28 -08:00
mod.conf update metadata 2023-07-23 10:13:05 -07:00
README.md add descriptions 2023-04-07 17:17:10 -07:00
screenshot.png add screenshot 2023-04-07 17:26:41 -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.