]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Stats.h
extracted common capsule base
[l2e.git] / src / common / Stats.h
index 3d813120381c5938d3e42bd5b4897bc7294f1775..6374c3540d5e43dc4861c1257f8966a27cf6d6e8 100644 (file)
@@ -45,6 +45,18 @@ private:
 
 };
 
+
+inline Stats operator +(const Stats &lhs, const Stats &rhs) {
+       return Stats(
+                       lhs.Attack() + rhs.Attack(),
+                       lhs.Defense() + rhs.Defense(),
+                       lhs.Strength() + rhs.Strength(),
+                       lhs.Agility() + rhs.Agility(),
+                       lhs.Intelligence() + rhs.Intelligence(),
+                       lhs.Gut() + rhs.Gut(),
+                       lhs.MagicResistance() + rhs.MagicResistance());
+}
+
 }
 
 #endif /* COMMON_STATS_H_ */