mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Adjusted event chance modifier based on last event.
Had the wrong numbers, basically every event would happen only once.
This commit is contained in:
@@ -90,7 +90,8 @@ var/list/event_last_fired = list()
|
||||
|
||||
for(var/event_type in event_last_fired) if(possibleEvents[event_type])
|
||||
var/time_passed = world.time - event_last_fired[event_type]
|
||||
var/weight_modifier = max(0, 60 * 60 - time_passed / 100)
|
||||
var/full_recharge_after = 60 * 60 * 10 * 3 // 3 hours
|
||||
var/weight_modifier = max(0, (full_recharge_after - time_passed) / 300)
|
||||
|
||||
possibleEvents[event_type] = max(possibleEvents[event_type] - weight_modifier, 0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user