Skills
File location:
lua/ch_mining/shared/config/ch_mining_config_skills.lua
Example code:
CH_Mining.Skills["Experience"] = {
Name = "Experience",
Icon = Material( "materials/craphead_scripts/mining/gui/skills/experience.png", "noclamp smooth" ),
Description = "Increase your experience gain per hit.",
Levels = {
[0] = { 2, 5 },
[1] = { 5, 7 },
[2] = { 7, 10 },
[3] = { 10, 15 },
[4] = { 15, 20 },
[5] = { 20, 30 },
},
}
CH_Mining.Skills["Speed"] = {
Name = "Speed",
Icon = Material( "materials/craphead_scripts/mining/gui/skills/speed.png", "noclamp smooth" ),
Description = "Make your pickaxe swing faster.",
Levels = {
[0] = 2.5,
[1] = 2.3,
[2] = 2.1,
[3] = 2,
[4] = 1.5,
[5] = 1,
},
}
Explanation:
Icon = The icon displayed in the UI
Description = The description in the UI.
Generally, you should only modify these in the case where you want to translate them to another language. DO NOT EDIT THE PART WHERE IT SAYS CH_Mining.Skills["Experience"]
Levels = These are the available levels and their values. Some skills have a two values that are randomized and others have a static. In the experience example, it's two values that are randomized and in Speed it is static. You cannot decide if it's random or static!
What you can do is add more levels. So for example if you'd like that there are more speed levels, then you can just add more and increase the number to 6, 7, 8 and so on.
Below is an example of adding more than 5 levels.
CH_Mining.Skills["Capacity"] = {
Name = "Capacity",
Icon = Material( "materials/craphead_scripts/mining/gui/skills/capacity.png", "noclamp smooth" ),
Description = "Increase your mining inventory capacity.",
Levels = {
[0] = 200,
[1] = 300,
[2] = 500,
[3] = 750,
[4] = 1000,
[5] = 1250,
[6] = 1500,
[7] = 2000,
[8] = 2500,
[9] = 3000,
[10] = 4000,
},
}
If you are in doubt about anything, just create a support ticket.
You can't change the key and you can't change the name. The name of the skills are translated in the translation file!