aboutsummaryrefslogtreecommitdiffstats
path: root/src/wp_shotty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wp_shotty.cpp')
-rw-r--r--src/wp_shotty.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wp_shotty.cpp b/src/wp_shotty.cpp
index 7d61ab3..f314e54 100644
--- a/src/wp_shotty.cpp
+++ b/src/wp_shotty.cpp
@@ -7,7 +7,7 @@
#include "entity.hpp"
wp_shotty::wp_shotty(const char* s, const char* r)
- : AWeapon(100.0f, 3, 10, 0.5, s, r, "shotty") {}
+ : AWeapon(100.0f, 3, 10, 0.5, s, r, "shotty", false) {}
int wp_shotty::bang(std::vector<Entity>* enemies, Entity* player) {
if (barrel == 0 || GetTime() < (t + cooldown)) {
@@ -66,3 +66,7 @@ int wp_shotty::bang(std::vector<Entity>* enemies, Entity* player) {
return (0);
}
}
+
+Projectile const& wp_shotty::getProjectile() const {
+ return (projectile);
+}