From 2b56602240cad39f31b40445d8932856777295bd Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 27 Feb 2016 12:06:22 +0100 Subject: [PATCH] Server: Refactor thingproliferation plugin hooks. --- server/config/thingproliferation.py | 6 ++---- server/thingproliferation_helpers.py | 6 ------ 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/server/config/thingproliferation.py b/server/config/thingproliferation.py index 6074f36..a8382d6 100644 --- a/server/config/thingproliferation.py +++ b/server/config/thingproliferation.py @@ -7,7 +7,5 @@ import server.thingproliferation_helpers field_spreadable = server.thingproliferation_helpers.field_spreadable -thingprol_plugin_conditions = \ - server.thingproliferation_helpers.thingprol_plugin_conditions -thingprol_plugin_post_create_hook = \ - server.thingproliferation_helpers.thingprol_plugin_post_create_hook +thingprol_plugin_conditions = lambda x: True +thingprol_plugin_post_create_hook = lambda x: None diff --git a/server/thingproliferation_helpers.py b/server/thingproliferation_helpers.py index f784340..df02313 100644 --- a/server/thingproliferation_helpers.py +++ b/server/thingproliferation_helpers.py @@ -8,9 +8,3 @@ from server.config.world_data import symbols_passable def field_spreadable(field_type, ignore): return field_type in symbols_passable - -def thingprol_plugin_conditions(ignore): - return True - -def thingprol_plugin_post_create_hook(ignore): - pass -- 2.30.2