Yeah I'm not familiar with Ruby, but if it says (min) and the floor is 1. That would probably explain it reaching the floor value all the time. The only thing I'm not understanding from that code is "isConst?", "PBItems", and "pbRecoverHP", ".pbThis"
What do they stand for?