diff options
| author | Arnold <[email protected]> | 2021-12-26 23:09:29 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-12-26 23:09:29 -0500 |
| commit | 0a611afcb8474afe01a451b20fa5608be334053b (patch) | |
| tree | 6af89bbdab20d6f9ded6c711aefd450ca12e7350 /app/systems/ai/scatter.rb | |
| parent | b7dea8016b5b1328808e28b76cc12343907de63e (diff) | |
| parent | 20da68139878d9286cb642c9bcb5e20c28077ba7 (diff) | |
| download | SteelWings-0a611afcb8474afe01a451b20fa5608be334053b.tar.gz SteelWings-0a611afcb8474afe01a451b20fa5608be334053b.zip | |
Merge pull request #12 from realtradam/development
version 1.0
Diffstat (limited to 'app/systems/ai/scatter.rb')
| -rw-r--r-- | app/systems/ai/scatter.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/systems/ai/scatter.rb b/app/systems/ai/scatter.rb index 82bcb65..1b51061 100644 --- a/app/systems/ai/scatter.rb +++ b/app/systems/ai/scatter.rb @@ -1,11 +1,8 @@ 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] * 3 + sep.distance = Factory::SampleEnemy.defaults[:boids_seperation_distance] * 10 + sep.strength = Factory::SampleEnemy.defaults[:boids_seperation_strength] #puts 'remove align/cohesion/follow'.upcase alignment_mgr = entity.components[FF::Cmp::BoidsAlignment] cohesion_mgr = entity.components[FF::Cmp::BoidsCohesion] |
