mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 21:19:44 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user