Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_item_stats_armor

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

function scr_item_stats_armor(arg0) { switch (arg0) { case "Worn Hat": if (global.option_easymode == true) return 3; else return 0; case "Nice Hat": if (global.option_easymode == true) return 5; else return 0; default: return 0; } }
(arg0)
2
{
3
    switch (arg0)
4
    {
5
        case "Worn Hat":
6
            if (global.option_easymode == true)
7
                return 3;
8
            else
9
                return 0;
10
        case "Nice Hat":
11
            if (global.option_easymode == true)
12
                return 5;
13
            else
14
                return 0;
15
        default:
16
            return 0;
17
    }
18
}