Browse Source

Restrict access to Hive and Crypt in multiplayer

pull/2610/head
Anders Jenbo 5 years ago
parent
commit
dc059dadb8
  1. 6
      Source/error.cpp
  2. 4
      Source/trigs.cpp

6
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."),

4
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;

Loading…
Cancel
Save