From aa872f4f35890027e65c930cc9cc603b5db22906 Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sat, 22 Jan 2022 07:39:54 +0100 Subject: Weapons: amazing job adding another weapon salade ! outstanding --- src/wp_enemyslingshot.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/wp_enemyslingshot.cpp') diff --git a/src/wp_enemyslingshot.cpp b/src/wp_enemyslingshot.cpp index 068f404..2a212d6 100644 --- a/src/wp_enemyslingshot.cpp +++ b/src/wp_enemyslingshot.cpp @@ -8,7 +8,7 @@ #include "gameplay.hpp" wp_enemysling::wp_enemysling(const char* s, const char* r) - : AWeapon(300.0f, 10, 10, 0.0, s, r, "sling") {} + : AWeapon(300.0f, 10, 10, 0.0, s, r, "sling", false) {} int wp_enemysling::bang(std::vector* enemies, Entity* baddie) { if (barrel == 0) { @@ -39,3 +39,7 @@ int wp_enemysling::bang(std::vector* enemies, Entity* baddie) { return (0); } } + +Projectile const& wp_enemysling::getProjectile() const { + return (projectile); +} -- cgit v1.2.3