1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-12-19 16:25:47 +01:00

rewrite random loot

This commit is contained in:
2015-07-27 22:59:19 +02:00
parent f593baf868
commit cd13872ed8
4 changed files with 39 additions and 26 deletions

View File

@@ -172,7 +172,7 @@ local FISHING_BOBBER_ENTITY={
self.prize = fishing_setting.prizes["fish"][math.random(1,#fishing_setting.prizes["fish"])]
else
if math.random(1, 100) <= 10 then
self.prize = fishing_setting.prizes["plants"][math.random(1,#fishing_setting.prizes["plants"])]
self.prize = fishing_setting.func.get_loot()
end
end