I fixed it, Truce. Here everyone, I fixed the HatMod.cs, it's uploaded with my post. Just stuff it in your SimpleWell_HatMod.rar and let it replace.
Also, Pandan, I wish to modify the percentage to get a hat to be more like Valve's set. Can you PM me or tell me here how to change that 50% value to 10%?