summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-27 15:54:43 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-03-27 15:54:43 +0200
commiteafbe41b2ceb77f6fcb5f39b80d683d1e8e1e60e (patch)
treeff866a196250e7737cfbc32c685932b38343795a /src/game
parente03ca29dcf256cd5c37772b11cd702ca61bf43d7 (diff)
Rebalance the game - make it slower.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/units.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index 0bf46a2..bc3a80d 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -368,14 +368,14 @@ void unit_soldier_t::target_and_attack(void)
next_targetting = game->now + 0.2;
- target = find_target(world, x, 10.0f, false);
+ target = find_target(world, x, 5.0f, false);
if (!target)
return;
last_target_time = game->now;
last_target_x = target->x;
- if (last_attack + 1.5 > game->now)
+ if (last_attack + game->dice_prng.next_float(1.4f, 1.6f) > game->now)
return;
trace = world->trace(x, target->x, CF_SOLID);
@@ -443,12 +443,12 @@ void unit_soldier_t::on_think(void)
if (!panic) {
target_and_attack();
- keep_moving(4.0);
+ keep_moving(2.0);
if (!move.moving)
move_marker.reset();
} else {
move.moving = true;
- keep_moving(6.0);
+ keep_moving(3.0);
if (game->now >= panic_turn) {
v2f_t t;
@@ -567,8 +567,7 @@ void unit_spider_t::target_and_attack(void)
return;
start_moving(target->x);
- next_targetting = game->now + remap(game->dice_prng.next_float(),
- 0.0f, 1.0f, 0.8f, 1.2f);
+ next_targetting = game->now + game->dice_prng.next_float(0.2f, 0.4f);
if (last_attack + 0.5 > game->now)
return;
@@ -588,7 +587,7 @@ void unit_spider_t::on_think(void)
{
target_and_attack();
- keep_moving(7.0);
+ keep_moving(4.0);
if (!move.moving && wake_time + 5 < game->now)
sleep();