Properties that all armor can have - Catman-232/Homebrewery GitHub Wiki
This page was up to date as of version 4.0.0
An item's param.txt
file is a JSON formatted set of properties that HB will try to parse into data. You do not need to have every single property in a file, as any you don't have will be given its default value, which is displayed in each code block below.
The file starts with a left brace: {
, property names go in speech marks with a colon afterwards: "property":
, values go after the colon and will have a comma after them: 10,
or "stringvalue",
unless it is the last one in the file: 10
or "stringvalue"
, and finally the file ends with a right brace }
"_canDyeArmor": false,
Boolean (true or false, no speechmarks)
This controls whether the character's dye colour is applied to the gear or not.
"_colorAdjustParams": {
"_hue": 0.0,
"_saturation": 1.0,
"_brightness": 0.0,
"_contrast": 1.0
},
Float (decimal places allowed) x 4
Technically this is a nested object called a ColorAdjustShader_Profile
, which is comprised of four decimal values. They are the same properties that Dyes have in their equivalent property, since it is the same Class. These values are only used if the item is not dyable, the game applies these values like a Dye.
This isn't that useful to us, Kiseff uses them in order to reuse textures with the shaders recolouring them based on the values. We have to supply individual textures per item anyway though so you might as well just recolour the PNG and probably get better results from that.
Valid value ranges:
- Hue: -360 to 360
- Saturation: 0 to 2
- Brightness: -1 to 1
- Contrast: 0 to 2