The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about Fishing and r_water
Author Message
Archaaz
Journeyman
*

Posts: 98
Likes Given: 12
Likes Received: 4 in 4 posts
Joined: Aug 2013
Reputation: 1



Post: #1
Question about Fishing and r_water
I am trying to add specific fresh and salt water fish to fishing. This is not a make or break feature of my intended shard, but think it would add some flavor, and help to capture the type of shard I am trying to create (more subdued, semi-realistic, RP-focused).

My thought is to make two of the normal larger fish fresh water (trout and salmon), and two salt water (cod and mackerel or sturgeon).

I notice in sphere_types that t_water is defined:

Quote:[TYPEDEF t_water]
TERRAIN = 0a8 0ab
TERRAIN = 0136 0137

But then looking through sphere_region, there is r_default_water (coastal water) and r_water (deep water).

Quote:sphere_region:

[REGIONTYPE r_default_water t_water]
// Default water area resources
// This is not ocean. More like coastlines.
RESOURCES=50.0 mr_nothing
RESOURCES=20.0 mr_fish1
RESOURCES=20.0 mr_fish2
RESOURCES=20.0 mr_fish3
RESOURCES=20.0 mr_fish4
RESOURCES=0.2 mr_footwear

[REGIONTYPE r_water t_water]
// Default water area resources
// This IS ocean. Maybe can find creatures here?
RESOURCES=25.0 mr_nothing
RESOURCES=25.0 mr_fish1
RESOURCES=25.0 mr_fish2
RESOURCES=25.0 mr_fish3
RESOURCES=25.0 mr_fish4
RESOURCES=1.5 mr_fish_highly_peculiar
RESOURCES=1.5 mr_fish_prized
RESOURCES=1.5 mr_fish_wondrous
RESOURCES=1.5 mr_fish_truly_rare
RESOURCES=0.5 mr_sos_bottle

I assume r_default_water denotes tiles (items) 1796-17B2, and r_water is tiles 0A8-0Ab. Is this defined somewhere within Sphere, or hard-coded?

I have been editing map0 with CentrEd, and had thought to perhaps take 0136 and 0137 (which do not seem to be used?) and to make an r_fresh_water, then replace all the tiles in the rivers and lakes with those tiles. In which file would I define this new fresh water, and how? Of course the water edging tiles 179D-17B2 might cause some problems with this method, as they would also have to be used for coastal regions.

My fall back is to simply allow trout and salmon to be caught in r_default_water, as they can at times be found in salt water. Or to simply say to heck with it and leave it as is with generic fish.

Is there an easier method of doing this, or am I on the right track? Or should I just leave it as is? Thanks in advance.
11-09-2013 10:32 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Question about Fishing and r_water - Archaaz - 11-09-2013 10:32 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)