From: Christian Heller Date: Sat, 27 Feb 2016 11:06:22 +0000 (+0100) Subject: Server: Refactor thingproliferation plugin hooks. X-Git-Tag: tce~128 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/todos?a=commitdiff_plain;h=2b56602240cad39f31b40445d8932856777295bd;p=plomrogue Server: Refactor thingproliferation plugin hooks. --- 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