diff options
-rw-r--r-- | src/net/eathena/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/serverfeatures.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.cpp | 5 | ||||
-rw-r--r-- | src/net/tmwa/serverfeatures.h | 2 |
5 files changed, 16 insertions, 0 deletions
diff --git a/src/net/eathena/serverfeatures.cpp b/src/net/eathena/serverfeatures.cpp index 688e03c46..30cd90efc 100644 --- a/src/net/eathena/serverfeatures.cpp +++ b/src/net/eathena/serverfeatures.cpp @@ -115,6 +115,11 @@ bool ServerFeatures::haveAccountOtherGender() const return false; } +bool ServerFeatures::haveCharOtherGender() const +{ + return serverVersion >= 10; +} + bool ServerFeatures::haveMonsterAttackRange() const { return false; diff --git a/src/net/eathena/serverfeatures.h b/src/net/eathena/serverfeatures.h index 0423bde57..2b6aa8245 100644 --- a/src/net/eathena/serverfeatures.h +++ b/src/net/eathena/serverfeatures.h @@ -66,6 +66,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveAccountOtherGender() const override final; + bool haveCharOtherGender() const override final; + bool haveMonsterAttackRange() const override final; bool haveMonsterName() const override final; diff --git a/src/net/serverfeatures.h b/src/net/serverfeatures.h index c0f8fe5c8..28d464e52 100644 --- a/src/net/serverfeatures.h +++ b/src/net/serverfeatures.h @@ -63,6 +63,8 @@ class ServerFeatures notfinal virtual bool haveAccountOtherGender() const = 0; + virtual bool haveCharOtherGender() const = 0; + virtual bool haveMonsterAttackRange() const = 0; virtual bool haveMonsterName() const = 0; diff --git a/src/net/tmwa/serverfeatures.cpp b/src/net/tmwa/serverfeatures.cpp index 461c25e8d..2fb96f781 100644 --- a/src/net/tmwa/serverfeatures.cpp +++ b/src/net/tmwa/serverfeatures.cpp @@ -114,6 +114,11 @@ bool ServerFeatures::haveAccountOtherGender() const return false; } +bool ServerFeatures::haveCharOtherGender() const +{ + return false; +} + bool ServerFeatures::haveMonsterAttackRange() const { return tmwServerVersion >= 0x0f0513; diff --git a/src/net/tmwa/serverfeatures.h b/src/net/tmwa/serverfeatures.h index 582bea20b..20c09bc47 100644 --- a/src/net/tmwa/serverfeatures.h +++ b/src/net/tmwa/serverfeatures.h @@ -66,6 +66,8 @@ class ServerFeatures final : public Net::ServerFeatures bool haveAccountOtherGender() const override final; + bool haveCharOtherGender() const override final; + bool haveMonsterAttackRange() const override final; bool haveMonsterName() const override final; |