Up to Battle Random functions
start cleaning up encounter.c
fix build
fix build again
remove two files from bad rebase
switch fully to battle type constants
rename TRAINER to Trainer
few more funcs
finish cleanup
address some review comments
de-capitalise std_script