Dynamically calculate max health when needed