diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-22 07:39:54 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-22 07:39:54 +0100 |
commit | aa872f4f35890027e65c930cc9cc603b5db22906 (patch) | |
tree | 48b53e75fd8ed0ac7bea62c73ddd85975cc47f43 /src/wp_shotty.cpp | |
parent | Parsing: the great rework (tm) finally works as intended (diff) | |
download | threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.gz threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.bz2 threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.xz threshold-aa872f4f35890027e65c930cc9cc603b5db22906.tar.zst threshold-aa872f4f35890027e65c930cc9cc603b5db22906.zip |
Weapons: amazing job adding another weapon salade ! outstanding
Diffstat (limited to 'src/wp_shotty.cpp')
-rw-r--r-- | src/wp_shotty.cpp | 6 |
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); +} |