From dc059dadb8addbfe79524b314c45e31905424bf8 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 16 Aug 2021 04:06:06 +0200 Subject: [PATCH] Restrict access to Hive and Crypt in multiplayer --- Source/error.cpp | 6 +++--- Source/trigs.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/error.cpp b/Source/error.cpp index 4ad4a4da9..d86648fe7 100644 --- a/Source/error.cpp +++ b/Source/error.cpp @@ -65,9 +65,9 @@ const char *const MsgStrings[] = { N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "Mysteries are revealed in the light of reason"), N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "Those who are last may yet be first"), N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "Generosity brings its own rewards"), - N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "You must be at least level 8 to use this."), - N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "You must be at least level 13 to use this."), - N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "You must be at least level 17 to use this."), + N_("You must be at least level 8 to use this."), + N_("You must be at least level 13 to use this."), + N_("You must be at least level 17 to use this."), N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "Arcane knowledge gained!"), N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "That which does not kill you..."), N_(/* TRANSLATORS: Shrine Text. Keep atmospheric. :) */ "Knowledge is power."), diff --git a/Source/trigs.cpp b/Source/trigs.cpp index 19489b140..33f6150e4 100644 --- a/Source/trigs.cpp +++ b/Source/trigs.cpp @@ -864,13 +864,13 @@ void CheckTriggers() abortflag = EMSG_REQUIRES_LVL_8; } - if (trigs[i]._tlvl == 9 && myPlayer._pLevel < 13) { + if (IsAnyOf(trigs[i]._tlvl, 9, 17) && myPlayer._pLevel < 13) { abort = true; position.x += 1; abortflag = EMSG_REQUIRES_LVL_13; } - if (trigs[i]._tlvl == 13 && myPlayer._pLevel < 17) { + if (IsAnyOf(trigs[i]._tlvl, 13, 21) && myPlayer._pLevel < 17) { abort = true; position.y += 1; abortflag = EMSG_REQUIRES_LVL_17;