handle eressea.ini containing a 0 to disable modules

This commit is contained in:
Enno Rehling 2017-08-28 00:04:05 +02:00
parent 1ac64650b0
commit 0b6f5aa064
6 changed files with 6 additions and 6 deletions

View File

@ -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 = {} local autoseed = {}
-- minimum required resources in the 7-hex neighborhood: -- minimum required resources in the 7-hex neighborhood:

View File

@ -1,6 +1,6 @@
-- Muschelplateau -- Muschelplateau
if not config.embassy then return nil end if not config.embassy or config.embassy==0 then return nil end
local embassy = {} local embassy = {}
local home = nil local home = nil

View File

@ -1,5 +1,5 @@
-- DEPRECATED -- 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 -- 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

View File

@ -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 ponnuki = {}
local directions = { "NW", "NO", "O", "SO", "SW", "W" } local directions = { "NW", "NO", "O", "SO", "SW", "W" }

View File

@ -1,5 +1,5 @@
-- DEPRECATED -- 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 -- 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

View File

@ -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 = { local gifts = {
e2 = { e2 = {