clintbellanger/flare — pull request #544 by stefanbeller (2012-07-09 21:22:54+00:00)
Title: An attempt to make enemies only drop certain types of stuff.

In an enemy definition file there is now the loot_type parameter available,
which can configure which items types to drop.

Play testing can be done at the level 1 goblins (only dropping money, daggers and clothes)

# The loot_type is a list of strings, which describe which kind of loot
# is being dropped. The strings should match the "loot" entry in the item
# database. Optionally a number can be passed after each string entry to
# adapt the probablity of the entry. If the optional probability number
# is omited, 1 is assumed.

# The following configuration has a sum of all weights of 5+1+4=10, so
# the distribution is steps of 10 percents.
# Gold will be dropped in 50 percent of the cases. In 10 percent there
# will be clothes and in the other remaining 40 percent a dagger will be dropped.
loot_type=gold,5,clothes,dagger,4