Jump to content

Can you overwrite the Lua defination variable?


Windfly

Recommended Posts

Like in media\lua\shared\Foraging\forageSystem.lua

There are a bunch of defination variables for forageSystem:

forageSystem = {
	isInitialised		 = false,
	-- definition tables
	itemDefs             = {}, -- item table
	catDefs    		     = {}, -- category definitions
	zoneDefs             = {}, -- zone definitions
	-- forage system loot tables
	lootTables			 = {},  -- the loot table - see generateLootTable for structure
	lootTableMonth   	 = nil, -- used to keep the loot table in line with the game date
	--
	maxIconsPerZone      = 2000,
	-- sandbox settings
	-- (Abundance Settings)
	NatureAbundance         = { -75, -50, 0, 50, 100 }, -- bonus percent density per zone
	OtherLoot       		= { -75, -50, 0, 50, 100 }, -- bonus percent density per zone
}

Can you make a file to overwrite some of these variables, but not overwriting the entire file? Because that would be a lot of problems when future updates come up.

Link to comment
Share on other sites

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