function onPlayerHurt(hit) { client.p_hits += 0.5; if (int(client.p_hits) = client.p_hits) { player.hearts += 0.5; if (client.p_hits > 50) client.p_hits = 0; } }