Fixed a problem with events probability.

I multiplied with "percent" chances, without dividing by 100. Would lead to permanently 100% chance of anything.
This commit is contained in:
cib
2012-12-16 16:16:21 +01:00
parent d94faea360
commit 847c1efd0f
+1 -1
View File
@@ -74,7 +74,7 @@
base_chance = 1.1
// Trigger the event based on how likely it currently is.
if(!prob(chance * eventchance * base_chance)) // "normal" event chance at 20 players
if(!prob(chance * eventchance * base_chance / ( 100 * 100))) // "normal" event chance at 20 players
return 0
switch(picked_event)