forked from github/server
make these modules optional
This commit is contained in:
parent
d29fd96f59
commit
8d4a83d1b4
|
@ -1,3 +1,4 @@
|
||||||
|
if not config.autoseed then return nil end
|
||||||
local autoseed = {}
|
local autoseed = {}
|
||||||
|
|
||||||
-- minimum required resources in the 7-hex neighborhood:
|
-- minimum required resources in the 7-hex neighborhood:
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
-- Muschelplateau
|
-- Muschelplateau
|
||||||
|
|
||||||
local embassy = {}
|
|
||||||
local home = nil
|
|
||||||
|
|
||||||
-- global exports (use item)
|
-- global exports (use item)
|
||||||
function use_seashell(u, amount)
|
function use_seashell(u, amount)
|
||||||
-- Muschelplateau...
|
-- Muschelplateau...
|
||||||
|
@ -17,6 +14,11 @@ function use_seashell(u, amount)
|
||||||
return -4
|
return -4
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not config.embassy then return nil end
|
||||||
|
|
||||||
|
local embassy = {}
|
||||||
|
local home = nil
|
||||||
|
|
||||||
function embassy.init()
|
function embassy.init()
|
||||||
home = get_region(165,30)
|
home = get_region(165,30)
|
||||||
if home==nil then
|
if home==nil then
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-- DEPRECATED
|
-- DEPRECATED
|
||||||
|
if not config.eternath then return nil end
|
||||||
-- implements parts of a quest in E2
|
-- implements parts of a quest in E2
|
||||||
-- this module is deprecated, because it puts functions in the global environment for at_building_action
|
-- this module is deprecated, because it puts functions in the global environment for at_building_action
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
if not config.ponnuki then return nil end
|
||||||
local ponnuki = {}
|
local ponnuki = {}
|
||||||
|
|
||||||
local directions = { "NW", "NO", "O", "SO", "SW", "W" }
|
local directions = { "NW", "NO", "O", "SO", "SW", "W" }
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
-- DEPRECATED
|
-- DEPRECATED
|
||||||
|
if not config.wedding then return nil end
|
||||||
|
|
||||||
-- this script contains the action functions for the two portals
|
-- this script contains the action functions for the two portals
|
||||||
-- used on the jadee/wildente wedding island. the two _action functions
|
-- used on the jadee/wildente wedding island. the two _action functions
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
if not config.xmas then return nil end
|
||||||
|
|
||||||
local gifts = {
|
local gifts = {
|
||||||
e2 = {
|
e2 = {
|
||||||
{ year = 2015, turn = 959, item = 'snowglobe', msg='santa_f' },
|
{ year = 2015, turn = 959, item = 'snowglobe', msg='santa_f' },
|
||||||
|
|
Loading…
Reference in New Issue