From line "4E800421 2C031480" to line "41800008 3940000D" the items and the associated probabilities are determined.
I forgot to mention that if you replace
2C037F80 3940000D
41800008 3940000D
in the code with
2C037F80 39400008
41800008 3940000C
this code will also work for Battle.
------------------------------------------------------------------------------------------
EDIT: The lower part isn't important anymore, because the Update automatically recognize if it is battle or not.
I forgot to mention that if you replace
2C037F80 3940000D
41800008 3940000D
in the code with
2C037F80 39400008
41800008 3940000C
this code will also work for Battle.
------------------------------------------------------------------------------------------
EDIT: The lower part isn't important anymore, because the Update automatically recognize if it is battle or not.