Jump to content

Recommended Posts

Hello everyone, i am porting a mod to SW, but is not working.. I tried using this to DS and RG and works:

GLOBAL.require("map/terrain")
GLOBAL.require("constants")


local ganjabush_rate = (GetModConfigData("ganjabush_rate"))


if GLOBAL.terrain.rooms.CrappyForest then
    GLOBAL.terrain.rooms.CrappyForest.contents.distributeprefabs.ganjabush_small = ganjabush_rate/8
end

But when i tried to use this on shipwreck, nothing happens.

GLOBAL.require("map/terrain")
GLOBAL.require("constants")

local ganjabush_rate = (GetModConfigData("ganjabush_rate"))

if GLOBAL.terrain.rooms.MeadowFlowery then
    GLOBAL.terrain.rooms.MeadowFlowery.contents.distributeprefabs.ganjabush_small = ganjabush_rate/8
end

I tried all the Meadow rooms, and nothing. Am i missing something? Does it needs another "require"? Is there another way to use SW rooms?

I already have shipwrecked_compatible = true in my modinfo.

Thanks.

Edited by kissfm

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...