Jump to content

Recommended Posts

I'm looking through the Hamlet room files, and I notice that, in the terrain_deeprainforest, every PigRuinsHead and PigRuinsArtichoke has been commented out, for for example the BG_deeprainforest_base room below. I did a content search for the pig_ruins_head and the pig_ruins_artichoke in the hamlet folders, and I could only find them in the this file, as part of the static layout for the pig ruins entrances, and declared in the list of prefabs. So how exactly are these crumbling added to the deep rainforests?

AddRoom("BG_deeprainforest_base", {
					colour={r=0.2,g=0.6,b=0.2,a=0.3},
					value = GROUND.DEEPRAINFOREST,
					tags = {"ExitPiece","Bramble","Canopy"},
					contents =  {
--[[
									countstaticlayouts={
										["PigRuinsHead"]= math.max(0,2 - math.random(0,15)),
										["PigRuinsArtichoke"]= math.max(0,2 - math.random(0,15)),										
									},	
]]
					                distributepercent = 0.5,
					                distributeprefabs=
					                {
										rainforesttree = 2,--4,
										tree_pillar = 0.5,--0.5,
										nettle = 0.12,
										flower_rainforest = 1,
									--	berrybush = 1,
										lightrays_jungle = 1.2,								
										deep_jungle_fern_noise = 4,
										jungle_border_vine = 0.5,
										fireflies = 0.2,
										hanging_vine_patch = 0.1,
										randomrelic = 0.02,
										randomruin = 0.02,	
										randomdust = 0.02,	
										pig_ruins_torch = 0.02,
								--		pig_ruins_artichoke = 0.01,
								--		pig_ruins_head = 0.01,
										mean_flytrap = 0.05,
										rock_flippable = 0.1,
										radish_planted = 0.5,										
					                },
					                
					                countprefabs = 
					                {
					                	vampirebatcave_potential = 1
					            	},
					            	
					            }
					})

 

Okay I figured out that it's at the level of the tasks that they are added as part of the setpieces:

AddTask("Deep_rainforest", {
		locks=LOCKS.JUNGLE_DEPTH_1,
		keys_given={KEYS.JUNGLE_DEPTH_2,KEYS.JUNGLE_DEPTH_3}, 
		room_choices={
			["BG_rainforest_base"] = math.random(2,3),
			["BG_deeprainforest_base"] =  1,
			["deeprainforest_spider_monkey_nest"] =  math.random(1,2), 
			["deeprainforest_fireflygrove"] =  math.random(1,1), 
			["deeprainforest_flytrap_grove"] = math.random(1,2),
			["deeprainforest_anthill_exit"] = 1,			
		},  
		set_pieces={
			{name="PigRuinsHead"},
			{name="PigRuinsHead"},
			{name="PigRuinsArtichoke"},
			{name="PigRuinsArtichoke"},
		},		
		room_bg=GROUND.DEEPRAINFOREST,
		background_room="BG_deeprainforest_base",
		colour={r=0.2,g=0.6,b=0.2,a=0.3}
	}) 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...