tetrified Posted October 17, 2014 Share Posted October 17, 2014 Does anyone know of a way to force the generation of the tentacle reed trap? I just bought RoG and have spent the last ~20 minutes creating worlds and wandering to the swamps to see if it's there, after about five worlds I've given up and decided to come to the forums to ask. after a little searching, I found if protected_override ~= "never" then AddSingleSetPeice(level, "map/protected_resources") endin worldgen_main, which leads to:local Swamp = { ["tenticle_reeds"] = StaticLayout.Get("map/static_layouts/tenticle_reeds"),}Does anyone know how to force worldgen to pick "tenticle_reeds"? I'm a bit rusty with my lua. Link to comment Share on other sites More sharing options...
tetrified Posted October 17, 2014 Author Share Posted October 17, 2014 Nevermind, solved the problem myself, just hacked this function togetherlocal function AddTenticleReeds(level, choicefile) local choices = require(choicefile) assert(choices.Sandbox) local chosen = {target_area=GROUND.MARSH, choice ="tenticle_reeds"} local areas = GetAreasForChoice(chosen.target_area, level) if areas then local num_peices = 1 level.set_pieces[chosen.choice] = {count = num_peices, tasks=areas} endendand called it usingAddTenticleReeds(level, "map/protected_resources") Link to comment Share on other sites More sharing options...
Recommended Posts
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.