Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_weapon_modifier_attack

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

function scr_determine_weapon_modifier_attack() { var return_value = scr_item_stats_weapon_mod(global.player_weapon_modifier); return return_value; }
()
2
{
3
    var return_value = scr_item_stats_weapon_mod
scr_item_stats_weapon_mod

function scr_item_stats_weapon_mod(arg0) { switch (arg0) { 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; } }
(global.player_weapon_modifier);
4
    return return_value;
5
}