Headbutt tree: Difference between revisions

m
no edit summary
m (I never got around to verifying the previous edits after they happened, and they are indeed incorrect. (Or if I'm wrong in something, it's something such that this won't be the only thing wrong))
mNo edit summary
Line 12: Line 12:
Every headbuttable tree can be associated with an index from 0 to 9. Depending on the player's [[Trainer ID number|Trainer ID]], half of those indices correspond to trees with moderate encounter chances, while the other half correspond to trees with a low encounter chance.
Every headbuttable tree can be associated with an index from 0 to 9. Depending on the player's [[Trainer ID number|Trainer ID]], half of those indices correspond to trees with moderate encounter chances, while the other half correspond to trees with a low encounter chance.


A tree's index depends on its X and Y coordinates in the map; that is, its distance from, respectively, the westmost and and northmost edges.
A tree's index depends on its X and Y coordinates in the map; that is, its distance from, respectively, the westmost and northmost edges.


:<code>''index'' = ( ( ''X'' * ''Y'' + ''X'' + ''Y'' ) / 5 ) [[wp:modulo operation|%]] 10</code>
:<code>''index'' = ( ( ''X'' * ''Y'' + ''X'' + ''Y'' ) / 5 ) [[wp:modulo operation|%]] 10</code>
Line 152: Line 152:
|-
|-
|
|
{| style="margin:auto; {{roundy|20px}} border: 2px solid #{{locationcolor/dark|land}}; background: #{{locationcolor/dark|land}};"  
{| style="margin:auto; {{roundy|20px}} border: 2px solid #{{locationcolor/dark|land}}; background: #{{locationcolor/dark|land}};"
! colspan="2" style="{{roundytop|20px}} background: #{{locationcolor/med|land}}"| Tree 1
! colspan="2" style="{{roundytop|20px}} background: #{{locationcolor/med|land}}"| Tree 1
|-style="background: #{{locationcolor/light|land}}"
|-style="background: #{{locationcolor/light|land}}"
Line 168: Line 168:
|}
|}
|
|
{| style="margin:auto; {{roundy|20px}} border: 2px solid #{{locationcolor/dark|land}}; background: #{{locationcolor/dark|land}};"  
{| style="margin:auto; {{roundy|20px}} border: 2px solid #{{locationcolor/dark|land}}; background: #{{locationcolor/dark|land}};"
! colspan="2" style="{{roundytop|20px}} background: #{{locationcolor/med|land}}"| Tree 2
! colspan="2" style="{{roundytop|20px}} background: #{{locationcolor/med|land}}"| Tree 2
|-style="background: #{{locationcolor/light|land}}"
|-style="background: #{{locationcolor/light|land}}"