Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_item_stats_weapon_mod

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

function scr_item_stats_weapon_mod(argument0) //gml_Script_scr_item_stats_weapon_mod { switch argument0 { case "Rubber Ammo": return 0; case "Pebble Ammo": return 3; case "Ice Pellets": return 6; case "Cff Bean Ammo": return 4; case "Glass Ammo": return 5; case "Flint": return 9; case "Silver Ammo": return 3; case "Nails": return 10; case "Friendliness Pellets": return 11; default: return 0; } }
(argument0) //gml_Script_scr_item_stats_weapon_mod
2
{
3
    switch argument0
4
    {
5
        case "Rubber Ammo":
6
            return 0;
7
        case "Pebble Ammo":
8
            return 3;
9
        case "Ice Pellets":
10
            return 6;
11
        case "Cff Bean Ammo":
12
            return 4;
13
        case "Glass Ammo":
14
            return 5;
15
        case "Flint":
16
            return 9;
17
        case "Silver Ammo":
18
            return 3;
19
        case "Nails":
20
            return 10;
21
        case "Friendliness Pellets":
22
            return 11;
23
        default:
24
            return 0;
25
    }
26
27
}