forked from github/server
handle eressea.ini containing a 0 to disable modules
This commit is contained in:
parent
1ac64650b0
commit
0b6f5aa064
|
@ -1,4 +1,4 @@
|
|||
if not config.autoseed then return nil end
|
||||
if not config.autoseed or config.autoseed==0 then return nil end
|
||||
local autoseed = {}
|
||||
|
||||
-- minimum required resources in the 7-hex neighborhood:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
-- Muschelplateau
|
||||
|
||||
if not config.embassy then return nil end
|
||||
if not config.embassy or config.embassy==0 then return nil end
|
||||
|
||||
local embassy = {}
|
||||
local home = nil
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-- DEPRECATED
|
||||
if not config.eternath then return nil end
|
||||
if not config.eternath or config.eternath==0 then return nil end
|
||||
-- implements parts of a quest in E2
|
||||
-- this module is deprecated, because it puts functions in the global environment for at_building_action
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if not config.ponnuki then return nil end
|
||||
if not config.ponnuki or config.ponnuki==0 then return nil end
|
||||
local ponnuki = {}
|
||||
|
||||
local directions = { "NW", "NO", "O", "SO", "SW", "W" }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-- DEPRECATED
|
||||
if not config.wedding then return nil end
|
||||
if not config.wedding or config.wedding==0 then return nil end
|
||||
|
||||
-- this script contains the action functions for the two portals
|
||||
-- used on the jadee/wildente wedding island. the two _action functions
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
if not config.xmas then return nil end
|
||||
if not config.xmas or config.xmas==0 then return nil end
|
||||
|
||||
local gifts = {
|
||||
e2 = {
|
||||
|
|
Loading…
Reference in New Issue