summaryrefslogtreecommitdiffhomepage
path: root/app/systems/ai
diff options
context:
space:
mode:
Diffstat (limited to 'app/systems/ai')
-rw-r--r--app/systems/ai/scatter.rb4
-rw-r--r--app/systems/ai/target_player.rb2
2 files changed, 1 insertions, 5 deletions
diff --git a/app/systems/ai/scatter.rb b/app/systems/ai/scatter.rb
index 034fa28..1b51061 100644
--- a/app/systems/ai/scatter.rb
+++ b/app/systems/ai/scatter.rb
@@ -1,10 +1,6 @@
FF::Sys.new("Scatter", priority: 40) do
FF::Cmp::SingletonRandomAIPick[0].entities.each do |entity|
sep = entity.components[FF::Cmp::BoidsSeparation][0]
- # I did times 3 becase then it will always be greater then
- # what it was before and that means it will force a
- # seperation to happen even if the default value is
- # changed and you forget to update this number here
sep.distance = Factory::SampleEnemy.defaults[:boids_seperation_distance] * 10
sep.strength = Factory::SampleEnemy.defaults[:boids_seperation_strength]
#puts 'remove align/cohesion/follow'.upcase
diff --git a/app/systems/ai/target_player.rb b/app/systems/ai/target_player.rb
index 5e5ac18..bf8b9e8 100644
--- a/app/systems/ai/target_player.rb
+++ b/app/systems/ai/target_player.rb
@@ -6,7 +6,7 @@ FF::Sys.new("TargetPlayer", priority: 40) do
follow_mgr = entity.components[FF::Cmp::Follow]
player_boid = FF::Cmp::SingletonPlayer[0].entities[0].components[FF::Cmp::Boid][0]
if follow_mgr.nil? || follow_mgr.empty?
- entity.add FF::Cmp::Follow.new(target: player_boid, strength: 0.5)
+ entity.add FF::Cmp::Follow.new(target: player_boid, strength: 0.6)
end
end
end