summaryrefslogtreecommitdiffhomepage
path: root/app/systems/death.rb
diff options
context:
space:
mode:
authorArnold <[email protected]>2021-12-26 23:09:29 -0500
committerGitHub <[email protected]>2021-12-26 23:09:29 -0500
commit0a611afcb8474afe01a451b20fa5608be334053b (patch)
tree6af89bbdab20d6f9ded6c711aefd450ca12e7350 /app/systems/death.rb
parentb7dea8016b5b1328808e28b76cc12343907de63e (diff)
parent20da68139878d9286cb642c9bcb5e20c28077ba7 (diff)
downloadSteelWings-0a611afcb8474afe01a451b20fa5608be334053b.tar.gz
SteelWings-0a611afcb8474afe01a451b20fa5608be334053b.zip
Merge pull request #12 from realtradam/development
version 1.0
Diffstat (limited to 'app/systems/death.rb')
-rw-r--r--app/systems/death.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/systems/death.rb b/app/systems/death.rb
index edeb493..ae02dec 100644
--- a/app/systems/death.rb
+++ b/app/systems/death.rb
@@ -5,6 +5,8 @@ FF::Scn::BoidRules.add(
hp.entities[0].components.each do |manager, manager_array|
if manager.equal?(FF::Cmp::SingletonPlayer)
FF::Sys::EndGame.call
+ elsif manager.equal?(FF::Cmp::SingletonEnemyTeam)
+ FF::Sys::Score.call
end
next if manager.equal?(FF::Cmp::Hp)
manager_array.reverse_each do |component|