Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_item_stats_armor_mod

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

function scr_item_stats_armor_mod(argument0) //gml_Script_scr_item_stats_armor_mod { switch argument0 { case "Patch": return 0; case "Feather": return 2; case "Honeydew Pin": return 4; case "Band Merch Pin": return 5; case "Safety Jacket": return 6; case "Steel Buckle": return 7; case "Fancy Holster": return 8; case "Safety Goggles": return 9; case "Silver Scarf": return 6; case "G. Bandana": return 12; case "Delta Rune Patch": return 10; case "Golden Scarf": return 25; default: return 0; } }
(argument0) //gml_Script_scr_item_stats_armor_mod
2
{
3
    switch argument0
4
    {
5
        case "Patch":
6
            return 0;
7
        case "Feather":
8
            return 2;
9
        case "Honeydew Pin":
10
            return 4;
11
        case "Band Merch Pin":
12
            return 5;
13
        case "Safety Jacket":
14
            return 6;
15
        case "Steel Buckle":
16
            return 7;
17
        case "Fancy Holster":
18
            return 8;
19
        case "Safety Goggles":
20
            return 9;
21
        case "Silver Scarf":
22
            return 6;
23
        case "G. Bandana":
24
            return 12;
25
        case "Delta Rune Patch":
26
            return 10;
27
        case "Golden Scarf":
28
            return 25;
29
        default:
30
            return 0;
31
    }
32
33
}