Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_determine_armor_modifier_defense

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

function scr_determine_armor_modifier_defense() //gml_Script_scr_determine_armor_modifier_defense { var return_value = scr_item_stats_armor_mod(global.player_armor_modifier) return return_value; }
() //gml_Script_scr_determine_armor_modifier_defense
2
{
3
    var return_value = 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; } }
(global.player_armor_modifier)
4
    return return_value;
5
}