Comment PrintNum.
Fix argument handling in *coord macros. Add a "percent" shortcut.

Random returns a value from 0 to 0xff.
Instead of doing extra work, most probabilities are out of 0xff.
Convert these from percentages at build time for readability.
Consolidate NUM_MOVES usage and monster struct labels.

There turned out to be a lot of instances of NUM_MOVES.
Use constants for move struct positioning.

This eliminates the need for arbitrary move labels like Move2 and Move1 that don't have anything to do with their respective moves.
Consolidate monster structs in wram and sram.

The PartyMon struct is really the box struct with volatile variables like status added.

Some other labels have been reworked.
Move structs no longer have explicit labels since their location is arbitrary and usually shared.
Reformat the channel_struct macro and use more constants in wram.
More battle code cleanup.

- Use more substatus constants.
- Reformat some code to be more atomic.
- Add constants for unused status prevention held item effects.
- Remove pointless or redundant comments.
Battle type constants in the wild.

Also add constants for trap and Celebi event battles.
Rename _GetBattleVar -> GetBattleVarAddr.

Functions prefixed with _ imply they're private.
The real purpose of this function is to use an address,
rather than saving a few cycles on push/pop.
Item constants in trainer ai.
Move trainer item AI into battle/ai/items.asm.
Name and comment the trainer party reader.

Reads the contents of trainers/trainers.asm.
Makefile: Use lower-case variables and graphics conversion queues.

This is mostly to make it more like pokered.

Queues are an order of magnitude faster than invoking a new python instance for each file.
Name and comment some move learning functions.
Use a predef macro that takes labels instead of juggling constants.

Besides making predefs convenient, naming a predef no longer requires
adding or renaming a predef constant. This also lets predefs be rearranged at will.
Name the UpdateEnemyHUD predef.

Also start using hp palette constants.
Contest battle type and comment the battle menu.
Fix some misnamed substatus constants.

SUBSTATUS_ROLLOUT was actually SUBSTATUS_RAMPAGE.
SUBSTATUS_ENCORED was actually SUBSTATUS_ROLLOUT.
Substatus 5 bit 4 was actually SUBSTATUS_ENCORED.

Also use some more (sub)status constants where needed.
Residual damage, battle text labels, pic predefs.
Merge remote-tracking branch 'kanzure/master'