From 37edffd788a7eb0a257de70b14bdf2dbf5b23e12 Mon Sep 17 00:00:00 2001 From: SoundSSGood <87084363+SoundSSGood@users.noreply.github.com> Date: Sat, 18 Mar 2023 00:48:10 +0200 Subject: [PATCH] GameConstants upd --- lib/GameConstants.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/GameConstants.h b/lib/GameConstants.h index 0b04fe48a..cd51e33d7 100644 --- a/lib/GameConstants.h +++ b/lib/GameConstants.h @@ -1039,6 +1039,15 @@ public: ID_LIKE_CLASS_COMMON(ArtifactPosition, EArtifactPosition) EArtifactPosition num; + + STRONG_INLINE EArtifactPosition operator+(const int arg) + { + return EArtifactPosition(static_cast(num) + arg); + } + STRONG_INLINE EArtifactPosition operator+(const EArtifactPosition & arg) + { + return EArtifactPosition(static_cast(num) + static_cast(arg)); + } }; ID_LIKE_OPERATORS(ArtifactPosition, ArtifactPosition::EArtifactPosition)