How do you create a mod like the Coefficient mod?

Author: WallaWalla , Created: 7-May-2020 10:23 AM View on Web Archive

https://trovesaurus.com/mod=4661/damage-coefficient-stat Thats the link to coefficient, but I don't know how I could approach the task of editing...