aboutsummaryrefslogtreecommitdiff
path: root/backend/ElixirConsumableObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/ElixirConsumableObject.cpp')
-rw-r--r--backend/ElixirConsumableObject.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/backend/ElixirConsumableObject.cpp b/backend/ElixirConsumableObject.cpp
new file mode 100644
index 0000000..145e74a
--- /dev/null
+++ b/backend/ElixirConsumableObject.cpp
@@ -0,0 +1,8 @@
+#include "Player.h"
+#include "RNG.h"
+#include "ElixirConsumableObject.h"
+
+void ElixirConsumableObject::consume(Player & player) {
+ player.add_health(RNG::get().rand_int(this->get_potency()));
+}
+