Jump to content

Elin:Code Analysis/Fishing: Difference between revisions

m
Small error.
m (Add fish success calculation.)
m (Small error.)
Line 231: Line 231:
* '''fishingLevel''': Your current fishing skill level.
* '''fishingLevel''': Your current fishing skill level.
* '''rnd''': A random number between '''0''' and the value passed into the function.
* '''rnd''': A random number between '''0''' and the value passed into the function.
* '''Clamp''': Ensures the value stays between '''5''' (hardest threshold to surpass) and '''10''' (easiest threshold to surpass).
* '''Clamp''': Ensures the value stays between '''5''' (easiest) and '''10''' (hardest).


The actual success logic occurs as follows:
The actual success logic occurs as follows:
133

edits