Jump to content

Elin:Code Analysis/Fishing: Difference between revisions

Fix number of fish table and example.
(Created a page about Fishing Analysis)
 
(Fix number of fish table and example.)
Line 84: Line 84:
====Example====
====Example====


If your fishing level is '''3''', and the fish LV is determined to be '''5''', the potential number of fish is calculated as:
If your fishing level is '''22''', and the fish LV is determined to be '''1''', the potential number of fish is calculated as:


<pre>rnd(3 / (5 + 10)) + 1</pre>
<pre>rnd(22 / (1 + 10)) + 1</pre>


This simplifies to:
This simplifies to:


<pre>rnd(3 / 15) + 1</pre>
<pre>rnd(22 / 11) + 1</pre>


The <code>rnd(3 / 15)</code> generates a random number between '''0''' and approximately '''0.2'''. Adding 1 ensures that you will catch at least 1 fish.
The <code>rnd(2)</code> generates a random number between '''0''' and '''1'''. Adding 1 ensures that you will catch at least '''1''' fish, and the number of fish can either be '''1''' or '''2''', depending on the random result.


====Number of Fish Table====
====Number of Fish Table====
Line 100: Line 100:
!Fish LV!!Minimum Fishing Level for 2 Fish!!Minimum Fishing Level for 3 Fish
!Fish LV!!Minimum Fishing Level for 2 Fish!!Minimum Fishing Level for 3 Fish
|-
|-
|1||11||22
|1||22||33
|-
|-
|5||16||32
|5||30||45
|-
|-
|10||21||42
|10||40||60
|-
|-
|15||26||52
|15||50||75
|-
|-
|20||31||62
|20||60||90
|-
|-
|25||36||72
|25||70||105
|-
|-
|30||41||82
|30||80||120
|-
|-
|35||46||92
|35||90||135
|-
|-
|40||51||102
|40||100||150
|}
|}


133

edits