diff options
| author | realtradam <[email protected]> | 2021-12-26 21:42:56 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-12-26 21:42:56 -0500 |
| commit | 5f8a4b6b17d6ada0097412b13605717dd5a310df (patch) | |
| tree | cd3646042537e6c9e69ff2c31c99b816607acce7 /app/systems/ai/randomize_ai.rb | |
| parent | 70b2499a8753331b68fb7a61a8882c9ff0b017d8 (diff) | |
| download | SteelWings-5f8a4b6b17d6ada0097412b13605717dd5a310df.tar.gz SteelWings-5f8a4b6b17d6ada0097412b13605717dd5a310df.zip | |
added rate of fire, tweaked ai
Diffstat (limited to 'app/systems/ai/randomize_ai.rb')
| -rw-r--r-- | app/systems/ai/randomize_ai.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/systems/ai/randomize_ai.rb b/app/systems/ai/randomize_ai.rb index f272181..b3ab59b 100644 --- a/app/systems/ai/randomize_ai.rb +++ b/app/systems/ai/randomize_ai.rb @@ -9,7 +9,7 @@ FF::Scn::BoidRules.add( #puts 'remove pick' end FF::Cmp::BoidsSeparation.each do |sep| - if rand < 0.3 + if rand < 0.05 sep.entities[0].add random_ai_pick #puts 'pick' end @@ -26,7 +26,7 @@ FF::Scn::BoidRules.add( #puts 'target' end #timer.interval = (300..1200).to_a.sample - timer.interval = 60 + timer.interval = (5..20).to_a.sample #puts timer.interval timer.timer = 0 end |
