Elin:Fishing: Difference between revisions

From Ylvapedia
(Add fish calculation code.)
mNo edit summary
Line 146: Line 146:
|}
|}


==== Code ====
==== Code (EA 23.37) ====


<syntaxhighlight lang="c#" line="1">
<syntaxhighlight lang="c#" line="1">

Revision as of 19:18, 23 November 2024

Overview

Fishing Table

Fish

Name Sprite LV Minimum Fishing Level Weight Weight (s) Value
Bitterling Elin Fish Sprite Bitterling.png 1 1 120 0.2s 80
Tadpole Elin Fish Sprite Tadpole.png 1 1 30 0.1s 50
Goldfish Elin Fish Sprite Goldfish.png 1 1 140 0.2s 380
Carp Elin Fish Sprite Carp.png 1 1 640 0.7s 520
Eel Elin Fish Sprite Eel.png 5 3 400 0.4s 320
Goby Elin Fish Sprite Goby.png 1 1 220 0.3s 150
Muddler Elin Fish Sprite Muddler.png 1 1 460 0.5s 180
Bass Elin Fish Sprite Bass.png 5 3 540 0.6s 140
Sea Urchin Elin Fish Sprite Sea Urchin.png 5 3 160 0.2s 420
Tilefish Elin Fish Sprite Tilefish.png 10 5 620 0.7s 480
Scad Elin Fish Sprite Scad.png 10 5 360 0.4s 220
Tuna Elin Fish Sprite Tuna.png 10 5 850 0.9s 550
Arowana Elin Fish Sprite Arowana.png 10 5 320 0.4s 400
Sweetfish Elin Fish Sprite Sweetfish.png 5 3 200 0.2s 220
Striped Jack Elin Fish Sprite Striped Jack.png 15 8 440 0.5s 380
Black Bass Elin Fish Sprite B0lack Bass.png 15 8 750 0.8s 680
Mackerel Elin Fish Sprite Mackerel.png 15 8 580 0.6s 380
Red Bream Elin Fish Sprite Red Bream.png 15 8 440 0.5s 760
Turtle Elin Fish Sprite Turtle.png 1 1 120 0.2s 180
Bonito Elin Fish Sprite Bonito.png 15 8 700 0.8s 400
Tuna Elin Fish Sprite Tuna 2.png 20 10 1000 1.0s 840
Blowfish Elin Fish Sprite Blowfish.png 20 10 260 0.3s 1250
Flatfish Elin Fish Sprite Flatfish.png 20 10 500 0.5s 450
Sardine Elin Fish Sprite Sardine.png 5 3 300 0.4s 150
Sea Bream Elin Fish Sprite Sea Bream.png 20 10 400 0.4s 950
Salmon Elin Fish Sprite Salmon.png 25 13 550 0.6s 720
Sand Borer Elin Fish Sprite Sand Borer.png 25 13 400 0.4s 560
Whale Elin Fish Sprite Whale.png 40 20 1200000 1200.0s 45000
Coelacanth Elin Fish Sprite Coelacanth.png 35 18 4800 4.8s 5600
Deep Sea Fish Elin Fish Sprite Deep Sea Fish.png 30 15 1500 1.5s 2400
Ancient Fish Elin Fish Sprite Ancient Fish.png 30 15 2400 2.4s 3800
Shark Elin Fish Sprite Shark.png 25 13 280000 280.0s 12000
Sunfish Elin Fish Sprite Sunfish.png 25 13 9500 9.5s 1800
Moonfish Elin Fish Sprite Moonfish.png 30 15 14000 14.0s 4200

Junk

Calculations

Fish

The formula to calculate the range of fish LV that can be caught based on your fishing level:

rnd(fishingLevel * 2) + 1
  • fishingLevel: Your current fishing skill level.
  • rnd: A random number between 0 and the value passed into the function.

Example

If your fishing level is 3, the potential fish LV is calculated as:

rnd(3 * 2) + 1

This gives a range of 1 to 6, meaning you can catch fish with LV between 1 and 6.

Fishing Level Range Table

Fishing Level Minimum LV Maximum LV
1 1 2
2 1 4
3 1 6
4 1 8
5 1 10
6 1 12
7 1 14
8 1 16
9 1 18
10 1 20
11 1 22
12 1 24
13 1 26
14 1 28
15 1 30
16 1 32
17 1 34
18 1 36
19 1 38
20 1 40

Code (EA 23.37)

int num3 = EClass.rnd(num * 2) + 1;
thing = ThingGen.Create("fish", -1, num3);