Skip to content

Commit

Permalink
Storyteller no longer spams event in infinite cycle with Jester (#8549)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
vode-code authored Feb 14, 2025
1 parent 42673da commit 5cee36c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/game/gamemodes/storyevent.dm
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,4 @@
return max(mod-(abs(val-req)**2),0)/mod

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

0 comments on commit 5cee36c

Please sign in to comment.