LV 20 stats

I found this in the Undertale code. According to it, at 20 love, your attack and defense stats increase to 99, but other sources say that at 20 love, the player’s attack and defense are set to 30, and the player becomes weaker than at 19 love. Please explain this to me.

if (global.lv != currentlevel)
{
levelup = 1
global.maxhp = 16 + global.lv * 4
global.at = 8 + global.lv * 2
global.df = 9 + (ceil(global.lv / 4))
if (global.lv == 20)
{
global.maxhp = 99
global.at = 99
global.df = 99
}
}

seems pretty straigthforward logic. maybe theres other code in the game that change it back for some reason? or its just wrong

looks like LV20's still higher stats...

I think that yes, it sets your stats, but not both to 30. IIRC it's like 14 or so ATK and like 4 DEF