summaryrefslogtreecommitdiff
path: root/npc/functions/fishing.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-12-23 15:01:40 -0200
committerJesusaves <cpntb1@ymail.com>2018-12-23 15:01:40 -0200
commit2787a50820f68f3a360445bfdf4aef4877c8be1c (patch)
tree50946923e8fd2811842ed6b9dda23cd42cddd9a2 /npc/functions/fishing.txt
parent99bbfaeb1d183a85705a0a42b288883537229e71 (diff)
downloadserverdata-2787a50820f68f3a360445bfdf4aef4877c8be1c.tar.gz
serverdata-2787a50820f68f3a360445bfdf4aef4877c8be1c.tar.bz2
serverdata-2787a50820f68f3a360445bfdf4aef4877c8be1c.tar.xz
serverdata-2787a50820f68f3a360445bfdf4aef4877c8be1c.zip
Actually, I just remembered a small fishing tip, about fishing at night.
During night, fishes may bite the bait a bit faster than during day. The time gain is currently irrelevant (at most 2 secs). But it can be tweaked later.
Diffstat (limited to 'npc/functions/fishing.txt')
-rw-r--r--npc/functions/fishing.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index 44316bf40..3777a17fc 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -118,6 +118,11 @@ function script fishing {
.@wait_time_max = getvariableofnpc(.wait_time_max, .@npc$); // max amount of time to wait for the line to sink
.@wait_time_max = (.@wait_time_max ? .@wait_time_max : 18000);
+ // During night time there are more fishes, and therefore, it is easier to fish
+ // This will make they reply at most 10% faster. Default is a 2 second max delay gain
+ if (is_night())
+ .@wait_time_max = min(.@wait_time_min, .@wait_time_max*9/10);
+
.@catch_time = getvariableofnpc(.catch_time, .@npc$); // the player must catch the fish within X ms after the line sinks
.@catch_time = (.@catch_time ? .@catch_time : 5000);