aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemyScript.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-10 14:07:30 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-10 14:07:30 +0100
commitd7c8cc30e1d37526cf142f950038500b96760514 (patch)
tree4f8d6c60f33855eda9833c3a24e9ef810014b44d /game/enemy/EnemyScript.cpp
parent22d77b99d700e6317a7432e475330e4bb3c9745d (diff)
balance changes
Diffstat (limited to 'game/enemy/EnemyScript.cpp')
-rw-r--r--game/enemy/EnemyScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/enemy/EnemyScript.cpp b/game/enemy/EnemyScript.cpp
index 24583c0..0822c29 100644
--- a/game/enemy/EnemyScript.cpp
+++ b/game/enemy/EnemyScript.cpp
@@ -19,7 +19,7 @@ using namespace std;
EnemyScript::EnemyScript() {
engine.seed(rd());
this->last_fired = std::chrono::steady_clock::now();
- this->shot_delay = std::chrono::duration<float>(3 + Random::f(1, 0));
+ this->shot_delay = std::chrono::duration<float>(1.5 + Random::f(2, 0));
}
void EnemyScript::init() {
Metadata & meta = this->get_component<Metadata>();
@@ -72,7 +72,7 @@ void EnemyScript::fixed_update(duration_t dt) {
if (elapsed > shot_delay) {
this->shoot(transform.position);
last_fired = now;
- this->shot_delay = std::chrono::duration<float>(Random::f(4, 1.5));
+ this->shot_delay = std::chrono::duration<float>(Random::f(3, 1.5));
}
}