diff options
| author | realtradam <[email protected]> | 2021-12-19 20:17:11 -0500 |
|---|---|---|
| committer | realtradam <[email protected]> | 2021-12-19 20:17:11 -0500 |
| commit | 6437b020ee60a1c80a06db638c713a8f1e9a3d2f (patch) | |
| tree | 16fca9b7316c3c18733af4d2dc544ec8a0d8afe9 /app/systems/death.rb | |
| parent | cd3d7be54f16263ceaa9b5e0e8a1c219821e8339 (diff) | |
| download | SteelWings-6437b020ee60a1c80a06db638c713a8f1e9a3d2f.tar.gz SteelWings-6437b020ee60a1c80a06db638c713a8f1e9a3d2f.zip | |
Updated singleton naming
Diffstat (limited to 'app/systems/death.rb')
| -rw-r--r-- | app/systems/death.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/systems/death.rb b/app/systems/death.rb index d9cd792..7c10212 100644 --- a/app/systems/death.rb +++ b/app/systems/death.rb @@ -4,11 +4,9 @@ FF::Scn::BoidRules.add( if hp.health <= 0 component_hash = hp.entities[0].components.clone component_hash.each_pair do |manager, manager_array| - next if manager.equal?(FF::Cmp::SingletonCamera) next if manager.equal?(FF::Cmp::Hp) - next if manager.equal?(FF::Cmp::DebugVectorArrow) manager_array.each do |component| - # unless singleton + next if component.respond_to?(:singleton) component.delete end end |
