Skip to content

Commit 5cee36c

Browse files
authored
Storyteller no longer spams event in infinite cycle with Jester (#8549)
* chaos level now automatically increases hourly * switches occurence modifier's effects from weight to cost * temporal anomaly * minimum cost of events now equal to one
1 parent 42673da commit 5cee36c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/game/gamemodes/storyevent.dm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@
159159
return max(mod-(abs(val-req)**2),0)/mod
160160

161161
/datum/storyevent/proc/get_cost(var/event_type)
162-
return event_pools[event_type] * GLOB.storyteller.repetition_multiplier ** occurrences
162+
return max(event_pools[event_type] * GLOB.storyteller.repetition_multiplier ** occurrences, 1)

0 commit comments

Comments
 (0)