global.time += 1;
global.player_hp += 1;
if global.player_hp > global.hplvl*25*12
{
    global.player_hp = global.hplvl*25*12;
}
if global.time >= 900+50*global.level
{
    global.time -= 900+50*global.level;
    global.level += 1;
    score += 5000*ceil(1.75*global.level);
    global.dragon_left += 1;
    global.messages = 5;
}
global.droprate = 1800;

