Talk:??? (type): Difference between revisions

Line 184: Line 184:
: While I can't say anything for Gen II, I can confirm that it's true for Gen III, as I've seen the code myself. It's a consequence of the fact that types, rather than moves, are assigned as physical or special. The damage calculator doesn't know whether to assign ???-type moves as physical or special (and thus, which set of offensive and defensive stats to use), and thus doesn't even try, simply returning 1 (not just "minimal" damage, exactly 1).--[[User:Goukazaru|Gou]] ([[User talk:Goukazaru|talk]]) 12:08, 13 August 2016 (UTC)
: While I can't say anything for Gen II, I can confirm that it's true for Gen III, as I've seen the code myself. It's a consequence of the fact that types, rather than moves, are assigned as physical or special. The damage calculator doesn't know whether to assign ???-type moves as physical or special (and thus, which set of offensive and defensive stats to use), and thus doesn't even try, simply returning 1 (not just "minimal" damage, exactly 1).--[[User:Goukazaru|Gou]] ([[User talk:Goukazaru|talk]]) 12:08, 13 August 2016 (UTC)
::It's [https://github.com/pret/pokecrystal/blob/f0209d6ed6a0cd0e759dff49bdfe4d8171229c29/battle/effect_commands.asm#L2803 apparently] calculated as if it was Physical in Gen II (if only an attack's type is altered). [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 21:21, 22 March 2017 (UTC)
::It's [https://github.com/pret/pokecrystal/blob/f0209d6ed6a0cd0e759dff49bdfe4d8171229c29/battle/effect_commands.asm#L2803 apparently] calculated as if it was Physical in Gen II (if only an attack's type is altered). [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 21:21, 22 March 2017 (UTC)
:::Just for reference, in Generation IV, it seems it could also be exactly 2 damage, i.e. the +2 at the end of the damage formula, randomly varied; the main part of it is [https://github.com/pret/pokeemerald/blob/c0357cea46635ec3867d18e43b341fb7a4a2fef2/src/pokemon.c#L2366 apparently] just 0 rather than something based on (Sp)Atk/(Sp)Def. [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 09:02, 12 May 2018 (UTC)


==Struggle==
==Struggle==