Starbound

Starbound

Vis statistikker:
In Carta 4. sep. 2017 kl. 13:44
Higher Level Tenants
I wanted to know if it was poseble to make it so tenets give you level 6 loot no mater what planet yor on. So I went diging through the assets file and found this.

function spawnRentTreasure(args, board)
local promise = world.sendEntityMessage(storage.respawner, "getRent")
while not promise:finished() do
coroutine.yield()
end

local rent = promise:result()
world.spawnTreasure(args.position, rent.pool, rent.level)
return true
end

Could I just replace rent.level with the number 6?
I dont know the right way to go about this so this is just a shot in the dark.
Dato opslået: 4. sep. 2017 kl. 13:44
Indlæg: 0