Item browser cut and bash is off

The item browser’s cut and bash is off across the board.

http://cdda-trunk.chezzo.com/bindle

Bindles don’t have acid protection of ten.

I know cut and bash isn’t determined explicitly from the json but based on material and material thickness.

Did determining the cut bash from the material thickness change? Does anyone know where in the code it is? Can someone explain it to me so I can fix the item browser?

I don’t know why or can’t imagine why was a good idea not making some way to manually override the protection stats of items.

Everything related to protection is relatively neatly wrapped in item.cpp, in item::damage_resist and the functions it calls. Assume to_self is false (it’s only true for attacks against the item and not the wearer).