Deltarune script viewer

← back to main script listing

gml_GlobalScript_scr_fountain_levelup

(view raw script w/o annotations or w/e)
1
function scr_fountain_levelup
scr_fountain_levelup

function scr_fountain_levelup() { if (global.chapter == 2) { global.maxhp[1] = clamp(global.maxhp[1], 160, 999); global.maxhp[2] = clamp(global.maxhp[2], 190, 999); global.maxhp[3] = clamp(global.maxhp[3], 140, 999); for (var _i = global.flag[66 times_gained_at]; _i < 2; _i++) { global.at[1]++; global.at[2]++; global.mag[2]++; global.at[3]++; global.mag[3]++; } } }
()
2
{
3
    if (global.chapter == 2)
4
    {
5
        global.maxhp[1] = clamp(global.maxhp[1], 160, 999);
6
        global.maxhp[2] = clamp(global.maxhp[2], 190, 999);
7
        global.maxhp[3] = clamp(global.maxhp[3], 140, 999);
8
        for (var _i = global.flag[66 times_gained_at]; _i < 2; _i++)
9
        {
10
            global.at[1]++;
11
            global.at[2]++;
12
            global.mag[2]++;
13
            global.at[3]++;
14
            global.mag[3]++;
15
        }
16
    }
17
}