Closed adamdrakon closed 2 years ago
Can you add an example on about 2 items.
I would assume givenAmmount ={ {2,5}, {1,3}} for second item ?
I would assume givenAmmount ={ {2,5}, {1,3}} for second item ?
Correct. I'll add to the example.
So in the config need some changes. The current method to be removed and an explanation there.
For the itemQuantity
I wouldn't remove the current method though, personally. There's room for both to exist.
Let's say for example you have Config.ItemQuantity.Min set to 1 and Config.ItemQuantity.Max set to 3, and are happy to use 0 (to trigger the current random) in most cases, but for the case of just a few animals you'd like different random ranges in place for certain item rewards you can then use this new feature.
So the config file just needs some extra notation on how to use the new feature, in my opinion.
Whoops, caught my avatar when copy pasting the commit short summary... my bad.
Oh i see. Its just a bit confusing having both.
Example usage in config.lua:
Config.Animals = { [-1143398950] = { name = "Big Grey Wolf", givenItem = { "meat", "wolf_fang", "wolf_heart" }, givenAmount = { {2,5}, {1,2}, 1 }, money = 3, gold = 0, rolPoints = 0, xp = 3, poorQualityMultiplier = 1.0, goodQualityMultiplier = 1.5, perfectQualityMultiplier = 2, poor = 85441452, good = 1145777975, perfect = 653400939 }, }
The above example would make it so Big Grey Wolf carcasses give a random amount of "meat" between 2 and 5 and a random amount of "wolf_fang" between 1 and 2, and a guaranteed 1 "wolf_heart" when sold at a butcher.