aboutsummaryrefslogtreecommitdiffstats
path: root/src/wp_assaultrifle.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-22 07:39:54 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-22 07:39:54 +0100
commitaa872f4f35890027e65c930cc9cc603b5db22906 (patch)
tree48b53e75fd8ed0ac7bea62c73ddd85975cc47f43 /src/wp_assaultrifle.cpp
parentParsing: the great rework (tm) finally works as intended (diff)
downloadthreshold-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_assaultrifle.cpp')
-rw-r--r--src/wp_assaultrifle.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wp_assaultrifle.cpp b/src/wp_assaultrifle.cpp
index 0be3d5b..f985d78 100644
--- a/src/wp_assaultrifle.cpp
+++ b/src/wp_assaultrifle.cpp
@@ -7,7 +7,7 @@
#include "entity.hpp"
wp_assaultrifle::wp_assaultrifle(const char* s, const char* r)
- : AWeapon(300.0f, 1, 30, 0.0, s, r, "ar") {}
+ : AWeapon(300.0f, 1, 30, 0.0, s, r, "ar", false) {}
int wp_assaultrifle::bang(std::vector<Entity>* enemies, Entity* player) {
if (barrel == 0) {
@@ -66,3 +66,7 @@ int wp_assaultrifle::bang(std::vector<Entity>* enemies, Entity* player) {
return (0);
}
}
+
+Projectile const& wp_assaultrifle::getProjectile() const {
+ return (projectile);
+}