Jump to content

Elin:Code Analysis/Fishing: Difference between revisions

m
no edit summary
(Add fishing land feat calculations.)
mNo edit summary
Line 162: Line 162:
<pre>if (additionalFishChance >= rnd(100))</pre>
<pre>if (additionalFishChance >= rnd(100))</pre>


If the random number generated by <code>rnd(100)</code> is '''50 or less''', '''num2''' (the final number of fish) will increase by 1. This means that if the random number is between '''0 and 50''' (inclusive), you will catch an additional fish, making '''num2''' increase by 1.
If the random number generated by <code>rnd(100)</code> is '''50 or less''', '''numberOfFish''' will increase by 1. This means that if the random number is between '''0 and 50''' (inclusive), you will catch an additional fish, making '''numberOfFish''' increase by 1.


So, '''numberOfFish''' is increased by '''1''' based on land feats, making it:
So, '''numberOfFish''' is increased by '''1''' based on land feats, making it:
133

edits