on-the-fly treasure generating
missing by default
the parameters are integers
time : period of generation in time-units. A second is divided into 20 units.
nr : number of treasures generated at once.
maxnr : sum of the treasures to generate.
comm/diff : kind of treasures. Possible values: 0, 1
If comm/diff=0, it will generate common treasures, nr pieces for each player.
In this case whom is ignored.
If comm/diff=1, it will generate different treasures depending on whom: