Skip to content

Commit

Permalink
no cap on probability rules for future
Browse files Browse the repository at this point in the history
multimokia committed Jun 4, 2020
1 parent 347bf6f commit a44cb1d
Showing 2 changed files with 4 additions and 8 deletions.
10 changes: 3 additions & 7 deletions Monika After Story/game/event-rules.rpy
Original file line number Diff line number Diff line change
@@ -722,7 +722,7 @@ init -1 python:
Probability rules are just integers that determine the probability of something being selected.
Probabilities lie between 1 and 10, with a default of 1
Probabilities must be greater than 1
This value is designed to be used with mas_utils.weightedChoice, and acts essentially akin to duplicating
the choice `probability` times in the list
@@ -734,9 +734,8 @@ init -1 python:
"""
IN:
probability - the probability to set.
If None is passed in, we use the default priority value.
NOTE: If it is outside the bounds, it will be formatted to fit the bounds
NOTE: 10 probability does NOT mean a 100% chance of selecting something
If None is passed in, we use the default probability value.
NOTE: If it is below 1 probability, is is set to 1
ev - Event to add this rule to. This will replace existing
rules of the same key.
@@ -745,9 +744,6 @@ init -1 python:
if probability is None:
probability = MASProbabilityRule.DEF_PROBABILITY

elif probability > 10:
probability = 10

elif probability < 1:
probability = 1

2 changes: 1 addition & 1 deletion Monika After Story/game/script-farewells.rpy
Original file line number Diff line number Diff line change
@@ -211,7 +211,7 @@ label bye_leaving_already:
m 1ekc "Aw, leaving already?"
m 1eka "It's really sad whenever you have to go..."
m 3eua "Just be sure to come back as soon as you can, okay?"
m "I love you so much, [player]. Stay safe!"
m 3hua "I love you so much, [player]. Stay safe!"
return 'quit'

init 5 python:

0 comments on commit a44cb1d

Please sign in to comment.