Jump to content

Sunken Chest Loot Table?


Recommended Posts

Sunken Chest work similarly to the SW treasures, loot tables are stored in the messagebottletreasures.lua file

Just in case someone want to see all of them, here is the game code with the loot tables, it's quite easy to understand but I've made some clear explanation right bellow :

Spoiler

 


presets =
		{
			---------------------------------------------------------------------------
			luxurytools =
			{
				preset_weight = 0.5,

				guaranteed_loot =
				{
					goldenaxe = 1,
					goldenshovel = 1,
					goldenpickaxe = 1,
				},
				randomly_selected_loot =
				{
					{
						goldenaxe = 2,
						goldenshovel = 2,
						goldenpickaxe = 2,
						redgem = 1,
						bluegem = 1,
						purplegem = 0.5,
						greengem = 0.5,
						orangegem = 0.5,
						yellowgem = 0.5,
					},
				},
				chance_loot =
				{
					hammer = 0.25,
					rocks = 0.65,
					cutstone = 0.5,
					cutstone = 0.5,
					log = 0.65,
					boards = 0.5,
					boards = 0.5,

					bluegem = 0.1,
					purplegem = 0.1,
				},
			},
			---------------------------------------------------------------------------
			saltminer =
			{
				preset_weight = 1,

				guaranteed_loot =
				{
					cookiecuttershell = 2,
					spear = 1,
					boatpatch = 2,
					saltrock = 2,
				},
				randomly_selected_loot =
				{
					{
						cookiecutterhat = 2,
						armormarble = 1,
						footballhat = 1,
						boat_item = 1,
					},
				},
				chance_loot =
				{
					spear = 0.5,
					cookiecuttershell = 0.5,
					cookiecuttershell = 0.25,
					saltrock = 0.5,
					saltrock = 0.5,
					saltrock = 0.25,
					boatpatch = 0.5,
					boatpatch = 0.5,
					boards = 0.25,
					boards = 0.25,
					boards = 0.25,
					boards = 0.25,
				},
			},
			---------------------------------------------------------------------------
			shadowmagic =
			{
				preset_weight = 0.5,

				guaranteed_loot =
				{
					nightmarefuel = 2,
					papyrus = 1,
				},
				randomly_selected_loot =
				{
					{
						pigskin = 1,
						livinglog = 1,
					},
					{
						pigskin = 1,
						livinglog = 1,
					},
					{
						redgem = 1,
						bluegem = 1,
						purplegem = 2,
						livinglog = 0.5,
					},
					{
						nightsword = 1,
						armor_sanity = 1,
						purpleamulet = 1,
					},
				},
				chance_loot =
				{
					nightmarefuel = 0.5,
					nightmarefuel = 0.5,
					purplegem = 0.75,
					purplegem = 0.25,
					goldnugget = 0.5,
					goldnugget = 0.5,
					goldnugget = 0.1,
					papyrus = 0.25,
				},
			},
			---------------------------------------------------------------------------
			traveler =
			{
				preset_weight = 1,

				guaranteed_loot =
				{
					strawhat = 1,
					compass = 1,
				},
				randomly_selected_loot =
				{
					{
						bedroll_straw = 1,
						bedroll_furry = 0.25,
					},
					{
						goggleshat = 1,
						trap = 1,
						birdtrap = 1,
						oceanfishingrod = 1,
						minerhat = 0.5,
						lantern = 0.5,
						cane = 0.75,
						orangestaff = 0.25,
					},
				},
				chance_loot =
				{
					strawhat = 0.1,
					papyrus = 0.5,
					papyrus = 0.5,
					papyrus = 0.5,
					rope = 0.5,
					rope = 0.5,
					rope = 0.5,
					orangegem = 0.1,
				},
			},
			---------------------------------------------------------------------------
			lunarisland =
			{
				preset_weight = 1,

				guaranteed_loot =
				{
					moonglass = 4,
				},
				randomly_selected_loot =
				{
					{
						moonglassaxe = 2,
						glasscutter = 1,
					},
					{
						turf_meteor = 1,
						turf_pebblebeach = 1,
						bathbomb = 1,
						dug_sapling_moon = 1,
					},
					{
						oar_driftwood = 1,
						driftwood_log = 1,
					}
				},
				chance_loot =
				{
					moonglass = 0.5,
					moonglass = 0.5,
					moonglass = 0.5,
					rock_avocado_fruit = 0.5,
					rock_avocado_fruit = 0.5,
					moonrocknugget = 0.25,
				},
			},
			---------------------------------------------------------------------------
			seafarer =
			{
				preset_weight = 1,
				
				guaranteed_loot =
				{
					boards = 3,
					boat_item = 1,
					rope = 2,
					oar = 1,
				},
				randomly_selected_loot =
				{
					{ anchor_item = 1, mast_item = 1, steeringwheel_item = 1, oar = 1, },
					{ anchor_item = 1, mast_item = 1, steeringwheel_item = 1, oar = 1, },
				},
				chance_loot =
				{
					rope = 0.25,
					boards = 0.5,
					boards = 0.5,
					bluegem = 0.1,
					redgem = 0.1,
					malbatross_feathered_weave = 0.1,
				},
			},
			---------------------------------------------------------------------------
			miner =
			{
				preset_weight = 1,
				
				guaranteed_loot =
				{
					goldnugget = 4,
					rocks = 2,
					pickaxe = 1,
				},
				randomly_selected_loot =
				{
					{ redgem = 1, bluegem = 1, yellowgem = 0.5, greengem = 0.5, orangegem = 0.5, purplegem = 0.5, },
					{ redgem = 1, bluegem = 1, yellowgem = 0.5, greengem = 0.5, orangegem = 0.5, purplegem = 0.5, },
					{ pickaxe = 3, goldenpickaxe = 1 },
				},
				chance_loot =
				{
					goldnugget = 0.5,
					goldnugget = 0.25,
					rocks = 0.5,
					redgem = 0.25,
					redgem = 0.25,
					bluegem = 0.25,
					bluegem = 0.25,
					cutstone = 0.5,
				},
			},
			---------------------------------------------------------------------------
			warpreparations =
			{
				preset_weight = 1,
				
				guaranteed_loot =
				{
					armorwood = 1,
					spear = 1,
				},
				randomly_selected_loot =
				{
					{
						armormarble = 1,
						footballhat = 1,
						staff_tornado = 1,
						whip = 0.5,
					},
					{
						boomerang = 1,
						spear = 1,
						axe = 1,
						blowdart_fire = 1,
						blowdart_sleep = 1,
						blowdart_yellow = 1,
					},
				},
				chance_loot =
				{
					trap_teeth = 0.5,
					trap_teeth = 0.5,
					blowdart_pipe = 0.5,
					blowdart_pipe = 0.5,
					blowdart_pipe = 0.5,
					flint = 0.5,
					flint = 0.25,
					flint = 0.25,
					flint = 0.25,
					flint = 0.25,
				},
			},
			---------------------------------------------------------------------------
			firehazard =
			{
				preset_weight = 1,
				
				guaranteed_loot =
				{
					ash = 8,
					firestaff = 1,
					charcoal = 3,
				},
				chance_loot =
				{
					ash = 0.5,
					ash = 0.5,
					ash = 0.5,
					ash = 0.5,
					ash = 0.5,
					ash = 0.5,
					firestaff = 0.05,
					charcoal = 0.5,
					charcoal = 0.5,
				},
			},
			---------------------------------------------------------------------------
			telelocator =
			{
				preset_weight = 0.5,
				
				guaranteed_loot =
				{
					telestaff = 1,
				},
				randomly_selected_loot =
				{
					{
						purplegem = 1,
						livinglog = 1,
						nightmarefuel = 1,
						goldnugget = 1,
					},
					{
						purplegem = 1,
						livinglog = 1,
						nightmarefuel = 1,
					},
				},
				chance_loot =
				{
					livinglog = 0.5,
					purplegem = 0.25,
					purplegem = 0.25,
					goldnugget = 0.5,
					nightmarefuel = 0.25,
				},
			},
			---------------------------------------------------------------------------
		}

 

Now for details :

preset_weight is the chance/rarity of a loot table, the lower it is, the less it will be chosen.

guaranteed_loot the following items to this list will always be in the treasure.

randomly_selected_loot only one of the items for each tables next will be selected

chance_loot every items can be picked, but it's calculated with a chance basis.

 

So for instance, the lunarisland treasure table is supposed to be like that :

 

  • Frequency : default (preset_weight  = 1)

 

  • Loots :
    • Moon Shard x4

 

  • Random :
    • Moon Glass Axe (66%) or Glass Cute (33%)
    • Meteor Turf or Rocky Beach Turf or Bath Bomb or Lunar Sapling
    • Driftwood Oar or Driftwood Piece

 

  • Chance loots :
    • Moon Shard (50%)
    • Moon Shard (50%)
    • Stone Fruit (50%)
    • Stone Fruit (50%)
    • Moon Rock (25%)
Link to comment
Share on other sites

11 minutes ago, ADM said:

cane = 0.75, orangestaff = 0.25,

Oh damn, i had no idea the drops were this good, guess i can consider myself lucky by finding fire staff, green gem and malbatross feathered weaver right after finishing a treasure run.

Of course i was thinking there are actual keys to these chests untill realising hammer exists smh

Link to comment
Share on other sites

1 minute ago, bruhmoment23 said:

Of course i was thinking there are actual keys to these chests untill realising hammer exists smh

First thing I tried xD latest?cb=20161211195702 but yeah we're unfortunately forced to destroy the chests... But they look so damn good !

I feel like we should have the ability to use a key to remove the chains and then use Sunken Chests as portable containers. Of course they're heavy but it would be a good reason to use Beefalos or Boats (and we can now place Beefalo on boats, how convenient) to transport a large quantity of stuff.

Only issue is, they would have to be terribly big cause backpacks can do the same thing without any restriction. they're just not that pretty !

Link to comment
Share on other sites

2 minutes ago, ADM said:

-snip-

Agreed. It would be even cooler if the sunken chests had somekind of appearence variety based off their loot, for example salt miner being covered in salt and cookie cutter shell fragments, traveler bound in rope and stamps, similar to chest skin ( travelers trunk ). They would make a solid piece for the treasury in a megabase.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...